想知道:如何从Jquery Mobile中的URL中删除hashtag?
我需要更新URL并在过渡到新的Jquery移动页面之前/之后删除所有hashtag参数。
现在,我想这样的,但它不工作:
$(document).on('pagebeforeshow', 'div:jqmData(role="page")', function(event, data){
var documentUrl = $.mobile.path.parseUrl(location.href);
// update path and history
$.mobile.path.set(documentUrl.hrefNoHash);
});
这是可能的呢?如果是这样,我该如何正确地做到这一点?
感谢您的帮助!
http://stackoverflow.com/questions/9683862/in-mjq-how-can-i-remove-hash-from-the-url – dali 2012-03-19 22:02:23