js 清空对象
var obj={'a':1,'b':2} for(let key in obj){ delete obj[key] } console.log(obj) //{}
js 清空对象的值
var obj={'a':1,'b':2} for(let key in obj){ obj[key] = '' } console.log(obj) //{'a':'','b':''}
end.