0
回答
求一个树型结构 以及我写的结构怎么封装数据
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  
<title>查询各省份景点菜单树</title>  
<script language="javascript">  
function showInfo(str){  
    if(document.getElementById(str).style.display=="none"){  
       document.getElementById(str).style.display="block";  
    } else{  
       document.getElementById(str).style.display="none";  
    }  
}  
</script>  
</head>  
<body>  
    <s:form action="selectprovince.action" method ="POST" enctype ="multipart/form-data">
    <table width="166" border="0">  
        <tr>  
            <td height="22" style="cursor: pointer;" onclick="showInfo('tr1')" id="province">湖北省</td>  
        </tr>  
            <tr id="tr1" style="display: none;">  
                <td height="65" valign="top"> 
               
                 <s:form action="selectcity.action" method ="POST" enctype ="multipart/form-data">
                    <table width="100%" border="0">  
                        <tr>  
                            <td height="22" style="cursor: pointer;" 
                                onclick="showInfo('tr1a')" id="city">&nbsp;&nbsp;武汉市  
                            </td>  
                        </tr>  
                        <tr id="tr1a" style="display: none;">  
                            <td height="65" valign="top">  
                           
                              <s:form action="selectscenicArea.action" method ="POST" enctype ="multipart/form-data">
                                <table width="100%" border="0">  
                                    <tr>  
                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;武大樱花</td>  
                                    </tr>  
                                    <tr>  
                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;归园寺</td>  
                                    </tr>  
                                    <tr>  
                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;东湖欢乐谷</td>  
                                    </tr>  
                                </table>  
                                </s:form>
                            </td>  
                        </tr>  
                        
                    </table>  
                </s:form>
               
                </td>  
            </tr>  
              
              
        </table>  
     </s:form>
    </body>  
</html>

求高手指点数据封装

<无标签>
举报
wpb王鹏博
发帖于6年前 0回/86阅
顶部