<script language="JavaScript"> <!-- var a = typeof("is a string"); var b = typeof(1); var c = typeof(false);alert(a); alert(b); alert(c); //--> </script>syntax; typeof[()expression[]] ;expression 参数是需要查找类型信息的任意表达式.typeof 返回值有六种可能: "number," "string," "boolean," "object," "function," 和 "undefined."
<!--
var a = typeof("is a string");
var b = typeof(1);
var c = typeof(false);alert(a);
alert(b);
alert(c);
//-->
</script>syntax;
typeof[()expression[]] ;expression 参数是需要查找类型信息的任意表达式.typeof 返回值有六种可能: "number," "string," "boolean," "object," "function," 和 "undefined."