xhr.onreadystatechange = function() { if(xhr.readyState === 4) {
var cb if(xhr.status === 200) { cb = opts.success;
} else { cb = opts.fail;
}
cb && cb.call(null, xhr.responseText);
}
}在这段代码中call是种什么用法,调用的那个函数?
森林海
相关分类