如何在jQuery Mobile中浏览正确的页面

时间:2012-05-08 20:15:49

标签: jquery html5

我是jQuery Mobile的新手。我尝试使用jquery导航到一个页面,但URL有问题。

我的代码

 <a href="http://tom.hostxx.com/car.html" data-role="button" data-theme="c" data-transition="pop">Car</a>

它将页面http://tom.hostxx.com/#http://tom.hostxx.com/car.html加载了空白内容,而不是http://tom.hostxx.com/car.html

有人可以解释一下吗?非常感谢你!!!

1 个答案:

答案 0 :(得分:0)

您是否尝试过设置相对href?

我不知道你的网页到底在哪里,但是href="car.html"

您应该查看doc并查看他们的代码。