【问题标题】:AngularJs $resource delete request with bodyAngularJs $resource 删除请求与正文
【发布时间】:2015-02-20 17:57:16
【问题描述】:

您好,我知道这个问题被问了很多次,但我没有找到答案。

如何使用 AngularJs $resource delete 方法向具有正文的 Web 发送调用?我没能做到。我挣扎了很多,我找到了一些资源说你可以做到。下面是我找到的链接

delete to be method with body
$resource obj.$delete sends the resource as the request body
$resource DELETE doesn't set the Request Body if provided

但我不知道如何使用正文进行删除。可以举个例子吗?

谢谢

【问题讨论】:

    标签: angularjs httprequest angularjs-resource


    【解决方案1】:

    请看这里https://github.com/angular/angular.js/issues/3207
    (太长不要看:DELETE不应该带body)

    【讨论】:

    • 虽然这在技术上是正确的答案,但它并没有提供足够的上下文来确保它继续相关。由于此问题是在答案前一年发布的,因此链接和简要说明对原始发帖者没有用处,因此应格外小心地写出答案与其他人相关的原因。
    猜你喜欢
    • 2013-09-16
    • 2022-01-24
    • 1970-01-01
    • 1970-01-01
    • 2016-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多