更新时间:2023-12-05 09:09:04
如果您动态添加a
元素,请尝试以下操作:
Try this if you dynamically add the a
element :
$('#menu').on("tap", 'a', function(event) {
//console.log(event);
});
或者这个:
$('#menu').hammer().on("tap", 'a', function(event) {
//console.log(event);
});