浏览器按F12或打开开发者工具,在console(控制台)标签页下输入
fetch(new Request('http://localhost:8080/power/font/getToken',{method:'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'},body:"userName=000&password=123456"
})).then((resp)=>{console.log(resp.json())})
返回结果查看: