6

JavaScript中用const申明函数和直接用function哪个好?

 3 years ago
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.
neoserver,ios ssh client

JavaScript中用const申明函数和直接用function哪个好?

有人说用const可以无法重新赋值,但是实际上看到好多人都直接用function的,也没遇到什么问题
15
1,294
登录后你可以
不限量看优质回答私信答主深度交流精彩内容一键收藏
JavaScript 实战——JavaScript、jQuery、HTML5、Node.js 实例大全(第 2 版)
61 人读过​阅读

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK