==会自动转换类型后再比较
===则不会转换直接进行比较
const a='123'
const b=new String('123')
const c=String(123)
// String() 函数,把对象的值转换为字符串
console.log(a===c)
console.log(a===b)
console.log(b===c)
console.log(typeof a)
console.log(typeof c)
console.log(typeof b)
index.js:5 true
index.js:6 false
index.js:7 false
index.js:8 string
index.js:9 string
index.js:10 object