[ts] Property 'aaa' does not exist on type 'Window' 解决办法
2021-06-19 22:06
阅读:507
标签:har csharp extends int oid not sharp lob global 第一种: 第二种: 第三种: [ts] Property 'aaa' does not exist on type 'Window' 解决办法 标签:har csharp extends int oid not sharp lob global 原文地址:https://www.cnblogs.com/ldld/p/10270663.html
(window as any).aaa
declare global {
interface Window { aaa: any; }
}
window.aaa = window.aaa || {};
interface MyWindow extends Window {
aaa(): void;
}
declare var window: MyWindow;
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:[ts] Property 'aaa' does not exist on type 'Window' 解决办法
文章链接:http://soscw.com/index.php/essay/96138.html
文章标题:[ts] Property 'aaa' does not exist on type 'Window' 解决办法
文章链接:http://soscw.com/index.php/essay/96138.html
评论
亲,登录后才可以留言!