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是种什么用法,调用的那个函数?
慕森卡
森林海
随时随地看视频慕课网APP
相关分类