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

前端 未结 7 1140
北海茫月
北海茫月 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:02

    use $.mobile.changePage("#Results"); instead of location.href
    actually location.href reload the page so the list view gets destroy

    And then listview.refresh

提交回复
热议问题