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.
如果我整合这个变量来获取数据,这个变量是否可以var xmlHttp = getXMLHttp()使用?HTTPSajax
var xmlHttp = getXMLHttp()
HTTPS
ajax
XMLHttpRequest确实适用于http和https。(见:http ://www.w3.org/TR/XMLHttpRequest/ )
XMLHttpRequest
http
https
相同的来源政策仍然适用,并且http://example.com&https://example.com被视为不同的来源。
http://example.com
https://example.com