(function (root, factory) { var clone = factory(root); if (typeof clone === 'function' && define.amd) { // AMD define('clone', function (clone) { return clone }) } else if (typeof exports === 'object') { // CommonJS module.exports = clone } else { // 原始模块 var _clone = root.clone clone.noConflict = function () { if (root.clone === clone) { root.clone = _clone } return clone } root.clone = clone } })(this, function (root) { function clone(source) { // ... } return clone })

  转载请注明: malred-blog

  目录