我的 DOM 中有一个结构,看起来像
window>object>payload>records>0>Object { attributes={...}, Id="a0E90K", Name="David", more...}
..............................2>Object { attributes={...}, Id="a0E90K", Name="alen", more...}
..............................3>Object { attributes={...}, Id="a0E43K", Name="woody", more...}
..............................4>Object { attributes={...}, Id="a2341K", Name="mac", more...}
..............................5>Object { attributes={...}, Id="a344R7K", Name="fin", more...}
这个有效载荷是我在使用 ajax 触发查询后得到的结果。现在我如何获取记录的 ID 和名称?