方法一:
function 方法名(参数名){
Ext.Ajax.request({
url: '/woxiang/control/bapi?operFlag=toExamine',//接口路径
params: { pkid: '${cht_fundApplyId?if_exists}',price:price},//参数
method: 'POST',
success: function(response) {
res = Ext.decode(response.responseText);//获取接口返回参数
$("#id").text(res.MSG);//根据id指定赋值
},
failure: function(response) {
}
});
}
方法二:
$.ajax({
url: "/woxiang/control/go?operFlag=choiceProduct&storeId="+storeId+"&brandNo="+brandNo+"&wareHouseCode="+wareHouseCode+"&skus="+skus,
type:"POST",
dataType : "json",
success: function (data) {
//消息弹窗
Ext.Msg.alert("提示",data.MSG,function(){
//弹窗关闭,清除缓存
choiceProductWin.hide();
});
}
})