zoukankan      html  css  js  c++  java
  • my97datepicker日历展示出现中文乱码的问题

    如果系统使用UTF-8编码会出现乱码问题。修改如下两个文件可解决:
    (1)config.js文件修改成如下内容:

    1. var langList = 
    2. {name:'en', charset:'UTF-8'}, 
    3. {name:'zh-cn',  charset:'UTF-8'}, 
    4. {name:'zh-tw',  charset:'UTF-8'} 
    5. ]; 
    6. var skinList = 
    7. {name:'default',  charset:'UTF-8'} 
    8. ];

    (2)zh-cn.js文件修改成如下内容:
    1. var $lang={ 
    2. errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?", 
    3. aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"], 
    4. aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"], 
    5. aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"], 
    6. aLongMonStr: ["\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"], 
    7. clearStr: "\u6E05\u7A7A", 
    8. todayStr: "\u4ECA\u5929", 
    9. okStr: "\u786E\u5B9A", 
    10. updateStr: "\u786E\u5B9A", 
    11. timeStr: "\u65F6\u95F4", 
    12. quickStr: "\u5FEB\u901F\u9009\u62E9", 
    13. err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F\!'
    14. }
    我的项目中就用了这两招,就解决了。
  • 相关阅读:
    CentOS6.5 [ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/lib/mysqld/mysqld.pid' (Errcode: 2)
    linux防火墙
    Linux磁盘分区与LVM详解
    LVM分区扩展空间
    linux 分区方法(超过2T的硬盘)
    linux异常处理:selinux配置错误导致无法重启
    linux网卡配置文件
    Zabbix4.0系统clone、mass update使用
    Zabbix系统配置日志监控告警--关键字触发
    Zabbix4.0系统配置事件通知
  • 原文地址:https://www.cnblogs.com/seniortestingdev/p/2478989.html
Copyright © 2011-2022 走看看