原理:理由ArrayBuffer.Blob和FormData var base64String = /*base64图片串*/; //这里对base64串进行操作,去掉url头,并转换为byte var bytes = window.atob(base64String.split(',')[1]); //处理异常,将ASCII码小于0的转换为大于0,这里有两种写法 第一种: var ab = new ArrayBuffer(bytes.length); var ia = new Uint8Arr…
{# {% for u in teacher_d.keys %}#} {# {% for u in teacher_d.values %}#} {% for k,u in teacher_d.items %} <input type="text" value="{{ k }}"> <input type="text" value="{{ u }}"> {% endfor %} user_dict = {…