有一个table表格,如
--------------------
id | name | score |
--------------------
1 | tom | 80 |
--------------------
2 | lily | 80 |
--------------------
3 | lucy | 80 |
--------------------怎样用js 把score=240统计出来?
--------------------
id | name | score |
--------------------
1 | tom | 80 |
--------------------
2 | lily | 80 |
--------------------
3 | lucy | 80 |
--------------------怎样用js 把score=240统计出来?
里面去看看HTML DOM那部分就会了。
js里面取到这个ID代表的table,然后一个for循环就取到了。
搜下 js 取table td 内容。