Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

浏览器支持 #139

Closed
SaitamaSiSi opened this issue Apr 21, 2022 · 3 comments
Closed

浏览器支持 #139

SaitamaSiSi opened this issue Apr 21, 2022 · 3 comments

Comments

@SaitamaSiSi
Copy link

SaitamaSiSi commented Apr 21, 2022

请问一下,Idraw对 IE10 / IE11 这类浏览器支持吗,因为我在谷歌浏览器能正常运行,但在IE11上提示错误
image

@chenshenhai
Copy link
Member

chenshenhai commented Apr 21, 2022

@SaitamaSiSi Canvas的2D绘制IE10-11是支持的 https://caniuse.com/?search=CanvasRenderingContext2D

你遇到的报错是ES6的Symbol报错,必须要引用 polyfill 解决,
你可以尝试加入 babel的polyfill https://babeljs.io/docs/en/babel-polyfill.html
或者 es5-shim https://www.npmjs.com/package/es5-shim

@SaitamaSiSi
Copy link
Author

SaitamaSiSi commented Apr 22, 2022

谢谢您的回复,我设置了polyfill后,iDraw对象能够生成,但在调用setdata的时候报调用的对象无效,后面试过addElement等也会报这个错,好像只要调idraw方法就会出现,可是iDraw对象生成的时候并没有报异常
image

image

image

image

image

@SaitamaSiSi
Copy link
Author

经过测试后,发现用调试模式下运行会报这个错误,但在发布程序之后再运行就正常了,可能是我调试模式的一些设置问题吧,谢谢您的帮助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants