这是一段取网上股票数据的javascript代码, 运行后会显示获取的数据,——收集到的待验证:
'======================================================================================
<html>
<head>
<script type="text/javascript" src="http://hq.,sh601008"
charset="gb2312"></script>
<script type="text/javascript">
var elements1=hq_str_sh601006.split(",");
var elements2=hq_str_sh601008.split(",");
n0=elements1[0];
n1=" O:"+elements1[1];
n4=" H:"+elements1[4];
n5=" L:"+elements1[5];
n3=" C:"+elements1[3];
n21=" h1:"+elements1[21];
n20=" hs:"+elements1[20];
n11=" l1:"+elements1[11];
n10=" ls:"+elements1[10];
document.write(n0,n1,n4,n5,n3,n21,n20,n11,n10);
nn0=elements2[0];
nn1=" O:"+elements2[1];
nn4=" H:"+elements2[4];
nn5=" L:"+elements2[5];
nn3=" C:"+elements2[3];
nn21=" h1:"+elements2[21];
nn20=" hs:"+elements2[20];
nn11=" l1:"+elements2[11];
nn10=" ls:"+elements2[10];
document.write(nn0,nn1,nn4,nn5,nn3,nn21,nn20,nn11,nn10);
</Script>
</head>
</html>
'=================================================================