?
This document uses PHP Chinese website manual Release
JScript? | 語(yǔ)言參考 |
返回一個(gè)用來表示表達(dá)式的數(shù)據(jù)類型的字符串。
typeof[()expression[]] ;
expression 參數(shù)是需要查找類型信息的任意表達(dá)式。
typeof 運(yùn)算符把類型信息當(dāng)作字符串返回。typeof 返回值有六種可能: "number," "string," "boolean," "object," "function," 和 "undefined."
typeof 語(yǔ)法中的圓括號(hào)是可選項(xiàng)。
版本 1
運(yùn)算符優(yōu)先級(jí) | 運(yùn)算符總結(jié)