Easiest way to retrieve cross-browser XmlHttpRequest
问题 What is the easiest and safest way to retrieve XmlHttpRequest object that works across all browsers? Without any extra libraries. Is there a code snippet you use often? P.S. I know there are tons of examples on the net, but this is precisely the reason I am asking: there are too many different examples, and I just want something simple and proven to work. jQuery and other libraries is NOT an option. Why does jquery leak memory so badly? 回答1: While I would recommend using a full library to