| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 652 人关注过本帖
标题:求高手帮小弟解释下以下代码!真心看不懂哇!!!
只看楼主 加入收藏
qadzz
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-5-12
收藏
 问题点数:0 回复次数:1 
求高手帮小弟解释下以下代码!真心看不懂哇!!!
if isId(id) then
        dim arr
        arr=array(0,0,0,0,0,0,0)
        for i=0 to ubound(inArray,2)
            response.write "<tr>"
            response.write "<td noWrap>"&inArray(0,i)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(1,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(2,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(3,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(4,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(5,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(7,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>&nbsp;"&inArray(6,i)&"&nbsp;</td>"
            response.write "</tr>"
            arr(0)=arr(0)+Cdbl(inArray(1,i))
            arr(1)=arr(1)+Cdbl(inArray(2,i))
            arr(2)=arr(2)+Cdbl(inArray(3,i))
            arr(3)=arr(3)+Cdbl(inArray(4,i))
            arr(4)=arr(4)+Cdbl(inArray(5,i))  
            arr(5)=arr(5)+Cdbl(inArray(7,i))
        next
            response.write "<tr>"
            response.write "<td noWrap>合计&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(0),2)&"&nbsp;</td>"     '这个地方最需要注释了,实在搞不懂这合计怎么算的- -!
            response.write "<td noWrap>&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(2),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(3),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(4),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(5),2)&"&nbsp;</td>"
            response.write "&nbsp;<td noWrap>&nbsp;</td>"
            response.write "</tr>"
    end if
搜索更多相关主题的帖子: arr 真心 
2013-05-12 12:51
邓士林
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:淮河河畔
等 级:贵宾
威 望:61
帖 子:2392
专家分:13384
注 册:2013-3-3
收藏
得分:0 
你看下http://baike.baidu.com/view/2260919.htm

Maybe
2013-05-12 13:40
快速回复:求高手帮小弟解释下以下代码!真心看不懂哇!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016140 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved