langziyang 发表于 2013-6-27 13:25:13

数组怎么处理呢

<script language="javascript">var durl=new Array();
        durl=new Array('重庆艾普网络下载','http://cqip66.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('河北移动网络下载','http://hb.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('北京长城宽带下载','http://bjgwbn.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('辽宁移动网络下载','http://lncmcc.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('广州艾普网络下载','http://gzip66.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('方正宽带网下载','http://bnchina.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('河北网通企商在线','http://qs.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('重庆长城宽带下载','http://cqgwbn.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('浙江宁波铁通下载','http://cttnb.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('腾佑科技商丘联通','http://tuidc5.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('天津铁通网络下载','http://ctttj.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('大连信息港网通下载','http://dl.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('山东德州网通下载','http://dzcnc.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('山东移动网络下载','http://sdmcc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('上海长城宽带下载','http://gwbnsh.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('广西铁通网络下载','http://gx.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('呼伦贝尔铁通下载','http://hlbr.onlinedown.net/files3/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('河南濮阳网通下载','http://hnpy.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('广州电信通网络下载','http://gzdxt.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('山东星科宽带下载','http://xingke.onlinedown.net:82/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('美橙互联电信下载','http://cndns2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('吉林铁通网络下载','http://jltt.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏有线网络下载','http://jscn.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('江苏移动网络下载','http://js.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('天津星源科技电信','http://samyon.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('江苏移动网络下载','http://jsmcc2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏移动网络下载','http://jsmcc5.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('微子网络镇江电信','http://idc218b.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('辽宁锦州铁通下载','http://jztt.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('互创科技联通下载','http://gdzx.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('江苏宿迁移动下载','http://sqmcc10.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('华云厦门电信下载','http://lanmang.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('安徽移动网络下载','http://amcc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏宿迁电信下载','http://nj2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('北方数据中心移动','http://hbmcc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('河北铁通网络下载','http://nmas.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('陕西广电网络下载','http://sxbctv.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('内蒙铁通宽带下载','http://nm.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('宁夏联通网络下载','http://nx.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('腾佑科技丽水电信','http://tuidc2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('宜兴普尔电信下载','http://power3.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('云擎陕西电信下载','http://ijiasu.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('茂名群英电信下载','http://mm.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('四川铁通网络下载','http://sccrc2.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏宿迁移动下载','http://sqmcc4.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏宿迁电信下载','http://sq.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('微子网络镇江电信','http://idc218.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('江苏宿迁移动下载','http://sqmcc5.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('山东铁通网络下载','http://sdmcc2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('深圳长城宽带下载','http://szgwbn.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','4');
        durl=new Array('山东泰安网通下载','http://tainfo.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('浙江温州铁通下载','http://wzctt.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('广州云擎电信下载','http://123yun.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('江苏盐城移动下载','http://ycmcc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('首页互联电信下载','http://cqindex.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('宜兴普尔电信下载','http://yz4.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('徐州枫信科技下载','http://33ip.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('浙江移动网络下载','http://zjmcc2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('浙江移动网络下载','http://zjmcc3.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('浙江移动网络下载','http://zjmcc9.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('绍兴鼎启电信下载','http://dq.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('河南景安网通下载','http://zzidc.onlinedown.net/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('腾佑科技商丘联通','http://tuidc4.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('山东息宽电信下载','http://xikuan.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('中国联通网络下载','http://lt.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('广州云擎联通下载','http://gdunicom.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
        durl=new Array('浙江宁波移动下载','http://nbmcc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','3');
        durl=new Array('江苏宿迁电信下载','http://sqdx.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('腾佑科技丽水电信','http://tuidc.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('西部数码四川电信','http://west263.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('温州稳网电信下载','http://wz.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','2');
        durl=new Array('天津星源科技联通','http://samyon2.newhua.com/down/thunderbird-17.0.7.tar_tw.zip','1');
</script>目标
内容页:http://www.onlinedown.net/soft/502281.htm
下载地址页:http://www.onlinedown.net/softdown/502281_2.htm
这是在采集内容页时,打开另一个连接才采集到的下载地址,然后看源码,下载地址是用js写的,就是上面的代码。这种应该怎么处理?

303718 发表于 2013-6-27 13:34:24

new Array('[参数]','[参数]','1');
这样来然后勾上循环采集就行了呢

langziyang 发表于 2013-6-27 17:27:37

好的,谢谢,没找到用哪一种提取方式,我用了其它方法。
页: [1]
查看完整版本: 数组怎么处理呢