jQuery移动超链接在iOS中不起作用

时间:2014-03-25 12:07:07

标签: jquery ios jquery-mobile uiwebview

我有一个jQuery页面,我正在iOS应用程序的Web视图中加载。

然而,超链接无效 - 点击按钮时,没有任何反应。如果我删除rel="external",我会收到错误加载页面。

我已经在浏览器上进行了测试,并且很好。我缺少什么想法?

<a id="topSmallHeader" rel="external" href="home.html" data-role="button" data-shadow="false">Home</a>

由于

1 个答案:

答案 0 :(得分:1)

从评论中的上述链接中,这可能是一个解决方案,

 <a id="topSmallHeader" rel="external" href="home.html" data-role="button" data-shadow="false" onclick="window.location = $(this).attr('href')">Home</a>