摘要: //[js] 写一个判断数据类型的方法 const typeCheck = (obj) => { const typeStr = Object.prototype.toString.call(obj); return typeStr.slice(8, typeStr.length - 1); }; 阅读全文
posted @ 2021-09-02 15:00 Mr、DIVE 阅读(41) 评论(0) 推荐(0) 编辑