201504290802_《在封装Node.js和前端通用的模块时的逻辑》

if (typeof exports !== "undefined") {
    exports.** = **;
} else {
    this.** = **;
}

前端-语言
原文地址:https://www.cnblogs.com/beesky520/p/4464778.html