GWT. Set url without submit

后端 未结 3 564
太阳男子
太阳男子 2021-01-18 06:35

Can i change url(set parameter) without submit? I found this method http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/Window.Location.html#

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 07:37

     $wnd.history.pushState(newUrl, "", newUrl);
    

    Works nicely in HTML5-browsers. Not in IE8 or IE9!

提交回复
热议问题