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); ? ??};
var ctx = canvas.get(0).getContext("2d");我就想知道這get(0)啥意思啊
sdwsq
2016-12-12 14:31:14