![](/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.