角JS:什么是$ http和$资源之间的差异 [英] Angular js: what is the difference between $http and $resource
本文介绍了角JS:什么是$ http和$资源之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要更好地时要使用可以理解$ http和$资源之间的区别每个
I need to better understand the difference between $http and $resource and when to use each
推荐答案
$资源是建立在$上面HTTP。
$resource is built on top of $http.
$ HTTP是正常AJAX,它可用于任何形式的网络服务的。
$http is normal ajax, it can be used for any form of web service.
$资源是专门为RESTful服务。
$resource is specifically for RESTful service.
在此的更多细节。
这篇关于角JS:什么是$ http和$资源之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文