Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
XMLHttpRequest 可以从 http://mydomain.com/ 向 http://mydomain.com:81/ 发送请求吗?
对于被认为具有相同来源的两个文档,协议 (http/https)、域和端口(默认 80 或 :xx)必须相同。所以不,你不能对不同的端口使用 xhr。