【发布时间】:2012-05-07 08:53:16
【问题描述】:
一个简单的代码...
此代码在 html 头标签内。 jquery-mobile 和 jQuery 的 include 是正确的。
$(document).ready(function() {
$("a").click(function () {
var t = $(this).attr('href');
});
});
但在 webview IOS 中不起作用,但在 Chrome 中可以正常工作。
【问题讨论】:
-
你怎么知道它不起作用?它没有做任何事情...将
alert('foo)放入事件中...
标签: jquery ios jquery-mobile uiwebview safari