简体   繁体   English

无法使用 Internet Explorer 使用 javascript 方法 window.open() 打开编码的 URL。

[英]Trouble opening a encoded URL with the javascript method window.open() using Internet explorer.

Trouble opening an encoded URL with the javascript method window.open() using Internet Explorer.无法使用 Internet Explorer 使用 javascript 方法 window.open() 打开编码的 URL。 I have a Url: ' http://test.aspx?someparam=somevalue&para_new=somevalue '.我有一个网址:' http://test.aspx?someparam=somevalue&para_new=somevalue '。 When opening the URL the new IE tab has replaced the &para_new with a paragraph character instead of being the &para_new parameter ( http://test.aspx/?someparam=somevalue ¶_new=somevalue).当打开 URL 时,新的 IE 选项卡将 &para_new 替换为段落字符而不是 &para_new 参数( http://test.aspx/?someparam=somevalue ¶_new=somevalue)。 This works fine using Chrome.使用 Chrome 可以正常工作。 Any help would be appreciated.任何帮助,将不胜感激。

Please use window.open(' http://test.aspx?someparam=somevalu & para_new=somevalue')请使用 window.open(' http://test.aspx?someparam=somevalue & para_new=somevalue')

Change & to &&更改为&

Ref link 参考链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM