12345678910111213 |
- (function (name, factory) {
- if (typeof define === 'function' && (define.amd || define.cmd)) {
- define([], factory);
- } else if (typeof window !== "undefined" || typeof self !== "undefined") {
- var global = typeof window !== "undefined" ? window : self;
- global[name] = factory();
- } else {
- throw new Error("加载 " + name + " 模块失败!,请检查您的环境!")
- }
- })('Promise',function(){
- var Promise = require("../promise/setTimeout")
- return Promise;
- });
|