AJax技术

JavaWeb(9):AJAX(3)

字号+ 作者:H5之家 来源:H5之家 2017-09-02 14:04 我要评论( )

准备model包,包含省市区三个类 1 package com.model; 2 3 public class Province { 4private int id; 5private String provinceid; 6private String province; 7 8public int getId() { 9return id;10}11 12public

准备model包,包含省市区三个类

1 package com.model; 2 3 public class Province { 4 private int id; 5 private String provinceid; 6 private String province; 7 8 public int getId() { 9 return id; 10 } 11 12 public void setId(int id) { 13 this.id = id; 14 } 15 16 public String getProvinceid() { 17 return provinceid; 18 } 19 20 public void setProvinceid(String provinceid) { 21 this.provinceid = provinceid; 22 } 23 24 public String getProvince() { 25 return province; 26 } 27 28 public void setProvince(String province) { 29 this.province = province; 30 } 31 32 @Override 33 public String toString() { 34 return "Province [id=" + id + ", provinceid=" + provinceid + ", province=" + province + "]"; 35 } 36 37 } 1 package com.model; 2 3 public class City { 4 private int id; 5 private String cityid; 6 private String city; 7 private String provinceid; 8 9 public int getId() { 10 return id; 11 } 12 13 public void setId(int id) { 14 this.id = id; 15 } 16 17 public String getCityid() { 18 return cityid; 19 } 20 21 public void setCityid(String cityid) { 22 this.cityid = cityid; 23 } 24 25 public String getCity() { 26 return city; 27 } 28 29 public void setCity(String city) { 30 this.city = city; 31 } 32 33 public String getProvinceid() { 34 return provinceid; 35 } 36 37 public void setProvinceid(String provinceid) { 38 this.provinceid = provinceid; 39 } 40 41 @Override 42 public String toString() { 43 return "City [id=" + id + ", cityid=" + cityid + ", city=" + city + ", provinceid=" + provinceid + "]"; 44 } 45 46 } 1 package com.model; 2 3 public class Area { 4 private int id; 5 private String areaid; 6 private String area; 7 private String cityid; 8 public int getId() { 9 return id; 10 } 11 public void setId(int id) { 12 this.id = id; 13 } 14 public String getAreaid() { 15 return areaid; 16 } 17 public void setAreaid(String areaid) { 18 this.areaid = areaid; 19 } 20 public String getArea() { 21 return area; 22 } 23 public void setArea(String area) { 24 this.area = area; 25 } 26 public String getCityid() { 27 return cityid; 28 } 29 public void setCityid(String cityid) { 30 this.cityid = cityid; 31 } 32 @Override 33 public String toString() { 34 return "Area [id=" + id + ", areaid=" + areaid + ", area=" + area + ", cityid=" + cityid + "]"; 35 } 36 }

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  •  Ajax学习札记01-简单实现数据异步交互

    Ajax学习札记01-简单实现数据异步交互

    2017-09-02 15:00

  • 前端学习之ajax

    前端学习之ajax

    2017-09-02 14:04

  • Xajax相关资料

    Xajax相关资料

    2017-09-02 08:02

  • 她的技巧qvod|涕泗横流|ajax实例

    她的技巧qvod|涕泗横流|ajax实例

    2017-09-01 17:01

网友点评
m