js 接受data是 data is not defined 为什么
function conn() {
$.ajax({
url:'${base}/platform/iff/user/typeyonghu',
type:'post',
data:{'typeuser':typeuser},
success: function(data){
user=data;
}
});
}
后台
@At("/typeyonghu")
@Ok("json:full")
@RequiresPermissions("platform.iff.user")
public Object typeyonghu(int typeuser) {
Iff_usertype iffUsertype=iffUsertypeService.fetch(Cnd.where("type","=",typeuser));
String usertype=iffUsertype.getUsertype();
return usertype ;
}