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

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

posted @ 2015-04-29 08:03  Coca-code  阅读(167)  评论(0编辑  收藏  举报