xmlhttp 和 xmldom 的作用是不是一样的?????????

fsxin 2004-08-12 08:16:16
xmlhttp 和 xmldom 的作用是不是一样的?????????

xmldom也可以用来获得数据

xmldom.load("xml.asp?id=1")

xmlhttp也可以用来获得数据

xmlhttp.open("POST",("xml.asp?id=1",false);

所以它们的作用是不是一样的???
...全文
228 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
超级大笨狼 2004-08-18
  • 打赏
  • 举报
回复
xmlhttp 可以请求一个asp文件,但是asp执行结果必须是符合well-formed的xml,xml.load则必须是xml文件。
978107 2004-08-12
  • 打赏
  • 举报
回复
the truely to say:

the XMLHTTP can ftp the XML file, the XMLDOM in client release, it can be open the xml file, and control the xml how to display, and control the node is delete or add or modify.

the process often do this:
the XMLHTTP download xml file, behind ,xmlDOM release the xml in the client, the helpful that the method can low to Sever onus.
sportdog 2004-08-12
  • 打赏
  • 举报
回复
星星!闪的我眼花!
超级大笨狼 2004-08-12
  • 打赏
  • 举报
回复
同意: fason(Forbes Pu)
xmlhttp是个传输手段,得到的内容可以被xmldom加载。

就是说xmldom远程取物要靠xmlhttp,邮局和包裹之间的关系。
fason 2004-08-12
  • 打赏
  • 举报
回复
不一样,xmlhttp是http请求包括get,post提交
超级大笨狼 2004-08-12
  • 打赏
  • 举报
回复
邮局可以是包裹的载体,也可以不是
yonghengdizhen 2004-08-12
  • 打赏
  • 举报
回复
xmlhttp可以是xmldom的载体,也可以不是

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧