在使用seajs中 可以采用命令下载
jquery npm install jquery
这样的jquery 代码 有些版本就已经 声明了支持 AMD 例如 2.1.1 版本
if ( typeof define === "function" && define.amd ) {
define( "jquery", [], function() {
return jQuery;
});
}
因为seajs 只是支持CMD 写法 所以会有问题,把amd改成CMD 就可以啦