0
我试图将Miso Dataset(http://misoproject.com/dataset/)与requirejs一起使用,我很想知道我的require js定义有什么问题(我很新需要AND miso),Miso
将会是undefined
(jquery的设置可以)与requirejs一起使用miso.ds
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);
});
任何想法?
问候,
泽维尔