Replies: 1 comment
-
import {unsafeWindow} from "$"
console.log(unsafeWindow.xxx) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
各位2024年好啊。
我这边在写一个脚本,遇到一个问题就是宿主页面有一个全局的对象,我想调用它里面的方法去获取信息,但我现在使用的是typescript,如果直接使用这个对象会报错,请问这种情况下应该如何处理才正确??
Beta Was this translation helpful? Give feedback.
All reactions