android 中怎么抓去网页中<div id="content">

android 中怎么抓去网页中<div id="content">,第1张

function prettydown_com(){

  documentgetElementById('content')styledisplay="block";

}

不知道你是否可以使用js,可以的话直接获取他的id,或其它div的id直接为none

下边是我做的两个静态的测试页,只要将你的aasp中的代码变成

<span id="aa">

<%

c="aaaaaaaa"

responsewrite(c)

%></span>

用JavaScript从两个页面取值,就是两个窗口的父子关系,都可以做到,但这样做的问题是要两个窗口都存在,即Bhtml要么是open出来的,要么就是嵌在aasp的一个div,iframe,或什么东西中

我曾尝试从A转到B,取A的值,没有成功

ahtml

<HTML>

<HEAD>

</HEAD>

<script>

function fun(){

var param = "width = 590px,height=420px,menubar = no,toolbar = no,location = no,directries = no,scrollbars = no,status = no,resizable = no, left= 220, top = 150";

windowopen("bhtml","",param);

}

</script>

<BODY>

<span id="aa">aaaaaa</span>

<input type="button" value="c" onclick="fun();">

</BODY>

</HTML>

bhtml

<HTML>

<HEAD>

</HEAD>

<script>

function fun(){

documentgetElementById("a")value= windowopenerdocumentgetElementById("aa")innerText;

}

</script>

<BODY onload="fun();">

<input type="text" id="a" value="">

</BODY>

</HTML>

用Dreamweaver编辑好指定网页在弄吧 如果不知道网站就很难了 像下面的源码 就是只显示百度上的那个框框

<!DOCTYPE html>

<!-- saved from url=(0021)>

以上就是关于android 中怎么抓去网页中<div id="content">全部的内容,包括:android 中怎么抓去网页中<div id="content">、javascript获取指定网页的内容、易语言取网页指定内容等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/9758138.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-01
下一篇2023-05-01

发表评论

登录后才能评论

评论列表(0条)

    保存