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