首页 > 技术文章 > ng6中使用socket.io报global is not defined错误

Annely 2021-04-03 10:04 原文

 

 在polyfills.ts中配置

(window as any ).global = window
 

推荐阅读