2015-07-10 62 views

回答

0

使用Window.location.origin

并追加Window.location. pathname 得到充分的路径(无散列或PARAMS)

1

只需发送AJAX空"" URL。这将是该页面的当前网址。