我从服务器发送以下响应:
return new OperationResult.Created { CreatedResourceUrl = getURI(newDuplicateKfEntity), ResponseResource = newDuplicateKfEntity };我的问题是如何在我的javascript中获得这个CreatedResourceUrl对象?
发布于 2012-01-07 01:23:40
返回一个类型化的DTO,并使用编解码器将其编码为OperationResult.Created,而不是Json。之后,在JavaScript中使用Json就很简单了。
https://stackoverflow.com/questions/8585468
复制相似问题