06 2012 档案
摘要:HTML5 canvas的事件<script> var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.strokeStyle = "black"; context.fillStyle = "red"; context.rect(0, 0, 300, 400); context.fill();canvas.onmousedown = function() {conso
阅读全文