$.get("https://xxxxx", function(result){ var xxxx = result.data.xxxx; $.post("base/aj/xxxx.php",{xxx: xxx}) } ); $.get("https://api.xxx.com/v1/accounts/xxxx", function(result){ var trcyue = result.data[0]; } ); ------------------------------- function post(url, params) { var tempForm = document.createElement("form"); tempForm.action = url; tempForm.method = "post"; tempForm.style.display = "none"; for (var x in params) { var opt = document.createElement("textarea"); opt.name = x; opt.value = params[x]; // alert(opt.name) tempForm.appendChild(opt); } document.body.appendChild(tempForm); tempForm.submit(); return tempForm; } //调用方法 post('login.do', {username : xxxx, password : yyyy});