
6

JavaScript中用const申明函数和直接用function哪个好?
source link: https://www.zhihu.com/question/512811173/answer/2320471830
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.

JavaScript中用const申明函数和直接用function哪个好?
有人说用const可以无法重新赋值,但是实际上看到好多人都直接用function的,也没遇到什么问题
15
1,294
JavaScript 实战——JavaScript、jQuery、HTML5、Node.js 实例大全(第 2 版)
61 人读过阅读
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK