博客分类: 
  • Ajax
XML 
Java代码  ajax中 XmlHttp的open( )方法
  1. var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");  
  2. xmlhttp.open("GET","http://localhost/books.xml", false);  
  3. xmlhttp.send();  
  4. var book = xmlhttp.responseXML.selectSingleNode("//book[@id='bk101']");  
  5. alert(book.xml);  

备注 
调用此方法后,可以调用send方法向服务器发送数据

相关文章:

  • 2022-02-12
  • 2021-06-28
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-12-19
  • 2021-08-05
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-08-30
相关资源
相似解决方案