2

我从服务器发送以下响应:

return new OperationResult.Created { CreatedResourceUrl = getURI(newDuplicateKfEntity), ResponseResource = newDuplicateKfEntity };

我的问题是如何CreatedResourceUrl在我的 javascript 中获取这个对象?

4

1 回答 1

0

而不是 OperationResult.Created 返回一个类型化的 DTO 并使用编解码器将其编码为 Json。之后在 JavaScript 中使用 Json 就很简单了。

于 2012-01-06T17:23:39.637 回答