https://cdn.bootcss.com/require.js/2.3.6/require.min.js
加载文件js和css
require.config({
paths: {
layer:"layer",
validator:"validator.min"
},shim:{
layer:["css!layer.css"]
}
});
require(['layer',"validator"], function(layer,validator) {
})
文档更新时间: 2020-07-25 16:58 作者:Yoby