为什么window.location.href向我发送带有null参数的同一页面?

时间:2019-05-13 04:40:52

标签: javascript href

我在http://domain/web/test.html

通话时

window.location.href = "foo.html"
// or
window.location.href = "http://domain/web/foo.html"

浏览器的网址为http://domain/web/test.html?

这是?是什么?

我不想显示带有null参数的同一页面。

我应该怎么办?

0 个答案:

没有答案