|
API URL:
http://192.168.198.89/SOA/App/Ge ... h=1&endmonth=11
Wex5代码:
Model.prototype.button1Click = function(event){
var rcv;
$.ajax({
url:'http://192.168.198.89/SOA/App/GetPayRollByName',
type: "GET",
dataType: "json",
contentType: "application/json",
data: {name: "小胖",year:2017,begmonth:1,endmonth:11},
async: false,
cache:false,
success: function(result){
rcv=result;
},error:function(){
justep.Util.hint("接收数据失败");
throw justep.Error.create("接收数据失败");
}
});
justep.Util.hint(rcv);//获得的返回数据
return rcv;
};
没有成功,问题出在哪里? |
|