标签:tostring symbol blog false es6 logs console str typeof
let s = Symbol() console.log(typeof s) let foo = Symbol(‘foo‘) let bar = Symbol(‘bar‘) console.log(foo); console.log(bar); console.log(foo === bar) //false let foo2 = Symbol(‘foo‘); console.log(foo.toString() == foo2.toString())
标签:tostring symbol blog false es6 logs console str typeof
原文地址:http://www.cnblogs.com/xudy/p/6846868.html