>>> var xhr = new XMLHttpRequest(); undefined >>> xhr.open('GET', 'http://192.168.1.102:8000/2.0/10', true); undefined >>> xhr.send()
GET http://192.168.1.102:8000/2.0/10 | 301 MOVED PERMANENTLY | 13ms | debugg...al code (第 1 行) |
undefined
GET http://192.168.1.102:8000/2.0/10/ | 200 OK | 29ms |
>>> xhr.status 200
>>> var xhr = new XMLHttpRequest(); undefined >>> xhr.open('GET', 'http://www.sohu.com', true); undefined >>> xhr.send()
GET http://www.sohu.com/ | 200 OK | 55ms | debugg...al code (第 1 行) |
undefined >>> xhr.status 0
對方伺服器沒有設定允許跨域的頭。