任何人都知道如何在Ajax调用之间设置500毫秒的延迟,我正在使用
function load(joke) {
var off = joke.trim();
console.log('Trims >> ' + off);
setTimeout(function() {
var request = $.ajax({
url: 'xxxsite.com/=true&active=' + off,
typeType: "json"
});
request.done((data) => {
$.each(data, function(k, v) {
var b = v.m_m;
var t = v.n_k;
var to = v.t_r;
var data = b+'/'+t + '/' +to;
$('#ssh_' + joke).text(data);
});
});
}, 500);
}