// url 转bolb
urlToBlob(the_url, callback) {
let xhr = new XMLHttpRequest();
xhr.open('get', the_url, true);
xhr.responseType = 'blob';
xhr.onload = function () {
if (this.status == 200) {
if (callback) {
callback(this.response);
}
}
};
xhr.send();
},
Js 文件图片URL 转Bolb 格式方法
最新推荐文章于 2023-11-16 17:35:06 发布