js的类型类型和引用类型

js中的数据类型有以下几种:

Number Boolean undefined Object Function String Null

基本类型:Number Boolean String undefined null

引用类型:Object Function

基本类型的数据是存放在栈内存中的,而引用类型的数据是存放在堆内存中的

猜你喜欢

转载自blog.csdn.net/weixin_41989325/article/details/89220291