当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - JQuery Mobile how to fix $(document).ready(function(){ to $(document).bind("pageinit", function(){

问题描述:

I have been making this app for a while and the whole time I have been using $(document).ready(function(){ to start my javascript and now I have run into a problem where I am using ajax to call in json arrays and organize them into lists. After some research I found that I need to now use $(document).bind("pageinit", function(){ When I change it I stop getting all the console errors I was getting before but now the ajax calls will not work. Is there anything else I have to do besides changing $(document).ready(function(){ to $(document).bind("pageinit", function(){

分享给朋友:
您可能感兴趣的文章:
随机阅读: