Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/418.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 设置Window.location.replace标头类型为GET_Javascript_Jquery_Html - Fatal编程技术网

Javascript 设置Window.location.replace标头类型为GET

Javascript 设置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

愿你平安

假设我在link
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,很乐意帮忙