kissy1.2.0模块化加载

S.config({
        combine: true,
        tag: '20120911',
        base:'http://baohe.taobao.com/develop/my_dpl',
        packages: {
            packages: [{
                name : 'widgets',
                path : '../',
                charset:'gbk',
                tag:'20120911'
            }]
        },
        map: [
                [/(.+widgets\/.+)-min.js(\?[^?]+)?$/, "$1.js$2"],
                [/(.+widgets\/.+)-min.css(\?[^?]+)?$/, "$1.css$2"]
        ]
    });
    //debugger;
    S.use('widgets/PopWin/PopWin', function (S) {
      //  debugger;
    });
 

你可能感兴趣的:(kissy)