3

为什么TypeScript没有console的全局方法?

 2 years ago
source link: https://www.zhihu.com/question/470016632/answer/1979110363
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

为什么TypeScript没有console的全局方法?

提示在lib中添加dom,TS不知道在node环境下的console方法吗 [图片] [图片]
3
129
登录后你可以
不限量看优质回答私信答主深度交流精彩内容一键收藏

你也没有设定node环境,js 本身是么有console 的

继续浏览内容
v2-88158afcff1e7f4b8b00a1ba81171b61_720w.png
发现更大的世界
v2-a448b133c0201b59631ccfa93cb650f3_1440w.png
Chrome
前端 & 计算机图形学,在读学生
继续浏览内容
v2-88158afcff1e7f4b8b00a1ba81171b61_720w.png
发现更大的世界
v2-a448b133c0201b59631ccfa93cb650f3_1440w.png
Chrome

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK