English 中文(简体)
xmlhttprequest=ajax(仅来自ajax的结果)
原标题:does xmlhttprequest = ajax (results from ajax only)
  • 时间:2011-02-08 05:46:38
  •  标签:
  • php
  • ajax

当我听到人们谈论xmlhttprequest或XHR时,它基本上是指这样的ajax调用,还是有“其他方法”可以在不使用ajax的情况下获得xmlhttprequest?

$.ajax({
  url:  http://site.com/page ,
  type:  POST ,
  data: { input:  input  },
  success: function(resp) {
  }
});
最佳回答

简短的回答,是的。答案很长,甚至不接近。

$.ajax是XHR对象的包装器,根据浏览器的不同,XHR对象具有不同的API。(FFx、Safari、IE等)。

外部HttpRequest。

Ajax,是异步Javascript和Xml。(技术名称可能因个人而异。)

$.ajax会执行与XHR对象相同的功能吗?是的,它被广泛使用,是编写XHR代码来处理每个浏览器的安全替代方案。

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签