且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用适当的jQuery Mobile样式一致地更新页面

更新时间:2023-02-13 13:23:11

我认为您需要告诉页面第二次刷新自身.第一次创建所有内容,然后不再进行重新样式设置.在列表视图中动态创建LI时,我遇到了类似的问题.

I think you need to tell the page to refresh itself the second time around. First time it creates everything and then doesn't go around re-styling itself. I had a similar issue dynamically creating LIs in a listview.

尝试:

productDetailsPage.page("refresh",true);

不确定是否会在第一次使用,但应该在第二次使用:)

Not sure if this will work the first time around, but it should for the 2nd :)