标签:查找 标签 font embed time div 记录 cap class
var dataURItoBlob = function (dataURI) { var byteString = atob(dataURI.split(‘,‘)[1]); var mimeString = dataURI.split(‘,‘)[0].split(‘:‘)[1].split(‘;‘)[0]; ???? var ab = new ArrayBuffer(byteString.length); var ia = new Uint8Array(ab); for (var i = 0; i < byteString.length; i++) { ia[i] = byteString.charCodeAt(i); } return new Blob([ab], {type: mimeString}); }, fd = new FormData(), fname = (new Date().getTime()) + parseInt(Math.random() * 1000, 10) + ".jpg", blob = dataURItoBlob("data:image/jpg;base64," + that.imgEditerPlugin.encodeBase64()); fd.append("file", blob, fname); ajax.ajax({ contentType: false, cache: false, url: uploadUrl, type: "POST", processData: false, data: fd }).then(function (result) {});
7.图片共享:
a.先根据客户号、影像类别查找已经已经上传的图片帧、先获取到以前的url并显示图片;
b.点击使用的时候,服务端拷贝一份相同的图片,并且保存数据到表里,再返回对应当前帧的服务器图片地址,替换对应帧记录显示。
标签:查找 标签 font embed time div 记录 cap class
原文地址:https://www.cnblogs.com/ouycx/p/9342022.html