与JSON相关的打字稿编译错误

时间:2020-02-24 11:20:00

标签: json angular typescript

我在Angular中声明了这样的变量。

let user = JSON.parse(atob(t));

我收到此错误。

 TS2304: Cannot find name 'JSON'.

有什么建议吗?

0 个答案:

没有答案