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

Mention 使用到 draft 导致 IE 下无法访问 #3400

Closed
afc163 opened this Issue Oct 12, 2016 · 3 comments

Comments

Projects
None yet
1 participant
@afc163
Member

afc163 commented Oct 12, 2016

#3359 (comment)

还是要在构建时提前 es5 化。

@afc163

This comment has been minimized.

Show comment
Hide comment
@afc163

afc163 Oct 12, 2016

Member

Mention 依赖了 draftjs,而它使用 startsWith 等 ES6 的方法,需要引入 polyfill


  1. 如果你没有使用 Mention,建议请使用 babel-plugin-import 按需加载,这样不会引入相关代码。
  2. 如果你使用到了 Mention,则需要 es6-shim 或 babel-polyfill,或使用 babel-runtime。

参考这里:https://ant.design/docs/react/getting-started-cn#兼容性

Member

afc163 commented Oct 12, 2016

Mention 依赖了 draftjs,而它使用 startsWith 等 ES6 的方法,需要引入 polyfill


  1. 如果你没有使用 Mention,建议请使用 babel-plugin-import 按需加载,这样不会引入相关代码。
  2. 如果你使用到了 Mention,则需要 es6-shim 或 babel-polyfill,或使用 babel-runtime。

参考这里:https://ant.design/docs/react/getting-started-cn#兼容性

@afc163

This comment has been minimized.

Show comment
Hide comment
@afc163
Member

afc163 commented Oct 15, 2016

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.