rs为一级栏目的记录集 rs2为二级栏目的记录集 分别替换成你自己的记录集名称就好了 <script language="JavaScript"> var onecount; var count; onecount=0; subcat = new Array(); <% count = 0 do while not rs2.eof %> subcat[<%=count%>]=new Array("<%=trim(rs2("e
在"MVC二级联动使用$.getJSON方法"中使用$.getJSON()获取后端返回的JSon. 本篇使用jQuery的$.ajax()获取后端返回的字符串,实现二级联动. □ View Models 1: namespace MvcApplication1.Models 2: { 3: public class Province 4: { 5: public int ID { get; set; } 6: public string Name { get; set; } 7:
本篇使用jQuery的$.getJSON()实现二级联动. □ View Models 1: namespace MvcApplication1.Models 2: { 3: public class Province 4: { 5: public int ID { get; set; } 6: public string Name { get; set; } 7: } 8: 9: public class City 10: { 11: public int ID { get; set;