seajs.config({
plugins: ['shim'],
alias:{
'jquery':{
src: 'http://www.xx.com:8080/seajs/js/jquery/jquery.js', //jq 1.8.3
exports: 'jQuery'
},
'jquery.kandytabs':{
src: 'http://www.xx.com:8080/seajs/js/jquery/jquery.kandytabs.js', //这是一款jq插件
deps: ['jquery']
},
'event1':'http://www.xx.com:8080/seajs/js/event1.js' //初始化模块
}
});
--
You received this message because you are subscribed to the Google Groups "seajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seajs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
哦,不好意思,看漏了。执行无误,event1.js 里面的操作只是 require() 他们两个文件的别名而已,但获取到的路径和别名不符,似乎seajs没有能识别别名的src路径。
On Tuesday, April 2, 2013 9:52:16 PM UTC+8, Frank Wang wrote: