zayautov 发表于 2011-2-11 11:20:37

高手帮忙看看这个页面怎么采集 js输出数组

http://auto.sina.com.cn/fans/spyshot/index.shtml

<script type="text/javascript">

var auto_news = new Array();

auto_news = ["众泰朗悦将推Cross跨界版车型 独家贴身实拍","/news/2011-02-11/0944714888.shtml","2011-02-11","09:44"];
auto_news = ["北京现代新索纳塔上市在即 改款名驭也将推出","/news/2011-02-09/0930713669.shtml","2011-02-09","09:30"];
auto_news = ["江淮瑞鹰改款车型谍照曝光 外观细节提升","/car/2011-01-25/1341709652.shtml","2011-01-25","13:41"];
auto_news = ["长城高端SUV哈弗SC60正式申报 即将量产","/news/2011-01-25/0215709154.shtml","2011-01-25","02:15"];
auto_news = ["长城中高端车型腾翼C70完成申报 即将量产","/news/2011-01-24/0929708830.shtml","2011-01-24","09:29"];
auto_news = ["宝马欲在华推广柴油车型 X6 3.0D独家首曝光","/news/2011-01-21/0923707999.shtml","2011-01-21","09:23"];
auto_news = ["防弹宝马新7系Security版即将在国内推出","/news/2011-01-21/0908707975.shtml","2011-01-21","09:08"];
auto_news = ["有两厢亦有三厢 上海通用雪佛兰爱唯欧详解","/news/2011-01-20/0921707222.shtml","2011-01-20","09:21"];

地址在数组里面。

lypying 发表于 2011-2-11 11:25:44

auto_news[(*)] = ["(*)","[参数]l"(*)];
这样

zayautov 发表于 2011-2-11 11:48:57

谢谢已经解决!!ali76ls
页: [1]
查看完整版本: 高手帮忙看看这个页面怎么采集 js输出数组