1.使用画布时报错误: Uncaught TypeError: Object [object Object] has no method 'getContext' 。 解决方法: $(function(){ canvas = $('#canvas1')[0]; ctx = canvas.getContext('2d'); })
1.使用画布时报错误: Uncaught TypeError: Object [object Object] has no method 'getContext' 。 解决方法: $(function(){ canvas = $('#canvas1')[0]; ctx = canvas.getContext('2d'); })
转载于:https://www.cnblogs.com/zfdai/p/3630466.html