32

【译】5分钟学习 JS 一些小技巧

 6 years ago
source link: https://juejin.im/post/5b42bb9ce51d45199060e199
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
原文 - Learn these neat JavaScript tricks in less than 5 minutes 一些日常开发技巧,意译了。 清空和截短数组 最简单的清空和截短数组的方法就是改变 length 属性: const arr = [1

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK