首页 > 技术文章 > node.js中模块报错【window is not defined】的解决方法

ningkyolei 2015-08-17 16:51 原文

(function(window) {

/* Keep source code the same */

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

  

推荐阅读