node.js中模块报错【window is not defined】的解决方法时间:2023-03-03 21:52:56 (function(window) { /* Keep source code the same */ // })(typeof window == "undefined" ? global : window); // or })(this);