We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内置类型
Object
null
undefined
boolean
number
string
symbol
NaN
let a = 10 // 这只是字面量,不是number类型 a.toString() // 使用时候才会转换为对象类型
对象(Object)是引用类型,在使用过程中会遇到浅拷贝和深拷贝的问题。
// 浅拷贝 let a = { name: 'Jeskson' } let b = a b.name = 'web' console.log(a.name) // web
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Object
)。null
,undefined
,boolean
,number
,string
,symbol
。NaN
属于number
类型,并且NaN
不等于自身。The text was updated successfully, but these errors were encountered: