//我在visual studio代码中编写了一个json文件的代码....
let coll={
"collName" : "pu_vendor",
"collDesc" : "Vendor Master",
"formName" : "syscollection",
"formType" : "CRUD",
"docLevel" : [
{
"level" : 0,
"levelName" : "root",
"levelDesc" : "Vendor Description",
"parent" : "",
"comments" : "",
"fields" : [
{
"fieldName" : "vndrId",
"fieldDesc" : "Vendor ID",
"dataType" : "S",
"size" : 5,
"comments" : ""
}
]
}
]
}
我想用键的所有键类型打印所有值:值模式....所以我用console.log轻松打印
console.log(coll);
它通过键显示所有值:值模式,但是当它出现在下一个"字段"键,它只打印此键的类型,即[数组],它不显示此键的键和值