typeofAbject = (info) =>{ let res = null; if(info instanceof Object){ res = 'Object'; } if(info instanceof Array){ res = 'Array'; } if(info instanceof RegExp){ res = 'RegExp'; } return res; };
js判断对象的类型
猜你喜欢
转载自blog.csdn.net/y1s2y3/article/details/82968783
今日推荐
周排行