摘要: 删除对象有两种方法: 1、delete 2、赋值undefined 简单对象: let data = {a:1,b:2,c:3,d:4} fn1(){ console.time('消耗时间'); data['d'] = undefined; console.timeEnd('消耗时间'); } fn 阅读全文
posted @ 2020-09-08 19:00 骚年上天不? 阅读(187) 评论(0) 推荐(0) 编辑