最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
chosen实现省市区三级联动
时间:2022-06-25 15:45:30 编辑:袖梨 来源:一聚教程网
本文实例为大家分享了chosen实现省市区三级联动的具体代码,供大家参考,具体内容如下
效果图:
一、资源
1.1、css资源
1.2、js资源
二、代码
三、javascript代码
四、java代码
/** * * @Title: findCitiesByProvince * @Description: 根据省份获取城市列表 * @author: 大都督 * @param provinceId * @return * @return: MessageInfo */ @RequestMapping("/find_cities_by_province") @ResponseBody public ListfindCitiesByProvince(String provinceId) { Assert.hasText(provinceId, StringText.provinceId_must); return cityDao.findByProvinceId(provinceId); } /** * * @Title: findAreasByCity * @Description: 根据城市获取区县列表 * @author: 大都督 * @param cityId * @return * @return: List */ @RequestMapping("/find_areas_by_city") @ResponseBody public List findAreasByCity(String cityId) { Assert.hasText(cityId, StringText.cityId_must); return areaDao.findByCity(cityId); }
相关文章
- 《崩坏:星穹铁道》缇宝最强光锥搭配推荐一览 02-20
- 《仙剑世界》潮起介绍 02-20
- 《崩坏:星穹铁道》如果时间是一朵花突破材料汇总 02-20
- 雨水节气的到来,标志着哪个季节的开始 02-20
- 《龙族:卡塞尔之门》活动日历查看位置 02-20
- 《仙剑世界》卡池抽取攻略 02-20