摘要:
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 閱讀全文
posted @ 2011-11-17 10:34
artwl
閱讀(595)
評論(1)
推薦(1)
浙公網(wǎng)安備 33010602011771號