一个简单的JavaScript应用例子: <script type="text/javascript" src="[img]file:///C:/Users/ADMINI~1/AppData/Local/Temp/[5UQ[BL(6~BS2JV6W%7DN6[%25S.png[/img]http://hq.sinajs.cn/list=sh601006" charset="gb2312"></script> <script type="text/javascript">var elements=hq_str_sh601006.split(","); document.write("current price:"+elements[3]);</script"> 这段代码输出大秦铁路(股票代码:601006)的当前股价 current price:14.20 假如我要在FR里写这个脚本,sh601006这个用参数,参数名假如为ID,当前股价写入单元格为D3(实际值),那么这个脚本怎么写呢 在网址输入http://hq.sinajs.cn/list=sh601006这个网址,页面显示内容: var hq_str_sh601006="大秦铁路,6.080,6.090,6.070,6.090,6.060,6.060,6.070,17101444,103843200.000,1557432,6.060,1175400,6.050,578600,6.040,435900,6.030,266600,6.020,220000,6.070,972000,6.080,998200,6.090,927300,6.100,1097800,6.110,2016-07-20,15:00:00,00"; |