TypeScript中引入window身上的方法报错: 类型“Window & typeof globalThis”上不存在属性“xxxx”。 给window定义any类型: 这样就可以正常使用并且不报错啦!