if( typeof define === "function" && define.amd ){
define(factory);
}
else if( typeof module != "undefined" && typeof module.exports != "undefined" ){
module.exports = factory();
}
else {
window["Sortable"] = factory();
}
是什么意思?
if(typeof define === "function" && define.amd) {
} else if (typeof module != "undefined" && typeof module.exports != "undefined") {
} else {
}