let row={M9:"哈哈哈哈",code:"2023"}
let name="M9"
let data=row[name]
console.log(data) //哈哈哈哈哈
js 获取属性值
于 2023-09-27 09:26:24 首次发布
let row={M9:"哈哈哈哈",code:"2023"}
let name="M9"
let data=row[name]
console.log(data) //哈哈哈哈哈