前端比较麻烦,因为: The other HTTP methods (i.e. other than GET and POST) are not available in HTML 4.1 or XHTML 1.0.也就是说实际上HTML5以前,FORM都仅支持GET和POST。 即便你尝试自己用Ajax来做,都未必能成功。 在jQuery的文档中说: The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.(最后一句话:不是所有浏览器支持其它方式)
The other HTTP methods (i.e. other than GET and POST) are not available in HTML 4.1 or XHTML 1.0.也就是说实际上HTML5以前,FORM都仅支持GET和POST。
即便你尝试自己用Ajax来做,都未必能成功。
在jQuery的文档中说:
The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.(最后一句话:不是所有浏览器支持其它方式)
我看豆瓣那个,好像是REST风格的。我想用web.py这个python的web框架,来实现REST风格的架构,但是前台页面不支持,这个问题怎么解决呢?