jquery mobile .on仅在刷新后才在页面加载时工作

时间:2013-02-20 17:55:59

标签: jquery jquery-mobile

此功能仅在我刷新jquery mobile上的页面后才有效..任何想法?

$('.item').on('touchstart pageinit', function(){

我正在尝试制作可点击的东西来切换课程..即:一个按钮。仅在刷新后才有效。

1 个答案:

答案 0 :(得分:2)

试试这个:

$(document).on('touchstart pageinit', '.item', function(){
相关问题