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

这个ie浏览器不兼容,怎么解决 #3

Closed
yeild opened this issue Dec 20, 2018 · 1 comment
Closed

这个ie浏览器不兼容,怎么解决 #3

yeild opened this issue Dec 20, 2018 · 1 comment

Comments

@yeild
Copy link
Owner

yeild commented Dec 20, 2018

Originally posted by @Lucien0822 in #2 (comment)

@yeild
Copy link
Owner Author

yeild commented Dec 20, 2018

已解决。
IE中存在2个问题:
1是IE不支持Object.assign,加上相关Polyfill可以解决:

  // .babellrc
  "plugins": [
    "babel-plugin-transform-object-assign"
  ]

2是即使设置 img.crossOrigin,在IE11以下canvas图片仍不能跨域的问题,
可以通过ajax获取图片blob,再使用FileReader转为dataURL显示。
但是IE9不支持FileReader,因此仅支持到IE10+

@yeild yeild closed this as completed Dec 20, 2018
Repository owner deleted a comment from Lucien0822 Jan 8, 2019
Repository owner deleted a comment from Lucien0822 Jan 8, 2019
Repository owner deleted a comment from Lucien0822 Jan 8, 2019
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

1 participant