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

能应用在webview中吗 #3

Open
yushilong opened this issue Nov 24, 2015 · 4 comments
Open

能应用在webview中吗 #3

yushilong opened this issue Nov 24, 2015 · 4 comments

Comments

@yushilong
Copy link

能应用在webview中吗,我想在webview加载网页的时候能快点。

@wangkaisdu
Copy link

你可以将webview的网络请求拦截到native,然后使用httpdns。

@yushilong
Copy link
Author

@wangkaisdu 可以具体点吗,给点示例什么的最好啦~~

@wangkaisdu
Copy link

就是把webview的网络http请求(拦截下来)由你自己来发,然后在发网络请求的时候将host替换为httpdns提供的ip地址。具体的我没试过,但感觉这是一种思路吧。像手机淘宝的webview请求也是这么做的http://www.archsummit.com/speakers/201915。

@yushilong
Copy link
Author

@wangkaisdu 感谢提供的思路!

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