代码: function createSeal(id,company,name){ var canvas = document.getElementById(id); var context = canvas.getContext('2d'); // 绘制印章边框 var width=canvas.width/2; var height=canvas.height/2; context.lineWidth=7; context.strokeStyle="#f00"; context.b
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(
1.加载显示图片 <canvas id="canvasOne" class="myCanvas" width="500" height="500"></canvas> <script> var canvas = document.getElementById('canvasOne'); var ctx = canvas.getContext('2d'); //加载图片 var img = n