JQuery‘ post&get: asynchronous.
2014-06-27 16:57:25
var client; function getClient(){ $.ajax({ url: "...", async: false, //同步方式 type: "GET", //"POST" // data: .... success: function (data) { client = $.parseJSON(data); } }); }
JQuery>>>get/post赋值全局变量
时间: 2024-10-27 03:36:44