//typeof 并不能取出详细的类型(例如:a和b取出的都是Object),但用变量的constructor可以取出具体的类型
a=
{
e:'a'
} //a.constructor==Object
var b=new Array("a","b");//b.constructor==Array
var c="sss";//c.constructor==String
d=function()
{
} //d.constructor==Function//注意Function中'F'是大写
var e=1;//e.constructor==Number
alert(e.constructor==Number);