在JavaScript中除值类型之外,其他的都是对象,为了说明这点,我们举几个例子 我们可以使用 typeof 来做类型判断 typeof a; // undefined typeof 1; // number typeof 'wclimb'; // string typeof true; // boolean typeof function(){}; // function typeof []...
在JavaScript中除值类型之外,其他的都是对象,为了说明这点,我们举几个例子 我们可以使用 typeof 来做类型判断 typeof a; // undefined typeof 1; // number typeof 'wclimb'; // string typeof true; // boolean typeof function(){}; // function typeof []...