先看看最简单的效果图:代码如下:JavaScript Code复制内容到剪贴板var canvas = document.getElementById('my'), ctx = canvas.getContext(