js获取json属性值的两种方法

1.json.XXX

2.json["XXX"]

第二种方法使用场景,当属性值是变量时。如图所示:

原文地址:https://www.cnblogs.com/zipon/p/6548249.html