与JQuery Mobile的URL

问题描述:

我在asp.net web表单网站中使用JQuery mobile。我在页面“pageA.aspx”中有以下代码。与JQuery Mobile的URL

<a href="PageB.aspx.aspx" data-transition="fade" data-role="button" data-icon="star">View Saved Orders</a> 

当我点击这个链接,我成功地重定向到网页B,但我收到的网址是

http://localhost:3244/MyFirstJQueryApp/PageA.aspx#PageB.aspx 

但我想这样的进一步处理URL,请帮助

http://localhost:3244/MyFirstJQueryApp/PageB.aspx 

我已经通过设置target =“_ top”属性来完成它。

这是一个很好的做法吗?

这里有几个mods(找不到我想要的)去除URL中的哈希,但是你必须编辑jQM框架。

你可以尝试使用changePage()http://jquerymobile.com/demos/1.0a4.1/#docs/api/methods.html并设置过渡,而不会历史选项设置为true跟踪它(我认为这是真的)

下面是导航一些文档以及:http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-navmodel.html mightbe能想想另一种方式

jQuery Mobile背后的想法是,你不这样做你试图做到这一点!检查Dynamic pages with jQuery Mobile,它向您展示了如何让jQm通过将新数据加载到DOM中来完成后台工作。