省市区三级联动设置默认值
自带的省市区例子没有设置默认的省市区,现在想设置默认的省市区,但是不清楚该怎么设置,求助!!!前台代码和js见附件。后台代码如下
@RequestMapping(params="regionSelect",method = RequestMethod.GET)
@ResponseBody
public List<Map<String, String>> cityselect(HttpServletRequest req) throws Exception{
logger.info("----省市区联动-----");
String pid=req.getParameter("pid");
List<Map<String, String>> list=jeecgMinidaoDao.getProCity(pid);
return jeecgMinidaoDao.getProCity(pid);
}
页:
[1]