代码报错 但我写的没错啊
代码报错:index.js:17 Uncaught TypeError: can1.getContext is not a function at init (index.js:17) at game (index.js:11) 我写的代码 can1=document.getElementById("canvas1"); ctx1=can1.getContext('2d'); can2=document.getElementById("canvas2"); ctx2=can2.getContext('2d'); 怎么解决 在线等