沒有工作可以說我是在網站上的以下網頁:window.location的在IE8
http://example.com/account/ask
我試圖重定向到http://example.com/account/send?id=1上按一下按鈕。 以下語句在ie10,firefox和chrome中工作。但它不在ie8中工作。
<script language="javascript">window.location="account/send?id=<?=$qid; ?>";</script>
如果瀏覽器IE8它是這樣的:
http://example.com/account/account/send?id=1
我怎樣才能解決這個問題?還是有更好的方法來做到這一點?
您是否嘗試過使用'window.location.href'而不是'window.location'? – Pointy