【发布时间】:2026-01-28 10:15:02
【问题描述】:
我正在使用 jquery 移动点击功能,但是它不起作用。
这是我拥有的按钮示例,它包含在网格中:
<div class="ui-block-c"><a class="request" data-role="button" data-id="\"'+json[i].num+'\" data-type="3" data-icon="plus" data-iconpos="right">Test</a></div>
jQuery 函数:
$('.request').on('click', function() {
alert("hi");
});
我该如何解决这个问题?
【问题讨论】:
-
它正在工作here
-
你确定在元素已经加载的时候绑定吗?这不是使用
on的正确方式。
标签: jquery button mobile click