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

如何在格式错误的时候获取到文本?或者如何允许输入非json格式的string #43

Open
zhangiser opened this issue Apr 30, 2021 · 1 comment

Comments

@zhangiser
Copy link

看到错误的时候走了onError的回调,但是拿不到文本,我的目的是要拿到那个文本,或者能允许输入非json格式的string也可以。

@anruy
Copy link

anruy commented Aug 23, 2021

我做了个try/catch,格式如果有误的时候,自己拼一个合理的json川出来。
如{msg:'',originValue:''}

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