想知道:如何從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