我有一个 Backbone 视图作为 requirejs 模块。问题是 requirejs在视图初始化之前加载http://localhost/remote/script/here.js 。是因为脚本不在 requirejs 模块中吗?
define([
'jquery',
'undescore',
'backbone',
'http://localhost/remote/script/here'
], function($, _, Backbone, Luajs){
var View = Backbone.View.extend({
initialize : function(options) {
},
render : function() {
this.$el.html('<p>my view</p>')
return this;
}
});
return View;
});