如果用seajs实现js模块化管理,需要js遵循CMD模块书写格式,已有的js插件要改为CMD格式,一种方式如下: define(function(){return function($){...($);}}); 其中...为js插件内容。