我在控制檯中出現錯誤。你能幫我修好嗎?要求js使用木偶創建
我已經包括requirejs
和必要的骨幹庫。
我的代碼
require.config({
paths : {
backbone : '//jashkenas.github.io/backbone/backbone-min.js',
underscore : '//jashkenas.github.io/underscore/underscore-min.js',
jquery : '//code.jquery.com/jquery-2.1.1.min.js',
marionette : 'http://marionettejs.com/downloads/backbone.marionette.min.js'
},
shim : {
jquery : {
exports : 'jQuery'
},
underscore : {
exports : '_'
},
backbone : {
deps : ['jquery', 'underscore'],
exports : 'Backbone'
},
marionette : {
deps : ['jquery', 'underscore', 'backbone'],
exports : 'Marionette'
}
}
});
您擔心哪些錯誤?我看到圖像鏈接錯誤,但這是對你的正確圖像鏈接,因爲我不知道你想要顯示 – SpYk3HH 2014-09-05 13:00:55
Abot的不匹配錯誤...感謝您的rePly – 2014-09-05 13:34:19