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

前端 未结 7 1137
北海茫月
北海茫月 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/

提交回复
热议问题