chrome浏览器F12调出开发者工具,在开发者工具界面如下:
var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://www.xxx.com/api/action'); xhr.send(null); xhr.onload = function(e) {
var xhr = e.target; console.log(xhr.responseText); }
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/232280.html原文链接:https://javaforall.net
