yiduzixin@163.com | 发布于 2025-07-16 09:26:42 | 阅读量 7 |
发布于 2025-07-16 09:26:42 |


chrome浏览器F12调出开发者工具,在开发者工具界面如下:


在Console输入下面的代码

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);
}

回车运行代码


内容更新于: 2025-07-16 09:26:42
链接地址: http://blog.leanote.com/post/yiduzixin@163.com/%E6%B5%8B%E8%AF%95%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82

上一篇: 无

下一篇: 硬盘空间动态扩展

7 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航