js fetch
111
fetch(url, { method: 'post', body: data }) .then(response => { if (!response.ok) { throw new Error('Network response was not OK'); } if (response.redirected) { alert('登录超时,请重新登录') } else { return response.text() } }) .then(response => { alert(response) }) .catch(error => { });
浙公网安备 33010602011771号