fix url using jquery mobile
问题 I'm using jquery mobile to building a site but when I click on a button and this button points to a dialog page, in the URL appears #&ui-state=dialog . If I put in the <a data-ajax="false"></a> the url is correct without #&ui-state=dialog but the dialog window doesn't show correctly because obviously ajax is disable.there is some way to fix it? 回答1: When you open the dialog, use $.mobile.changePage() and set the changeHash option to false : http://jquerymobile.com/demos/1.0.1/docs/api/methods