var xdata;
$.ajax({
url:"../addons/cms/wxpay/ispay",
success:function(res){
xdata = res;
}
})
return xdata;
请问怎么才能return到ajax返回值?
在上面定义的xdata好像无效