Created
March 10, 2017 03:31
-
-
Save scq000/22249e440e642ddfa901cc7a235c4e1b to your computer and use it in GitHub Desktop.
模块化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global module, define,*/ | |
;(function (root, factory) { | |
'use strict' | |
if (typeof module === 'object' && typeof module.exports === 'object') { | |
/** | |
* @type {{then:function}} | |
*/ | |
module.exports = factory() | |
} else if (typeof define === 'function' && define.amd) { | |
define([], factory) | |
} else { | |
root.Thenjs = factory() | |
} | |
}(typeof window === 'object' ? window : this, function () { | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment