如何分配web视图文本内容到字符串变量 [英] How to assign an webView text content to String Variable

查看:72
本文介绍了如何分配web视图文本内容到字符串变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友的      是否有可能分配的WebView文本内容,以普通的字符串变量?如果是的话,请帮我。

Friend's Is there any possibility to assign WebView text content to ordinary String variable?if it so,please help me.

在此先感谢。

推荐答案

对不起,没有直接的办法做到这一点。如果你控制了网页,也有一些不愉快间接的方式来做到这一点。或者,如果你不需要显示给用户,使用HttpClient的检索页面,而不是一个的WebView

Sorry, there is no direct way to do this. If you control the Web page, there are some unpleasant indirect ways to do this. Or, if you do not need to display it to the user, use HttpClient to retrieve the page rather than a WebView.

这篇关于如何分配web视图文本内容到字符串变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆