一个简单的代码...
此代码位于 html head 标签中。jquery-mobile和jQuery的包含是正确的。
$(document).ready(function() {
$("a").click(function () {
var t = $(this).attr('href');
});
});
但不适用于网络视图IOS,但在Chrome中工作正常。
尝试 vclick 事件:
$(document).ready(function() {
$("a").vclick(function (){
var t = $(this).attr('href');
});
});
没有真正检查过,但是 iOS 中的click
事件的处理(和行为)与桌面对应物略有不同。
你试过这个吗?