1. canvas生成base64数据 canvas.toDataURL()生成的数据可以直接给image对象使用作为<img>显示在前端,也可以传给后台生成图片保存.前端生成保存图片的好像也有,但是比较麻烦,而且不兼容.我记得zip.js就可以在前端打包图片生成压缩包,不过我现在用不到,哪天想到了再整理整理. var contain = document.getElementById('contain'); var c=document.getElementById("myCan
Ovals, mathematically, are ellipses, including circles as a special case. The ellipse is fit into a rectangle defined by the coordinates (x0, y0) of the top left corner and the coordinates (x1, y1) of the bottom right corner: The oval will coincide w
Events(事件) Events are given as strings, using a special event syntax:事件以字符串的方式给出,使用特殊的事件语法:<modifier-type-detail>Event Formats(事件格式)1.<Button-1>在小部件上按下鼠标按钮触发事件2.<B1-Motion>按下按钮并移动触发事件3.<ButtonRelease-1>松开按钮触发事件4.<Double-Button-1