$.post(url, function (xml) {
var obtainInfo;
//判断是否是ie浏览器
if( isIE() ){
var str = xml.lastChild;
obtainInfo = JSON.parse(str ["textContent"]);
}else{
var str = $(xml)[0]["lastElementChild"]["innerHTML"];
obtainInfo = JSON.parse(str);
}
判断是否是IE
function isIE() {
return window.ActiveXObject || "ActiveXObject" in window ? !0 : !1
}