Topic: AJAX 根本 |
Print this page |
1.AJAX 根本 | Copy to clipboard |
Posted by: jameszhang Posted on: 2008-10-26 08:41 function createXMLHttpRequest() { if(window.ActiveXObject) { try { xmlHttpRequest = new ActiveXObject("Msxml3.XMLHTTP"); } catch (e) { try { xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}}} }else if(window.XMLHttpRequest) { xmlHttpRequest=new XMLHttpRequest(); if (xmlHttpRequest.overrideMimeType) xmlHttpRequest.overrideMimeType('text/xml'); } } |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |