【发布时间】:2018-07-03 14:32:43
【问题描述】:
我正在尝试以 ANGULAR2 格式处理来自 API 服务的 JSON 数据。
我不知道该写什么。 这是一个示例代码
return this.http.get(url,{responseType: ResponseContentType.Blob }).map(
(res) => {
return new Blob([res.blob()], { type: 'application/vnd.ms-excel' })
})
此代码适用于 Excel 格式。 我想要 RTF 格式。 应用程序类型是什么?
【问题讨论】:
-
json数据以rtf处理为vnd.ms-excel? -
字节流数据到 RTF
标签: angularjs angular angular2-services angular2-directives