Abs*_*Abs 1 javascript php internet-explorer
准备好一些陌生感.以下在Firefox中运行良好:
重定向到此网址:
http://localhost/webs/van/front-end/slr/edit_rule.php?rule_name=test&rule_type=alloc_ext©=1
Run Code Online (Sandbox Code Playgroud)
但是,它在IE8中不起作用,因为它将上面的内容转换为此,请注意最后地址中的版权符号:
http://localhost/webs/van/front-end/slr/edit_rule.php?rule_name=test&rule_type=alloc_ext©=1
Run Code Online (Sandbox Code Playgroud)
所以,我觉得很奇怪,就encodeURIComponent这样:
window.location.href = 'edit_rule.php%3Frule_name%3Dtest%26rule_type%3Dalloc_ext%26copy%3D1';
Run Code Online (Sandbox Code Playgroud)
同时,Firefox和IE8现在给我一个禁止的消息!?!
您无权访问/webs/van/front-end/slr/edit_rule.php?此服务器上的rule_name = test2&rule_type = alloc_ext© = 1.
我不明白,发生了什么事?
谢谢大家的帮助.