node.js中模块报错【window is not defined】的解决方法

(function(window) {

/* Keep source code the same */

// })(typeof window == "undefined" ? global : window);
// or 
})(this);

  

posted @ 2015-08-17 16:51  泪已凝  阅读(18174)  评论(1编辑  收藏  举报