📜  从 JSON.stringify 获取值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:27.888000             🧑  作者: Mango

代码示例1
var obj = '[{"availability_id":"109465","date":"2017-02-21","price":"430000"},{"availability_id":"109466","date":"2017-02-22","price":"430000"},{"availability_id":"109467","date":"2017-02-23","price":"430000"}]';
var stringify = JSON.parse(obj);
for (var i = 0; i < stringify.length; i++) {
    console.log(stringify[i]['price']);
}