(function(factory) {
if (typeof define === 'function') {
define(factory);
} else {
factory();
}
if (typeof define === 'function') {
define(factory);
} else {
factory();
}
})(function(require) {
jquery code...
if (require) return $.noConflict(true);
});
jquery 版本:1.11