var k,k1;k=0;k1="0";alert(Object.prototype.toString.apply(k));alert(Object.prototype.toString.apply(k1));输出结果分别为[object number][object string] 转载于:https://www.cnblogs.com/zhang-2052975439/p/5644650.html