欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

firefox中JS讀取XML文件

 更新時間:2006年12月21日 00:00:00   作者:  
firefox中JS讀取XML文件
在網(wǎng)上搜“firefox中JS讀取XML文件”的方法,找了半天,好多都是問了沒人答的??吹揭欢殉绦騿T在抱怨firefox:“除了累死程序員沒什么好處?!保詺w正傳。firefox不支持ie中的ActiveXObject對象,要得到一個XML DOM有以下2種方法:
1、document.implementation.createDocument("", "", null);
2、window.XMLHttpRequest 
示例:1、var dom=document.implementation.createDocument("", "", null);
dom.async=false;
dom.load("test.xml");//dom就是xml對象了。
2、var oXmlHttp = new XMLHttpRequest() ;
oXmlHttp.open( "GET", "test.xml", false ) ;
oXmlHttp.send(null) ;
//oXmlHttp.responseXML就是xml對象了。

相關(guān)文章

最新評論