react/vue使用Snap.svg巨坑

在react/vue中能夠使用snapsvg,然而在使用時會碰上巨坑「Uncaught TypeError: Cannot read property ‘on’ of undefined」,這個問題能夠用如下方法解決。javascript 首先須要先npm install snapsvg將其引入,其次須要引入npm install imports-loader,而後在使用時須要對其進行必定的處理以
相關文章
相關標籤/搜索