javascript - requirejs loading easyui localization problem
世界只因有你
世界只因有你 2017-06-26 10:57:30
0
1
755

js code

requirejs.config({
    baseUrl :...,
    shim : {
        'zhCN' : [ 'jquery' ],
        'easyui' : [ 'jquery' ],
        ...
    },
    paths:{
        easyui : 'EasyUI/jquery.easyui.min',
        zhCN : 'EasyUI/locale/easyui-lang-zh_CN',
        ...
    }
});
require([ 'jquery','zhCN', 'easyui'],function($){...});

The datebox and datagrid functions of easyui are normal, but they are not in Chinese.

世界只因有你
世界只因有你

reply all(1)
ringa_lee

Are there any dependencies between zhCN and easyui? If so, try adding the dependencies between these two in the shim?

shim:{
    'zhCN' : [ 'eazyui'],
    'eazyui': ['jquery']
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!