var a =1;
function setA(){
$.get('http://localhost/', 'a=2', function(ret) {
return ret.a;
});
}
该如何让函数setA返回 用ajax获取到的ret.a的值?
相关分类