naive ui低版本报错处理
# 在低版本浏览器中会报错:Uncaught ReferenceError: globalThis is not defined
- 解决方法
在index.html文件中加入以下代码
<script>
this.globalThis || (this.globalThis = this)
</script>
1
2
3
4
2
3
4
上次更新: 2024/07/04, 10:16:46
Adinnet-Web 在index.html文件中加入以下代码
<script>
this.globalThis || (this.globalThis = this)
</script>