Javascript 设置Window.location.replace标头类型为GET
愿你平安 假设我在linkJavascript 设置Window.location.replace标头类型为GET,javascript,jquery,html,Javascript,Jquery,Html,愿你平安 假设我在linkhttp://stackoverflow.com然后我有一个,您可能知道,单击它会转到/New/Link.html,但由于窗口.location.repace使用Post方法,我无法备份到http://stackoverflow.com 问题: 我可以设置window.location.replaceas GET的方法类型吗?您尝试过使用window.location.href='/New/Link.html'?@PatrickHund好的,我尝试过使用window.l
http://stackoverflow.com
然后我有一个
,您可能知道,单击它会转到/New/Link.html
,但由于窗口.location.repace
使用Post方法,我无法备份到http://stackoverflow.com
问题:
我可以设置
window.location.replace
as GET的方法类型吗?您尝试过使用window.location.href='/New/Link.html'?@PatrickHund好的,我尝试过使用window.location.href('/New/Link.html');这是错误的,是的,成功了,thxCool,很乐意帮忙