已做好定义和配置,可是在使用的时候报错,暂时想不到还要检查哪里
underscore: "./lib/underscore/underscore-min",
shim: {
underscore: {
exports: '_'
}
}
ReferenceError: _ is not defined
已做好定义和配置,可是在使用的时候报错,暂时想不到还要检查哪里
underscore: "./lib/underscore/underscore-min",
shim: {
underscore: {
exports: '_'
}
}
ReferenceError: _ is not defined
我敢保证,调用的地方一定是忘记添加引用了。这里只是定义,仔细检查下报错的地方是否有引用。