We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
浏览器版本:chrome91
问题:调用 editorService.update() 会出错,因为 Object.hasOwn 方法在该版本不支持,是否可以做下兼容
截图如下:
The text was updated successfully, but these errors were encountered:
可以尝试一下使用legacy插件来提高兼容性
import legacy from '@vitejs/plugin-legacy'; legacy({ targets: ['chrome>=91'], }),
Sorry, something went wrong.
我尝试过了,使用legacy插件应该只是提高自身项目的兼容性吧。而 doUpdate 方法在我使用的 @tmagic/editor 的包里,应该不起作用吧。
legacy 是加在你使用 @tmagic/editor的项目上的,怎么会不起作用
最简单的办法就是自己实现一下Object.hasOwn方法
https://github.com/zloirock/core-js中有对应的实现
No branches or pull requests
浏览器版本:chrome91
问题:调用 editorService.update() 会出错,因为 Object.hasOwn 方法在该版本不支持,是否可以做下兼容
截图如下:
The text was updated successfully, but these errors were encountered: