更新时间:2023-02-23 17:34:44
.listview
.listview()
,机器人刷新功能.如果您的萤火虫设置正确,您应该会看到一条错误消息告诉您这一点..listview
on the ul element.listview()
, bot the refresh function. If your firebug setup is correct, you should have seen an error message telling you that.在您发布修复程序之前,我没有时间开始创建一些代码,但这里有我的一些建议:
I didn't have time to get down to creating some code before you posted your fix, but here's a little recommendation from me:
if(data !== null){ $('#display_'+page+'_page').html(data).find("ul").listview() }
这比新的全局选择器好一点.此外 - 您不需要 div,如果您有多个 UL,您可以提供详细的选择器.
This is a bit nicer than a new global selector. Also - you don't need the div and you can provide a detailed selector if you have multiple ULs.
注意:以上代码需要data !== null
.如果它为空 - 它会抛出一个错误.
caution: the above code requires data !== null
. If it's null - it will throw an error.