为什么我respoonse.weatherinfo没有数据

h5开发初学者
- 发布:2016-06-27 10:20
- 更新:2016-06-27 13:53
- 阅读:1003
h5开发初学者 (作者)
respoonse.weatherinfo.city也是出不来的,出这个undefined,但是我在w3school上面,能出来的var JSONObject= {"weatherinfo":{"city":"北京","cityid":"101010100","temp1":"15℃","temp2":"5℃","weather":"多云","img1":"d1.gif","img2":"n1.gif","ptime":"08:00"}};
document.getElementById("jname").innerHTML=JSONObject.weatherinfo.city,在mui这里不行
2016-06-27 13:31