jQuery mobile正在弄乱我的链接

dev*_*per 1 jquery-mobile

我正在使用jQuery mobile.在iPhone上测试我的网页.

这是问题:

我在http://www.mywebsite.com/here.html,我在该页面上有一个锚点指向

href="http://www.mywebsite.com/some/folder/there.html",我已经航行到了

http://www.mywebsite.com/here.html#/some/folder/there.html

如果我删除jQuery mobile js文件,一切都按预期工作.所以看起来jQuery mobile正在拦截我的'tap'事件并修改了链接的url.奇怪的.它为什么这样做?

dev*_*per 5

看起来这样做是为了帮助您进行动画页面转换等.

我可以通过将此属性添加到锚点来关闭它 data-ajax="false"