TreeView20 的用法
<div class="highlighter">[*]<html>
[*]<head>
[*]<title>categorylist.jsp</title>
[*]<scripttype="text/javascript"src="../js/TV20.js"></script>
[*]</head>
[*]<body>
[*]<scriptlanguage="javascript">
[*]<!--
[*]addNode(-1,0,"所有类别","../images/top.gif");
[*]<%
[*]List<Category>categories=Category.getCategories();
[*]for(Iterator<Category>it=categories.iterator();it.hasNext();)
[*]{
[*]Categoryc=it.next();
[*]%>
[*]addNode(<%=c.getPid()%>,<%=c.getId()%>,"<%=c.getName()%>","../images/top.gif");
[*]<%
[*]}
[*]%>
[*]showTV();
[*]-->
[*]</script>
[*]</body>
[*]</html>
页:
[1]