jQuery mobile error “cannot call methods on listview prior to initialization”

前端 未结 7 1057
北海茫月
北海茫月 2020-12-25 13:11

I\'m dynamically filling a

    then calling location.href=\"#Results\" where the list is, and finally listview(
相关标签:
7条回答
  • 2020-12-25 14:06

    Just call the listview method without any parameter first:

    $('#myListview').listview().listview('refresh');
    

    Solution taken from http://www.gajotres.net/uncaught-error-cannot-call-methods-on-prior-to-initialization-attempted-to-call-method-refresh/

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