摘要:
1、 var canvas = document.getElementById("tutorial"); var ctx = canvas.getContext("2d");ctx.clearRect(0, 0, 200, 200); // 清除画布的位置左上角的坐标及右下角坐标ctx.strokeStyle = "blue"; //strokeStyle 的值决定了你当前要绘制的线条的颜色ctx.fillStyle = "blue";//fillStyle 的值决定了你当前要填充的区域的颜色ctx.fillRec 阅读全文
posted @ 2013-07-01 18:26
温暖向阳Love
阅读(197)
评论(0)
推荐(0)
摘要:
offline Tetris try { //执行的代码,其中可能有异常。一旦发现异常,则立即跳到catch执行。否则不会执行catch里面的内容 } catch { //除非try里面执行代码发生了异常,否则这里的代码不会执行 } finally { //不管什么情况都会执行,包括try catch 里面用了return ,可以理解为只要执行了try或者catch,就一定会执行 finally } CACHE MA... 阅读全文
posted @ 2013-07-01 14:40
温暖向阳Love
阅读(2153)
评论(0)
推荐(0)