AJAX对get/post/put/delete的支持

后端同事想采用REST风格,hailiang在看jQuery文档时发现的$.ajax不是所有浏览器中都支持put/delete。

 

 

但没有指出具体是那些浏览器。

 

我新建了一个Java WEB项目测试所有浏览器,但都支持put和delete。测试浏览器版本如下

 

Firefox 11

Chrome 18

Safari 5

Opera 11.62

IE9 (含ie7,8模式)

IE6 (IETester及虚拟机中的ie6)

 

 

记录之!

 

 

相关:

http://www.douban.com/group/topic/5020441/

http://annevankesteren.nl/2007/10/http-method-support

http://dobrzanski.net/2007/04/22/using-put-and-delete-methods-in-ajax-requesta-with-prototypejs/

http://stackoverflow.com/questions/165779/are-the-put-delete-head-etc-methods-available-in-most-web-browsers


转载自:http://snandy.iteye.com/blog/1483186

原标题:xhrhttprequest部分浏览器中不支持put/delete


你可能感兴趣的:(Ajax,restfull)