typeof运算符有一个参数,即要检查的变量或值,例如: var sTemp="test string";alert(typeof sTemp); alert(typeof 95); typeof 将返回变量的类型。