摘要:
2.6 原始类型 ECMAScript有5种原始类型(primitive type),即Undefined、Null、Boolean、Number和String。ECMAScript提供了typeof来判断值的类型。1、typeof运算符:1 var sTemp="test string";2 alert(typeof sTemp);//outpus "string"3 alert(typeof 95);//outpus "number" typeof运算符返回值只有5种,分别为:如果变量是Undefined型返回"unde 阅读全文