var ctx = canvas.get(0).getContext("2d");canvas.attr("width",$(window).get(0).innerWidth);canvas.attr("height",$(window).get(0).innerHeight);$(window).resize(resizeCanvas);function resizeCanvas(){ canvas.attr("width",$(window).get(0).innerWidth); canvas.attr("height",$(window).get(0).innerHeight); };
添加回答
举报
0/150
提交
取消