JS取值问题,在线等待高手解答
<iframe name="main" id="main" src="http://127.0.0.1/main.html" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>
<SCRIPT LANGUAGE="JavaScript">
<!--
var url = location.href
var args = url.split("?id=");
if(args[0] != url){
main.location='http://127.0.0.1/reg.html?id='+args[1];
}
//-->
</SCRIPT>
</body>
</html>
如何改成main.location='http://127.0.0.1/+args[1].html;
问题点数:20、回复次数:1Top
1 楼xxuu503(中国没有prison break只是因为the company不让拍)回复于 2006-03-17 09:53:03 得分 20
main.location='http://127.0.0.1/'+args[1]+'.html';Top




