requirejs、backbone.js配置
requirejs初探
参考资料
官网:http://requirejs.org
中文译文:http://makingmobile.org/docs/tools/requirejs-api-zh
reuqirejs、backbone的配置例子
(function(){ require.config({ baseUrl: "../js", paths: { jquery: "libs/jquery.min", underscore: "libs/underscore.min", backbone: "libs/backbone.min", localstorage: "libs/localStorage" }, shim: { underscore: {exports: "_"}, backbone: { deps: ["underscore","jquery"], exports: "Backbone" } } }); require(["mbase","dotos"],function(mbase,doto){ mbase.mbase.loadCss("../css/dotos.css"); $(function(){ doto.run(); }); }); })();
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。