我正在尝试通过以下内容Query String
,但遇到Webpage not available
错误:
window.location.href = "chaindeals.html?chainID=" + chainID + "&imageURL=" + imageURL;
我也尝试将其更改为&
,&
但我遇到了同样的错误。
有谁知道我做错了什么?
谢谢你的帮助。
我正在尝试通过以下内容Query String
,但遇到Webpage not available
错误:
window.location.href = "chaindeals.html?chainID=" + chainID + "&imageURL=" + imageURL;
我也尝试将其更改为&
,&
但我遇到了同样的错误。
有谁知道我做错了什么?
谢谢你的帮助。
请试试这个。
var url = '';
url = url.concat('chaindeals.html?chainID=',chainID, '&imageURL=', imageURL);
window.location.href = url;
尝试提供完整的 url window.location.href
,而不仅仅是页面名称:
var host = "http://" + window.location.host;
window.location.href =
host
+ "/chaindeals.html"
+ "?chainID=" + chainID
+ "&imageURL=" + imageURL;