44

19 个 JavaScript 有用的简写技术

 6 years ago
source link: https://juejin.im/post/5aab238df265da239b412c9f
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
1.三元操作符 当想写if...else语句时,使用三元操作符来代替。 const x = 20; let answer; if (x > 10) { answer = 'is greater'; } else { answer = 'i

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK