<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>test</title>
</head>
<frameset frameborder="NO" border="0" framespacing="0">
<frame src="xxxAction.do?method=listAll" name="main">
</frameset>
<noframes><body>
</body></noframes>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>test</title>
</head>
<frameset frameborder="NO" border="0" framespacing="0">
<frame src="xxxAction.do?method=listAll" name="main">
</frameset>
<noframes><body>
</body></noframes>
</html>
location.href = "****.do?todo=***";
</script>
用的是frameset,但是如果有很多个框呢,如最新新闻,热门新闻,图片新闻等10个框?那如果全部用frameset组合的话会很麻烦吧?
<meta http-equiv="Refresh" content=0;url="xxxAction.do?method=listAll" name="main">
</html>
感觉还是有点麻烦哦,不像.net中有个pageload的初始方法,初始好页面所有内容来得方便。