摘要:
1 var canvas = document.getElementById("myCanvas"); 2 if(canvas.getContext == null){ 3 return false; 4 } 5 var context = canvas.getContext("2d"); 6 context.shadowBlur = 20; 7 context.shadowColor = "rgb(0,0,0)"; 8 context.fillRect(150,150,100,100); 9 10 context.sh... 阅读全文