1. 清空对象中的值

var obj={'key1':'value1','key2':'value2'}
for(let key in obj){
obj[key] = ''
}
console.log(obj) //{'key1':'','key2':''}