-2

我需要一些关于如何使用 Javascript 访问 JSON 对象的键的指导:"yweather:forecast". 我试过json.yweather:forecast了,但它会引发错误。

{
    "yweather:forecast" : [
        {
            "@day":"Wed",
            "@date":"10 Jul 2013",
            "@low":"75"      
        }
    ]
}
4

1 回答 1

5

在 JavaScript 中:

jsonobject["yweather:forecast"]

于 2013-07-10T07:59:48.710 回答