XMLHttpRequest部分浏览器中不支持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

 

web-2012-4-20.zip

posted on 2012-04-20 16:41  snandy  阅读(8544)  评论(4编辑  收藏  举报