我是新手requirejs
,我在加载dropzonejs
( http://www.dropzonejs.com/ ) 作为AMD时遇到问题。
我的requirejs
配置是:
requirejs.config({
baseUrl: 'js/MV'
,paths: {
,jquery: '../libs/jquery-latest'
handlebars: '../plugins/handlebars'
,scrolltofixed: '../plugins/scrolltofixed'
,logout: '../logout'
,dropzone: '../plugins/dropzoneAmdModule'
}
});
当我尝试加载dropzone
模块时
function _activateDropzone(){
require(['dropzone'], function(dropzone){
var pippo = new Dropzone({ //..config
});
});
}
它logs
Uncaught ReferenceError: Dropzone is not defined
即使我正在加载dropzone-amd-module。有什么建议吗?