js获取json对象的属性值

//
       var responseData = response.data.result;
            for (var r in responseData) {
              if (responseData[r]["visible"] == 0) {
                responseData[r]["visible"] = "是";
              } else {
                responseData[r]["visible"] = "否";
              }
            }

 

posted @ 2020-04-01 16:09  ジ绯色月下ぎ  阅读(2858)  评论(0编辑  收藏  举报