easyui-combobox获取后台传递的值

1、页面代码:

 


2、后台获取值:

 

 

    @RequestMapping("/listProv")
    @ResponseBody
    public List qryAllProvs()
    {
        List list = this.provinceService.qryAllProvs();
        return list;
    }


返回json报文格式:

 

 

[{"name":"北京","id":1},{"name":"上海","id":2},{"name":"广东","id":3},{"name":"广西","id":4},{"name":"江苏","id":5},{"name":"浙江","id":6},{"name":"安徽","id":7},{"name":"江西","id":8},{"name":"山东","id":9},{"name":"福建","id":10},{"name":"山西","id":11},{"name":"河北","id":12},{"name":"天津","id":13},{"name":"辽宁","id":14},{"name":"黑龙江","id":15},{"name":"吉林","id":16},{"name":"湖北","id":17},{"name":"湖南","id":18},{"name":"四川","id":19},{"name":"重庆","id":20},{"name":"陕西","id":21},{"name":"甘肃","id":22},{"name":"云南","id":23},{"name":"新疆","id":24},{"name":"内蒙古","id":25},{"name":"海南","id":26},{"name":"贵州","id":27},{"name":"青海","id":28},{"name":"宁夏","id":29},{"name":"西藏","id":30},{"name":"河南","id":31},{"name":"台湾","id":32}]

 

 

 

 

 

你可能感兴趣的:(前端技术)