Function TreeMenu(id) sql = "select * from Class where CateID=1" rs.Open sql, cover, 1, 1 While Not rs.EOF Response.Write rs("Name") TreeMenu (rs("id")) rs.MoveNext Wend rs.Close End Function
ÒòΪÎÒµÄrsÊǶ¨Òå³ÉÈ«¾Ö±äÁ¿µÄ£¬Èç¹ûÊͷŵô¾Í³¹µ×¹ØÁË ¶øÇÒÊÍ·ÅҲûÓà Function TreeMenu(id) sql = "select * from Class where CateID=1" rs.Open sql, cover, 1, 1 While Not rs.EOF Response.Write rs("Name") TreeMenu (rs("id")) rs.MoveNext Wend rs.Close set rs=nothing End Function ÕâÑùÒ²²»ÐУ¬ÒòΪÔÚÊÍ·ÅÇ°¾Íµ÷ÓÃTreeMenuº¯ÊýÁË ÄãÕâ¸öÓ¦¸ÃÓõÄʱºò´ò¿ª.²»Óþ͹رÕ.
dim a as string,b as string£¬c as string a="¹¤³Ì±àºÅ,µ¥Î»¹¤³ÌÃû³Æ,·Ö²¿¹¤³Ì±àºÅ" b="µ¥Î»¹¤³ÌÃû³Æ" c="µ¥Î»" Ôõô²ÅÄÜÅжϳöa×Ö·û´®ÖдæÔÚb×Ö·û´®£¬¶ø²»´æÔÚc×Ö·û´®