easyui1.4 汉化出问题

easyui 1.4 的textbox 验证汉化不了,需要在easyui-lang-zh_CN.js 加入

 

if ($.fn.textbox){
    $.fn.textbox.defaults.missingMessage = '该输入项为必输项';
}

 

easyui 1.4.2 修复了这个bug 见下面的代码, 就直接使用1.4.2的吧

$.map(['validatebox','textbox','filebox','searchbox',
        'combo','combobox','combogrid','combotree',
        'datebox','datetimebox','numberbox',
        'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
    if ($.fn[plugin]){
        $.fn[plugin].defaults.missingMessage = '该输入项为必输项';
    }
});

 

posted on 2015-06-19 11:19  风之阡陌  阅读(349)  评论(0编辑  收藏  举报

导航