問題提問?
main.js:20 Uncaught TypeError: Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only 0 present.init @ main.js:20game @ main.js:12
在用getcontext的時候出現(xiàn)這個了怎么辦?
main.js:20 Uncaught TypeError: Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only 0 present.init @ main.js:20game @ main.js:12
在用getcontext的時候出現(xiàn)這個了怎么辦?
2017-02-17
舉報
2017-02-24
你看下getcontext("2d")里面有沒有加“2d"