Jquerymobile - $.mobile.changepage

前端 未结 2 2150
我寻月下人不归
我寻月下人不归 2020-11-27 07:16

I want to open the the .html file from my .js file. So I Used the $.mobile.changePage(\"file.html\"). In the file.html have file.js. But The file.js does not call when the f

2条回答
  •  误落风尘
    2020-11-27 07:58

    Jquery mobile gets pages via AJAX and adds their content to the current page. I saw some notices about changing the page title to the incoming one, so they are (planning?) accessing the head, but at the moment jquery mobile doesn't seem to load external js when loadin a page.

    More importantly - if you use $(document).ready() it will not be triggered, because it was AJAX

提交回复
热议问题