计算表列的值 [英] count the values of a table column

查看:87
本文介绍了计算表列的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有一个表格,我使用javascript添加行。我需要总共有一个列的runnig。有谁知道如何做到这一点?

展开 | 选择 | Wrap | 行号

解决方案

我是不确定是否要计算行数或列数,但请尝试以下方法:

展开 | 选择 | Wrap | 行号


不确定第一行是做什么的,因为它总是给出结果1.第二行似乎计算了行数。我想要做的是循环每一行并将特定列的内容添加到变量。有什么想法吗?


嗨...


尝试以下方法:

展开 | 选择 | Wrap | 行号

Hi I have a table that I add rows to using javascript. I need to have a runnig total of one of the columns. Does anyone know how this can be done?

Expand|Select|Wrap|Line Numbers

解决方案

I''m not sure if you want to count rows or columns, nevertheless try following:

Expand|Select|Wrap|Line Numbers


Not sure what the first line is doing as it always gives a result of 1. The second line seems to count he number of rows. What I want to do is loop through each row and add the contents of a particular column to a variable. Any ideas?


hi ...

try the following:

Expand|Select|Wrap|Line Numbers


这篇关于计算表列的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆