qq_40222220
qq_40222220
2017-09-29 02:44

JavaScript怎么获取JSON数据呢,求解答!小弟在线等······急!!!!!

  • json
  • javascript

[{
"20170915": {
"131082": {
"REG_TOTAL_NUM": "173",
"ACC_TOTAL_NUM": "173",

        },
        "131028": {
            "REG_TOTAL_NUM": "2",
            "ACC_TOTAL_NUM": "2",

        },
        "131022": {
            "REG_TOTAL_NUM": "260",
            "ACC_TOTAL_NUM": "260",

        },
        "131024": {
            "REG_TOTAL_NUM": "31",
            "ACC_TOTAL_NUM": "31",

        },
        "131025": {
            "REG_TOTAL_NUM": "4",
            "ACC_TOTAL_NUM": "4",

        },
        "131002": {
            "REG_TOTAL_NUM": "378",
            "ACC_TOTAL_NUM": "378",

        },
        "131003": {
            "REG_TOTAL_NUM": "346",
            "ACC_TOTAL_NUM": "346",

        },
        "131026": {
            "REG_TOTAL_NUM": "1",
            "ACC_TOTAL_NUM": "1",

        },
        "131023": {
            "REG_TOTAL_NUM": "1362",
            "ACC_TOTAL_NUM": "1331",

        },
        "131081": {
            "REG_TOTAL_NUM": "129",
            "ACC_TOTAL_NUM": "113",

        }
    }

},
{
"20170916": {
"131082": {
"REG_TOTAL_NUM": "252",
"ACC_TOTAL_NUM": "252",

        },
        "131028": {


            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131022": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131024": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131025": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131002": {
            "REG_TOTAL_NUM": "538",
            "ACC_TOTAL_NUM": "538",

        },
        "131003": {
            "REG_TOTAL_NUM": "332",
            "ACC_TOTAL_NUM": "332",

        },
        "131026": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131023": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        },
        "131081": {
            "REG_TOTAL_NUM": "0",
            "ACC_TOTAL_NUM": "0",

        }
    }

}]

alert(this["20170915"]["131003"].REG_TOTAL_NUM)
通过jquery遍历可以获取到值:346;
可是 alert(this["20170916"]["131003"].REG_TOTAL_NUM)
怎么就获取不到值呢?
请问是什么原因,应该怎么获取呢,麻烦知道的情给解答一下,在线等!!

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答

为你推荐