請求兩個接口,如何在一個做用域內同時拿到兩個接口返回的數據?

function loadXMLDoc( url, callback) { var xmlhttp; if ( window. XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject( "Microsoft.XMLHTTP"); } xmlhttp. onreadystatecha
相關文章
相關標籤/搜索