1.
javascript
?/p>
typeof
返回哪些数据类型
alert(typeof [1, 2]);
//object
alert(typeof 'leipeng');
//string
var i = true;
alert (
typeof i); //boolean
alert(typeof 1);
//number
var a;
alert(typeof a);
//undefined
function a(){;};
alert(typeof a)
//function