我正在尝试在Emberjs中使用alertify。这就是它的导出方式。
// AMD and window support
if (typeof define === "function") {
define([], function () { return new Alertify(); });
} else if (typeof global.alertify === "undefined") {
global.alertify = new Alertify();
}我已经将这一行放到了Brocfile.js
app.import('./bower_components/alertify.js/lib/alertify.js');但它认为它是AMD,总而言之,我不能使用它。
我该怎么处理呢?
发布于 2015-05-25 23:59:16
原因是Ember无法与未命名的AMD模块一起工作。
https://stackoverflow.com/questions/30438177
复制相似问题