asp二级联动菜单选择不限问题
发布网友
发布时间:2023-05-19 01:53
我来回答
共1个回答
热心网友
时间:2024-11-14 18:41
<script language = "javascript">
var j;
j=0;
goaler = new Array();
<%set Rs1=conn.execute("select * from Type,Class where Type_Class=Class_ID order by Type_ID")
if Rs1.eof then%>
goaler[0] = new Array("无分类"," "," ");
<%else
%>
goaler[0] = new Array("小类不限"," "," ");
<%
i=1
do while not Rs1.eof%>
goaler[<%=i%>] = new Array("<%=Rs1("Type_Name")%>","<%=Rs1("Class_ID")%>","<%=Rs1("Type_ID")%>");
<%Rs1.movenext
i=i+1
loop
end if
Rs1.close
%>
j=<%=i%>;