jquery

如果在开发中要引用jquery插件,首先需要在config.json中的plugins中增加配置, 其次要在main.js或用户自己的创建的其他js文件中,引用该插件。

示例:

{
"develop":{
"html":"index.html",
"css":["./index.css"],
"entry":"./main.js",
"scripts":{
}
},
"plugins":["jquery"],
"libs":[],
"services":[],
"customAttributes":{
"pro":[
]
}
}
(function(){
var $=window.plugins.jquery;//通过在window.plugins.jquery引用
return {
}
})