chrome控制台输入
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://192.168.1.124:5001/api/multi-tenancy/tenants');
xhr.send(null);
xhr.onload = function(e) {
var xhr = e.target;
console.log(xhr.responseText);
}
ƒ (e) {
var xhr = e.target;
console.log(xhr.responseText);
}
浏览器测试跨域问题
最新推荐文章于 2024-08-12 14:13:29 发布