就一行代码
canvas.getContext(‘webgl’) //null
canvas.getContext(‘2d’) //正常
用canvas.getContext(‘experimental-webgl’)来实现!
我跟你正好相反,2d get 为null