我正在尝试将 Miso 数据集(http://misoproject.com/dataset/)与 requirejs 一起使用,我想知道我的 require js 定义有什么问题(我对 require AND miso 很陌生),Miso
将是undefined
( jquery的设置是好的)
require.config({
// base url for vendor libs
// files present : jquery.js, lodash.js, miso.ds.js, moment.js, underscore.deferred.js, underscore.math.js
baseUrl: 'js/lib',
// app components are stored in the js/app folder, so they'll start with 'app/'
paths: {
app: '../app',
},
shim: {
// miso.ds shim, with its dependencies
'miso.ds' : {
deps : ['lodash', 'moment', 'underscore.deferred', 'underscore.math'],
exports: 'Miso'
}
}
});
// start the main app logic.
require(['jquery', 'miso.ds'],
function ($, Miso) {
console.log($);
console.log(Miso);
});
任何的想法?
问候,
泽维尔