[jQuery Mobile]動態新增至listview的li不會有jQuery Mobile的樣式
發表於 : 2016年 7月 13日, 09:56
動態新增至listview的li不會有jQuery Mobile的樣式, 如何進行調整.
1. 使用父層的 .trigger('create')
2. 若是原來的 listview 已存在而是動態新增 li 則使用該 listview 的 .listview('refresh')
參考資料:
http://pclevin.blogspot.tw/2013/04/jque ... reate.html
1. 使用父層的 .trigger('create')
2. 若是原來的 listview 已存在而是動態新增 li 則使用該 listview 的 .listview('refresh')
參考資料:
http://pclevin.blogspot.tw/2013/04/jque ... reate.html