欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
原始值指的是没有属性或方法的值。
 
原始数据类型指的是拥有原始值的数据。
 
JavaScript 定义了 5 种原始数据类型:
 
string
 
number
 
boolean
 
null
 
undefined
 
原始值是一成不变的(它们是硬编码的,因此不能改变)。
 
假设 x = 3.14,您能够改变 x 的值。但是您无法改变 3.14 的值。
 
类型 注释
 
"Hello" string "Hello" 始终是 "Hello"
 
3.14 number 3.14 始终是 3.14
 
true boolean true 始终是 true
 
false boolean false 始终是 false
 
null null (object) null 始终是 null
 
undefined undefined undefined 始终是 undefined

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h64578.shtml