0

在这个脚本中,我想将 baseURLStatic 定义为 http//:%ALLHOST%

document.write("<li id='tab"+x+"' onclick='window.location.assign(\""+baseURLStatic+"/"+year+"/home/"+league_id+"#"+x+"\")'>"+mimicHomePageTabs[x]+"</li>\n");

我试过这个,但没有奏效

document.write("<li id='tab"+x+"' onclick='window.location.assign(\""+http+"//:"+%ALLHOST%+"/"+year+"/home/"+league_id+"#"+x+"\")'>"+mimicHomePageTabs[x]+"</li>\n");

url 的最终结果是这样的

http://%ALLHOST%/%YEAR%/home/%LEAGUEID%
4

0 回答 0