解决办法是使用 touchstart 替换 click
var user_agent = navigator.userAgent.toLowerCase();var ios_devices = user_agent.match(/(iphone|ipod|ipad)/) ? "touchstart" : "click";$(document).on(ios_devices,"button",function() { });
打赏
感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦