javascirpt (function($){ $.fn.extend({ aiiUpload:function(obj) { if(typeof obj !="object") { alert('参数错误'); return; } var imageWidth,imageHeight; var base64; var file_num=0; var fileInput=$(this); var fileInputId=fileInput.attr('id'); createDoc(…
//preview img : filereader方式 document.getElementById('imgFile').onchange = var ele = document.getElementById('imgFile').files[0]; var fr = new FileReader(); fr.onload = function(ele){ var pvImg = new Image(); pvImg.src = ele.target.result; pvImg.setA…