A simple code ...
This code is inside html head tag. The includes of jquery-mobile, and jQuery are correct.
$(document).ready(function() {
$("a").click(function () {
var t = $(this).attr('href');
});
});
but not works in webview IOS but in Chrome works fine.
try vclick event:
$(document).ready(function() {
$("a").vclick(function (){
var t = $(this).attr('href');
});
});
Haven't really checked, but click
events in iOS are handled (and behave for that matter) a bit differently than desktop counterparts.
Have you tried this ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.