解決不了的問題:(

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

相關文章
相關標籤/搜索