Closed SamLuo835 closed 4 years ago
new SVGA.Player('#demoCanvas');
如上面所提,在文档中创建一个player instance 时候,传进去的并不是一个css selcetor。 如果是css selector 则会报错 Cannot read property 'getContext' of null
而传入一个html element的话则正常显示动画。
new SVGA.Player('#demoCanvas');
如上面所提,在文档中创建一个player instance 时候,传进去的并不是一个css selcetor。 如果是css selector 则会报错 Cannot read property 'getContext' of null
而传入一个html element的话则正常显示动画。