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

sample ajax方法传输 复杂json数据 转化json失败 #22

Open
yxxd1983 opened this issue Jun 18, 2019 · 1 comment
Open

sample ajax方法传输 复杂json数据 转化json失败 #22

yxxd1983 opened this issue Jun 18, 2019 · 1 comment

Comments

@yxxd1983
Copy link

/sample/src/main/java/com/apkfuns/jsbridgesample/module/ServiceModule.java
ajax 方法
从服务器端返回的 复杂json字符串(含有html编辑器的数据),js接收后转化为json会失败。
将返回结果 改为 base64字符串 ,js再反向转 就正常了。

@pengwei1024
Copy link
Owner

可能是单双引导转义的问题。你对内容执行下urlencode应该也行

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