我發送了一個帖子請求,我得到了這樣的回復“ [符號(響應內部)]:{ url:'https://login.somenewloginpage'}”我想做的是我想通過該網址打開一個新頁面,但它不會定向到新頁面。const login= () => async () => { const api = `somePostRequest` fetch(api, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-url-encoded', Accept: 'application/json', }, }) .then(function(res) { return res //maybe I should do something in this part... }) .then(data => console.log(data));};
我的帖子請求得到 https 響應但不返回到新頁面(javascript)
當年話下
2023-07-29 14:50:37