在"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;