window.open()在托管服务器后无法正常工作

时间:2013-08-26 14:48:16

标签: window

通过控制台中的错误:无法打开包含无效网址的窗口'%3144.76.2.51:3001 / api / web / bizsteps / export /?content = {%22bizSteps%22:[{%22bizStep %22:%22Make%22%22bizLocation%22:[{%22name%22:%22Field%22%22time%22:%22%22%22temperature%22:%22%22%22freshTimePoint%22: %22%22},{%22name%22:%22Pre酷%22%22time%22:%22%22%22temperature%22:%22%22%22freshTimePoint%22:%22%22}] },{%22bizStep%22:%22Store%22%22bizLocation%22:[{%22name%22:%22Location%22%22time%22:%22%22%22temperature%22:%22%22 %22freshTimePoint%22:%22%22}]},{%22bizStep%22:%22Transport%22%22bizLocation%22:[{%22name%22:%22Journey%22%22time%22:%22%22 ,%22temperature%22:%22%22%22freshTimePoint%22:%22%22},{%22name%22:%22East%22%22time%22:%22%22%22temperature%22:%22 %22,%22freshTimePoint%22:%22%22}]},{%22bizStep%22:%22Sell%22%22bizLocation%22:[{%22name%22:%22DC%22%22time%22:% 22%22%22temperature%22:%22%22%22freshTimePoint%22:%22%22},{%22name%22:%22Retail%22%22time%22:%22%22%22temperature%22 :%22%22%22F reshTimePoint%22:%22%22}]},{%22bizStep%22:%22Use%22%22bizLocation%22:[{%22name%22:%22Best%22%22time%22:%22%22 %22temperature%22:%22%22%22freshTimePoint%22:%22%22}]}],%22product%22:%22%22%22brand%22:%22%22%22demographic%22:% 22%22,%22区域%22:%22%22,%22type%22:%22%22,%22fileName%22:%22%22}& type = PDF'

以上是我尝试在新窗口中打开的网址。

它的问题是什么,以及它为其他网址工作的问题。 帮帮我?

1 个答案:

答案 0 :(得分:1)

您没有在网址中指定http://协议。

你需要改变这个:

%3144.76.2.51:3001/api/web/...

到这个

http%3A%2F%2F144.76.2.51:3001/api/web/...