TypeScript报错找不到方法 escape
2018-11-06 本文已影响0人
清清清清风
在typescript中使用escape 和 unescape函数时,报错Cannot find name 'escape'.

解决方法:加上声明 declare function escape(s:string): string;

在typescript中使用escape 和 unescape函数时,报错Cannot find name 'escape'.
解决方法:加上声明 declare function escape(s:string): string;