javascript的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
原文地址:https://www.cnblogs.com/wade1220/p/7182392.html