1、script标签中的脚本不执行,必须刷新一次才执行,why?html
经过以下方式调整过去,b.thml源码script中脚本不执行;json
<a href="./b.html" data-transition="slide" id="url2">滑动到页面二</a>
2、json字符解决,pc浏览器能够执行,手机原生打包没法执行:浏览器
json数据:ide
{"weatherinfo":{"city":"成都","cityid":"101270101","temp1":"21℃","temp2":"14℃","weather":"阴转小雨","img1":"d2.gif","img2":"n7.gif","ptime":"08:00"}}
解析:ui
rd.weatherinfo.city;
手机端PC端浏览器访问正常,达成App报错(hbuider):url
Uncaught TypeError: Cannot read property 'city' of undefined at index.html:28 code