树下的老大爷
树下的老大爷
  • 发布:2021-03-12 10:47
  • 更新:2021-03-12 10:47
  • 阅读:588

请求到的arraybuffter数据 怎样才能保存本地 ?

分类:HTML5+
o.open("GET", ht, !0), o.responseType = "arraybuffer", o.onloadend = function() {  
                            //#ifdef APP-PLUS  
                            console.log('网下载完毕')  
                            console.log(name)  
                            console.log(typeof o.response)  
                            console.log(JSON.stringify(o.response))  
                            console.log('缓存完毕')  
                            plus.storage.setItem(name,JSON.stringify(o.response))  
                            // #endif  
                            u.load_viaProto(o.response, t, r)  
                        }

上面的代码只是保存的一个空的对象 ,打印出来是 :{ }

2021-03-12 10:47 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复