Home >Web Front-end >JS Tutorial >How to traverse Map objects in js
How to traverse Map objects in js
console.log(jsonData);//火狐控制台打印输出: Object { fileNumber="文件编号", fileName="文件名称"} for(var key in jsonData) console.log("属性:" + key + ",值:"+ jsonData[key]); }
Printout:
Attribute: fileNumber, value: file number
Attribute: fileName, value: file name
The above method of traversing Map objects in js is all the content shared by the editor. I hope it can give you a reference, and I also hope you will support the PHP Chinese website.
For more articles related to methods of traversing Map objects in js, please pay attention to the PHP Chinese website!