摘要: var data = {}; data['name'] = "张三"; var variable = 'age'; data[variable] = 12; data.gender = "男"; console.log(data); //{name: "哈张三", age: 12, gender: 阅读全文
posted @ 2022-07-28 09:12 夏雨言 阅读(1502) 评论(0) 推荐(0) 编辑