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.
ringa_lee2017-06-26 10:59:30
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']
}