我希望能够根据某些属性生成一个URL,然后转到javascript中的新URL。这是我目前所拥有的:triggerNumber=document.findcontrol(txtTrigNo).text;hostAddress=top.location.host.toString();url="http://"+hostAddress"/"+triggerNumber如何导航到新URL? 最佳答案 只需尝试:window.location=url;但在尝试这样做之前,您必须确保地址为"http://"+hostAddress"/"+t