if(JSON.stringify(data)=='{}'){ $("#year").append("<option>--请选择--</option>"); }
说明:data就是后台传递过来的map集合