被迫使用了坑爹sea.js后如何改造jquery插件
// jquery-plugin-abc define( function ( require , exports , module ) { var $ = require ( ' $ ' ); // 插件的代码 $.fn . abc = function () {}; }); 包括bootstrap.js在内, 都需要这样的包裹 详情见 https://github.com/seajs/seajs/issues/971 来源: oschina 链接: https://my.oschina.net/u/579683/blog/525040