When linking to a page the button text (based off JSON call) isn't loading

前端 未结 1 1642
庸人自扰
庸人自扰 2021-01-26 17:58

I am very new to jQuery/javascript and am basing some code off this introduction to JSON and PHP that ended up looking like this on my pages:

$(document).ready(f         


        
相关标签:
1条回答
  • 2021-01-26 18:25

    Use pageinit instead of document ready. Drop eval, which isn't the cause of your issue but it is neither necessary nor something that should be used.

      $(document).bind("pageinit", function() {   });
    

    http://jquerymobile.com/demos/1.2.0/docs/api/events.html

    0 讨论(0)
提交回复
热议问题