var arr=["a","b","c"]; var cc=Object.prototype.toString.call(arr).slice(8,-1); console.log(cc);//Array
js 获取变量的类型
最新推荐文章于 2023-03-27 00:13:56 发布
var arr=["a","b","c"]; var cc=Object.prototype.toString.call(arr).slice(8,-1); console.log(cc);//Array