我有以下对象,并希望针对每个对象进行迭代。即使我有两个对象,它也只会迭代一次。我想知道我缺少什么步骤。
var tablesEntities = {"HARDWARE": "HARDWARE_ID,HARDWARE_LABEL","SOFTWARE": "SOFTWARE_ID,SOFTWARE_LABEL"}
for (let key in tablesEntities ) {
const test = await TablesFromX(req, h, key, tablesEntities [key])
console.log(test)
}