对象循环遍历

for(const key in text){
    
    
	if(object.prototype.hasOwnProperty.call(text,key)&&typeof text[key]!=='undefined'){
    
    
		const needobj = text[key]
}
}

猜你喜欢

转载自blog.csdn.net/weixin_43979503/article/details/123012684