主干销毁模型,获取方法或请求有效载荷

Backbone destroy model, get method or request payload?

本文关键字:请求 有效 方法 获取 模型      更新时间:2023-09-26

当我销毁模型(DELETE) id直接在查询字符串(/rest/id)或在请求有效载荷(json在http体)??

是的。

create → POST   /collection
read → GET   /collection[/id]
update → PUT   /collection/id
delete → DELETE   /collection/id