欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

日歷控件jscalendar-1.0中文解決方法

系統(tǒng) 2199 0
默認(rèn)情況下 jscalendar -1.0包中所附的中文語(yǔ)言文件(calendar-cn_utf8.js)不支持中文是由于沒(méi)有設(shè)置每周的開(kāi)始日期
修改方法是在語(yǔ)言文件calendar-cn_utf8.js 開(kāi)始部分加上
Js代碼 復(fù)制代碼
  1. Calendar._FD?=?0;??
      Calendar._FD = 0;
    

修改后的文件如下:
Js代碼 復(fù)制代碼
  1. Calendar._FD?=?0;??
  2. //?full?day?names?exp:星期日 ??
  3. Calendar._DN?=? new ?Array??
  4. ( "\u5468\u65e5" , //\u5468\u65e5 ??
  5. ? "\u5468\u4e00" , //\u5468\u4e00 ??
  6. ? "\u5468\u4e8c" , //\u5468\u4e8c ??
  7. ? "\u5468\u4e09" , //\u5468\u4e09 ??
  8. ? "\u5468\u56db" , //\u5468\u56db ??
  9. ? "\u5468\u4e94" , //\u5468\u4e94 ??
  10. ? "\u5468\u516d" , //\u5468\u516d ??
  11. ? "\u5468\u65e5" ); //\u5468\u65e5 ??
  12. //?short?day?names exp:日 ??
  13. Calendar._SDN?=? new ?Array??
  14. ( "\u5468\u65e5" ,??
  15. ? "\u5468\u4e00" ,??
  16. ? "\u5468\u4e8c" ,??
  17. ? "\u5468\u4e09" ,??
  18. ? "\u5468\u56db" ,??
  19. ? "\u5468\u4e94" ,??
  20. ? "\u5468\u516d" ,??
  21. ? "\u5468\u65e5" );??
  22. //?full?month?names ??
  23. Calendar._MN?=? new ?Array??
  24. ( "\u4e00\u6708" ,??
  25. ? "\u4e8c\u6708" ,??
  26. ? "\u4e09\u6708" ,??
  27. ? "\u56db\u6708" ,??
  28. ? "\u4e94\u6708" ,??
  29. ? "\u516d\u6708" ,??
  30. ? "\u4e03\u6708" ,??
  31. ? "\u516b\u6708" ,??
  32. ? "\u4e5d\u6708" ,??
  33. ? "\u5341\u6708" ,??
  34. ? "\u5341\u4e00\u6708" ,??
  35. ? "\u5341\u4e8c\u6708" );??
  36. //?short?month?names ??
  37. Calendar._SMN?=? new ?Array??
  38. ( "\u4e00\u6708" ,??
  39. ? "\u4e8c\u6708" ,??
  40. ? "\u4e09\u6708" ,??
  41. ? "\u56db\u6708" ,??
  42. ? "\u4e94\u6708" ,??
  43. ? "\u516d\u6708" ,??
  44. ? "\u4e03\u6708" ,??
  45. ? "\u516b\u6708" ,??
  46. ? "\u4e5d\u6708" ,??
  47. ? "\u5341\u6708" ,??
  48. ? "\u5341\u4e00\u6708" ,??
  49. ? "\u5341\u4e8c\u6708" );??
  50. //?tooltips ??
  51. Calendar._TT?=?{};??
  52. Calendar._TT[ "INFO" ]?=? "\u5173\u4e8e" ;??
  53. Calendar._TT[ "ABOUT" ]?=??
  54. "???DHTML?\u65e5\u8d77/\u65f6\u95f4\u9009\u62e9\u63a7\u4ef6\n" ?+??
  55. "(c)?dynarch.com?2002-2005?/?Author:?Mihai?Bazon\n" ?+? //?don't?translate?this?this?;-) ??
  56. "For?latest?version?visit:?\u6700\u65b0\u7248\u672c\u8bf7\u767b\u9646http://www.dynarch.com/projects/calendar/\u5bdf\u770b\n" ?+??
  57. "\u9075\u5faaGNU?LGPL.??\u7ec6\u8282\u53c2\u9605?http://gnu.org/licenses/lgpl.html" ?+??
  58. "\n\n" ?+??
  59. "\u65e5\u671f\u9009\u62e9:\n" ?+??
  60. "-?\u70b9\u51fb\xab(\xbb)\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e00\u5e74\u5ea6.\n" ?+??
  61. "-?\u70b9\u51fb" ?+?String.fromCharCode(0x2039)?+? "(" ?+?String.fromCharCode(0x203a)?+? ")\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e2a\u6708\u4efd.\n" ?+??
  62. "-?\u957f\u65f6\u95f4\u6309\u7740\u6309\u94ae\u5c06\u51fa\u73b0\u66f4\u591a\u9009\u62e9\u9879." ;??
  63. Calendar._TT[ "ABOUT_TIME" ]?=? "\n\n" ?+??
  64. "\u65f6\u95f4\u9009\u62e9:\n" ?+??
  65. "-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u589e\u52a0\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\n" ?+??
  66. "-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u6309\u4f4fShift\u952e\u540e\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u51cf\u5c11\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)." ;??
  67. Calendar._TT[ "PREV_YEAR" ]?=? "\u4e0a\u4e00\u5e74" ;??
  68. Calendar._TT[ "PREV_MONTH" ]?=? "\u4e0a\u4e2a\u6708" ;??
  69. Calendar._TT[ "GO_TODAY" ]?=? "\u5230\u4eca\u5929" ;??
  70. Calendar._TT[ "NEXT_MONTH" ]?=? "\u4e0b\u4e2a\u6708" ;??
  71. Calendar._TT[ "NEXT_YEAR" ]?=? "\u4e0b\u4e00\u5e74" ;??
  72. Calendar._TT[ "SEL_DATE" ]?=? "\u9009\u62e9\u65e5\u671f" ;??
  73. Calendar._TT[ "DRAG_TO_MOVE" ]?=? "\u62d6\u52a8" ;??
  74. Calendar._TT[ "PART_TODAY" ]?=? "?(\u4eca\u5929)" ;??
  75. //?the?following?is?to?inform?that?"%s"?is?to?be?the?first?day?of?week ??
  76. //?%s?will?be?replaced?with?the?day?name. ??
  77. Calendar._TT[ "DAY_FIRST" ]?=? "%s\u4e3a\u8fd9\u5468\u7684\u7b2c\u4e00\u5929" ;??
  78. //?This?may?be?locale-dependent.??It?specifies?the?week-end?days,?as?an?array ??
  79. //?of?comma-separated?numbers.??The?numbers?are?from?0?to?6:?0?means?Sunday,?1 ??
  80. //?means?Monday,?etc. ??
  81. Calendar._TT[ "WEEKEND" ]?=? "0,6" ;??
  82. Calendar._TT[ "CLOSE" ]?=? "\u5173\u95ed" ;??
  83. Calendar._TT[ "TODAY" ]?=? "\u4eca\u5929" ;??
  84. Calendar._TT[ "TIME_PART" ]?=? "(\u6309\u7740Shift\u952e)\u5355\u51fb\u6216\u62d6\u52a8\u6539\u53d8\u503c" ;??
  85. //?date?formats ??
  86. Calendar._TT[ "DEF_DATE_FORMAT" ]?=? "%Y-%m-%d" ;??
  87. Calendar._TT[ "TT_DATE_FORMAT" ]?=? "%a,?%b?%e\u65e5" ;??
  88. Calendar._TT[ "WK" ]?=? "\u5468" ;??
  89. Calendar._TT[ "TIME" ]?=? "\u65f6\u95f4:" ;??
      Calendar._FD = 0;
// full day names exp:星期日
Calendar._DN = new Array
("\u5468\u65e5",//\u5468\u65e5
 "\u5468\u4e00",//\u5468\u4e00
 "\u5468\u4e8c",//\u5468\u4e8c
 "\u5468\u4e09",//\u5468\u4e09
 "\u5468\u56db",//\u5468\u56db
 "\u5468\u4e94",//\u5468\u4e94
 "\u5468\u516d",//\u5468\u516d
 "\u5468\u65e5");//\u5468\u65e5
// short day names exp:日
Calendar._SDN = new Array
("\u5468\u65e5",
 "\u5468\u4e00",
 "\u5468\u4e8c",
 "\u5468\u4e09",
 "\u5468\u56db",
 "\u5468\u4e94",
 "\u5468\u516d",
 "\u5468\u65e5");
// full month names
Calendar._MN = new Array
("\u4e00\u6708",
 "\u4e8c\u6708",
 "\u4e09\u6708",
 "\u56db\u6708",
 "\u4e94\u6708",
 "\u516d\u6708",
 "\u4e03\u6708",
 "\u516b\u6708",
 "\u4e5d\u6708",
 "\u5341\u6708",
 "\u5341\u4e00\u6708",
 "\u5341\u4e8c\u6708");
// short month names
Calendar._SMN = new Array
("\u4e00\u6708",
 "\u4e8c\u6708",
 "\u4e09\u6708",
 "\u56db\u6708",
 "\u4e94\u6708",
 "\u516d\u6708",
 "\u4e03\u6708",
 "\u516b\u6708",
 "\u4e5d\u6708",
 "\u5341\u6708",
 "\u5341\u4e00\u6708",
 "\u5341\u4e8c\u6708");
// tooltips
Calendar._TT = {};
Calendar._TT["INFO"] = "\u5173\u4e8e";
Calendar._TT["ABOUT"] =
"   DHTML \u65e5\u8d77/\u65f6\u95f4\u9009\u62e9\u63a7\u4ef6\n" +
"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
"For latest version visit: \u6700\u65b0\u7248\u672c\u8bf7\u767b\u9646http://www.dynarch.com/projects/calendar/\u5bdf\u770b\n" +
"\u9075\u5faaGNU LGPL.  \u7ec6\u8282\u53c2\u9605 http://gnu.org/licenses/lgpl.html" +
"\n\n" +
"\u65e5\u671f\u9009\u62e9:\n" +
"- \u70b9\u51fb\xab(\xbb)\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e00\u5e74\u5ea6.\n" +
"- \u70b9\u51fb" + String.fromCharCode(0x2039) + "(" + String.fromCharCode(0x203a) + ")\u6309\u94ae\u9009\u62e9\u4e0a(\u4e0b)\u4e2a\u6708\u4efd.\n" +
"- \u957f\u65f6\u95f4\u6309\u7740\u6309\u94ae\u5c06\u51fa\u73b0\u66f4\u591a\u9009\u62e9\u9879.";
Calendar._TT["ABOUT_TIME"] = "\n\n" +
"\u65f6\u95f4\u9009\u62e9:\n" +
"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u589e\u52a0\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\n" +
"-\u5728\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2)\u4e0a\u6309\u4f4fShift\u952e\u540e\u5355\u51fb\u9f20\u6807\u5de6\u952e\u6765\u51cf\u5c11\u5f53\u524d\u65f6\u95f4\u90e8\u5206(\u5206\u6216\u8005\u79d2).";
Calendar._TT["PREV_YEAR"] = "\u4e0a\u4e00\u5e74";
Calendar._TT["PREV_MONTH"] = "\u4e0a\u4e2a\u6708";
Calendar._TT["GO_TODAY"] = "\u5230\u4eca\u5929";
Calendar._TT["NEXT_MONTH"] = "\u4e0b\u4e2a\u6708";
Calendar._TT["NEXT_YEAR"] = "\u4e0b\u4e00\u5e74";
Calendar._TT["SEL_DATE"] = "\u9009\u62e9\u65e5\u671f";
Calendar._TT["DRAG_TO_MOVE"] = "\u62d6\u52a8";
Calendar._TT["PART_TODAY"] = " (\u4eca\u5929)";
// the following is to inform that "%s" is to be the first day of week
// %s will be replaced with the day name.
Calendar._TT["DAY_FIRST"] = "%s\u4e3a\u8fd9\u5468\u7684\u7b2c\u4e00\u5929";
// This may be locale-dependent.  It specifies the week-end days, as an array
// of comma-separated numbers.  The numbers are from 0 to 6: 0 means Sunday, 1
// means Monday, etc.
Calendar._TT["WEEKEND"] = "0,6";
Calendar._TT["CLOSE"] = "\u5173\u95ed";
Calendar._TT["TODAY"] = "\u4eca\u5929";
Calendar._TT["TIME_PART"] = "(\u6309\u7740Shift\u952e)\u5355\u51fb\u6216\u62d6\u52a8\u6539\u53d8\u503c";
// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e\u65e5";
Calendar._TT["WK"] = "\u5468";
Calendar._TT["TIME"] = "\u65f6\u95f4:";

    


同時(shí)在用到該控件的頁(yè)面必須加上
Js代碼 復(fù)制代碼
  1. <link?href= "css文件" ?type= "text/css" ?rel= "stylesheet" ?/>??
      <link href="css文件" type="text/css" rel="stylesheet" />

    


附:今天在另外一個(gè)JSP頁(yè)面用到的時(shí)候,出現(xiàn)了彈出的面板不顯示任何日期的情況,檢查了N遍,發(fā)現(xiàn)與好用的頁(yè)面代碼相同,但是嘗試了多種方法后問(wèn)題依然存在。
最后將日期js文件在頁(yè)面調(diào)用的路徑更改了一下,這樣當(dāng)然找不到了,報(bào)錯(cuò);然后再改回來(lái),這下竟然好用了。
具體什么原因我也不知道。經(jīng)常變動(dòng)JSP頁(yè)面內(nèi)容的時(shí)候有時(shí)我們會(huì)發(fā)現(xiàn),其實(shí)頁(yè)面的語(yǔ)句是正確的,但是在Ecpipse中仍然顯示有問(wèn)題,沒(méi)有辦法你必須將這個(gè)語(yǔ)句改錯(cuò)誤,然后保存,之后再改回來(lái),再保存,語(yǔ)句沒(méi)有問(wèn)題多數(shù)情況問(wèn)題會(huì)解決。
好多人都遇見(jiàn)過(guò)這樣的問(wèn)題,為甚么這么解決它們也不知道具體原因,大概JSP頁(yè)面被編譯后駐留在內(nèi)存中,和這個(gè)有關(guān)吧。

日歷控件jscalendar-1.0中文解決方法


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 亚洲综合五月天欧美 | 国产精品一区视频 | 国产亚洲精品久久久久久国 | 亚洲综合国产一区二区三区 | 精品久久久久久久 | 一级在线观看 | 亚洲综合国产一区二区三区 | 妇女毛片 | 激情五月婷婷色 | 夜夜艹日日艹 | 日本伦理网站 | 欧美成熟丰满老妇xxxx | 欧美阿v天堂视频在99线 | 婷婷综合激情五月中文字幕 | 久久永久免费中文字幕 | 色125综合网 | 国产精品成人第一区 | 欧美激情视频一区二区免费 | 理论片91 | 青娱乐欧美 | 欧美日韩性高爱潮视频 | 深夜福利一区二区 | 91中文字幕在线观看 | 午夜久久久久久禁播电影 | 激情综合视频 | 色狠狠色综合吹潮 | 国产成人一级 | 福利入口在线观看 | 国产麻豆精品 | 毛片无码免费无码播放 | 日韩一区二区免费视频 | 日本高清免费不卡在线 | 国产高清无专砖区2021 | 国产成人综合在线观看 | 日韩网红少妇无码视频香港 | 日韩极品视频 | 91亚洲国产成人久久精品网站 | 精品国精品国产自在久国产应用 | 国产成人不卡 | 亚洲精品国产偷自在线观看 | 国产成人精品视频频 |