摘要:
//得到2D渲染上下文var cancans = document.getElementById("myCanvas");var width = cancans.getAttribute("width");var height = cancans.getAttribute("height");var context = document.getElementById("myCanvas").getContext("2d");var x = 40, y = 40;context.fillStyle 阅读全文