如何判断出这个对象有null的key值,并让null变为""
const data = {a:null, b:1,c:{},d:[],e:undefined,f:''} for(let k in data){data[k] = data[k]===null?'':data[k]}
2.1m questions
2.1m answers
60 comments
57.0k users