作者:l夜幕下的流星雨l | 来源:互联网 | 2024-10-20 13:53
IveseenpostsregardingwheretoputtheusestrictlineinaTypeScriptcodefile.Myquestion
I've seen posts regarding where to put the "use strict" line in a TypeScript code file. My question is, why have it at all?
我看到过一些关于在打字稿代码文件中放置“使用严格”行的文章。我的问题是,为什么要拥有它?
Since TypeScript is already a strongly typed language, what does "use strict" add?
既然打字稿已经是强类型语言,那么“使用严格”添加什么呢?
2 个解决方案