变量不会从Ajax函数返回
var lock_get = 0; function get_data(data, destination) { if (lock_get == 0) { lock_get = 1; $.ajax({ type: "POST", url: destination, async: true, data: data, success: function(data) { lock_get = 0; if (data) { return data; } } }); } };
var test = get_data(data, destination); notice(test);
一只斗牛犬
相关分类