60

ES6的Symbol竟然那么强大,面试中的加分点啊

 5 years ago
source link: https://juejin.im/post/5bdbb3406fb9a022752c319e
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.
symbol是es6出的一种类型,他也是属于原始类型的范畴(string, number, boolean, null, undefined, symbol) basic let name = Symbol('xiaohesong') typeof name

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK