获取接口后:
this.base = res.Data.Base;
this.base64ToBlob(this.base);
转MP3:
base64ToBlob(base64) {
var arr = base64,
varmime = arr.match(/:(.*?);/),
bstr = atob(arr);
return URL.createObjectURL(
new Blob([bstr], {type: mime}),
);
},
能帮忙看一下这个代码有什么问题吗?
11-24
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交