![](/img/trans.png)
[英]ontouch code on IOS is not the same as on Android touch and windows touch?
[英]Trigger touch callout on iOS/android
是的, 这 可以使用文档中提到的jquery mobile
,使用taphold事件。( 其他事件,我没有尝试 )
$(function() {
$("div.box").bind("taphold", tapholdHandler);
function tapholdHandler(event) {
alert('Do you want to save the image or however it works in ipad');
var a = document.createElement('a');
a.href = "http://i.imgur.com/JzdY53y.jpg";
a.download = 'JzdY53y.jpg';
alert("goes till here1"); // just a check
a.click();
alert("goes til here 2"); //just a check
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.