尝试在 javascript 中显示人员变量的各个元素在控制台中显示未定义
<script>
var staff = {"stdinfo" :{"si": "HH01", "sn":"DAVE BAN", "sc":"HGT 1 ", "scid":"44"},"stdinfo1" :{"si": "HH16", "sn":"DEOR ORIE MAR", "sc":"JHT 3", "scid":"31"}};
</script>
console.log(staff.stdinfo0.si)显示未定义。我究竟做错了什么?
皈依舞
相关分类