在这里,我调用 GetFile ,以 ArrayBuffer{} 对象的形式获取响应,如果我执行 response.errors=undefined,则在网络选项卡中响应为 {"errors":["photoProof Image is not available in the system"]}。
$scope.getDocuments = function(){
Myservice.downLoadDocument('photo', $scope.user.mobileNo).
then(function(response){
})
}
Run Code Online (Sandbox Code Playgroud)
如果我这样做,网络选项卡中的值就会低于该值。
response.byteLength = 64
Run Code Online (Sandbox Code Playgroud)
如何将此 ArrayBuffer 转换为正确的 JSON 格式?
在 firebase-messaging-sw.js 中
importScripts(' https://www.gstatic.com/firebasejs/3.5.2/firebase-app.js '); importScripts(' https://www.gstatic.com/firebasejs/3.5.2/firebase-messaging.js
出现“importScripts 未定义”错误
在 angular 应用程序中的何处包含 firebase-messaging-sw.js Js 文件?我已经包含在 scripts/firebase-messaging-sw.js 中。
在 index.html
<script src="scripts/firebase-messaging.js"></sc
Run Code Online (Sandbox Code Playgroud) 中心标签不起作用,说明中心未知
<center>
<a><img class="placeholder_img" src="img/placeholder.png"></a>
</center>
Run Code Online (Sandbox Code Playgroud)
我使用上面的html标签说“中心不是已知元素”。