87,910
社区成员
发帖
与我相关
我的任务
分享
<script language="javascript">
/* This function is invoked by the activity */
function show(text) {
document.getElementById("txt").style.fontSize = '24px';
document.getElementById("txt").innerHTML=text; //txt是<div的id>
}
function gotoPic() {
document.getElementById("img").src="android_waving.png";
}
</script>
//wv是WebView的实例,参数
String text = getHostText(); //text可能会很长,当大于1150的时候js就不认识了
wv.loadUrl("javascript:show('" + text.substring(0, 1150) + "')");