如何在app浏览器的Facebook上进行jquery点击/触摸事件,如点击,点击,触摸启动等?似乎不可能!
<script src="js/jquery.mobile.tap.min.js"></script>
$(function(){
var custom_event = $.support.touch ? "tap" : "click";
});
也试过
var custom_event = "touchstart click";
然后是这样的:
$(document).on(custom_event,'#selector',function(){
// DO STUFF
});
答案 0 :(得分:0)
$isIosFBMessenger = (strpos($_SERVER['HTTP_USER_AGENT'], 'FBAN/MessengerForiOS') !== false) ? true : false;