循环

var canvas = $("#gameCanvas");
var context = canvas.get(0).getContext("2d");

//画布尺寸
var canvasWidth = canvas.width();
var canvasHeight = canvas.height();

function animate() {
     setTimeout(animate,1000);
  }
animate();

 

posted @ 2017-08-21 16:18  scqilin  阅读(164)  评论(0编辑  收藏  举报