requirejs、backbone.js配置

2020-12-13 03:00

阅读:444

标签:style   blog   class   code   java   c   

requirejs初探

参考资料
官网:http://requirejs.org
中文译文:http://makingmobile.org/docs/tools/requirejs-api-zh

reuqirejs、backbone的配置例子

soscw.com,搜素材
(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();
        });
    });
})();
soscw.com,搜素材

 

requirejs、backbone.js配置,搜素材,soscw.com

requirejs、backbone.js配置

标签:style   blog   class   code   java   c   

原文地址:http://www.cnblogs.com/kuikui/p/3721964.html

上一篇:Python sorted 函数

下一篇:JS控制css


评论


亲,登录后才可以留言!