TypeScript报错找不到方法 escape

2018-11-06  本文已影响0人  清清清清风

在typescript中使用escape 和 unescape函数时,报错Cannot find name 'escape'.

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

上一篇 下一篇

猜你喜欢

热点阅读