用ajax请求的生存的网页怎么采集
简单的代码如下
<script language="javascript" >
var lotid= fw.string.urlget(location.href, 'lotid');
var pid= fw.string.urlget(location.href, 'pid');
if(typeof lotid != 'undefined'){
if(lotid.indexOf('#')!=-1)
lotid = lotid.substr(0,lotid.indexOf('#'));
}
if(typeof pid != 'undefined'){
if(pid.indexOf('#')!=-1)
pid = pid.substr(0,pid.indexOf('#'));
}
var xmlDoc = fw.callXml("/interface/client/request.php?c_id=10029&c_type=1&lotid="+lotid+"&pid="+pid);
if(xmlDoc == null) {
alert('没有这个方案');
window.opener = null;
window.close();
}
if(xmlDoc){
if(xmlDoc.getElementsByTagName('state')[0].firstChild.nodeValue != '100'){
alert(xmlDoc.getElementsByTagName('message')[0].firstChild.nodeValue);
window.opener = null;
window.close();
}
var xml = fw.xml.selectNodes(xmlDoc, '/xml/list/row');
if(xml.length > 0)
{
var expect = xml[0].getAttribute('expect');
.....
}
}
</script>
<table width="600" border="0" cellspacing="0" cellpadding="0" class="n_tradeDate1" align="center">
<tr>
<td id="expect" align="center" class="date">
</td>
</table>
<script language="javascript">
fw.get('expect').innerHTML= expect;
</script>
网页的源代码 大致就这样
这样的网页 所有的数据都是用ajax+js 生成的不知道怎么采集
那位哥哥能提点一下
谢谢