<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>IE_FF测试</title>
<script language="javascript" type="text/javascript">
var xmlDoc=null;
if(window.ActiveXObject){
xmlDoc=new ActiveXObject("Mcrosoft.XMLDOM");
}else
{
try{
xmlDoc=document.implementation.createDocument("","",null);
}catch(ex)
{ }
}
if(xmlDoc!=null){
xmlDoc.async=false;
xmlDoc.load("001.xml");
document.write(""+xmlDoc.documentElement.nodeName);
}
else
{
alert("您的浏览器不支持xml解析器");
}
</script>
</head>
<body>
</body>
</html>
js读取本地文件
最新推荐文章于 2024-03-01 20:13:50 发布