答案 0 :(得分:0)
试试这个
$('#selectrole').on('change',function(){
var city = $(this).val();
var token = $(this).data('token');
var base_url = $(this).data('url');
$.ajax({
url:base_url+'/updaterole',
type: 'POST',
data: { _token :token,city_id:city_id },
success:function(msg){
alert("success");
}
});
})