firefox中JS读取XML文件

baoer71868 19 0 PDF 2020-12-13 10:12:03

firefox中JS读取XML文件 在网上搜“firefox中JS读取XML文件”的方法,找了半天,好多都是问了没人答的。看到一堆程序员在抱怨firefox:“除了累死程序员没什么好处。”,言归正传。firefox不支持ie中的ActiveXObject对象,要得到一个XML DOM有以下2种方法:1、document.implementation.createDocument(“”, “”, null);2、window.XMLHttpRequest 示例:1、var dom=document.implementation.createDocument(“”, “”, null); dom.

用户评论
请输入评论内容
评分:
暂无评论