【发布时间】:2014-01-09 18:53:44
【问题描述】:
我正在尝试将 this 示例移植到 Angular。我想使用 $http 而不是 XMLHttpRequest 对象。代码确实
var req = new XMLHttpRequest()
req.overrideMimeType('text/plain; charset=x-user-defined');
如何使用 Angular 的 $http 服务覆盖 MimeType?
【问题讨论】:
我正在尝试将 this 示例移植到 Angular。我想使用 $http 而不是 XMLHttpRequest 对象。代码确实
var req = new XMLHttpRequest()
req.overrideMimeType('text/plain; charset=x-user-defined');
如何使用 Angular 的 $http 服务覆盖 MimeType?
【问题讨论】:
【讨论】: