rails下一般的HTTP请求与AJAX请求如何区别?
我想区别一下如何区分一般的HTTP请求与AJAX请求。
rails下一般的HTTP请求与AJAX请求如何区别?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
qichunren 2008-12-23 11:20关注[code="ruby"]
if request.get?your code here
elsif request.post?
your code here
elsif request.xhr?
ajax request
[/code]
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报