Home > Web Front-end > JS Tutorial > body text

How to implement bootstrap table sum total quantity statistics

PHPz
Release: 2018-10-16 16:24:39
Original
2216 people have browsed it

This article mainly introduces the implementation method of bootstrap table sum total quantity statistics. Friends who need it can refer to it. I hope it can help everyone.

【Related video recommendation: Bootstrap tutorial

First the rendering:

To do this, you need to modify the source code: bootstrap-table.js

1: Define a name

2:

3:

4:

5: If you pass the value in the background When the value in the quotation marks in the first step is the same, the following rendering will appear

The final returned json style is like this:


{"total":2,"rows":[{"id":1,"categoryid":11,"money":100,"creattime":1509116611000,"updatetime":1509116611000,"describemon":"捡的","userid":17,"state":1,"categoryName":"卢太波"}],"sumMoney":110.0}
Copy after login

Don’t forget that sumMoney is at the same level as total

Related recommendations:

How to count the number of table sums in bootstrap

Detailed explanation of how jQuery implements the drop-down checkbox effect based on the Sumoselect plug-in

Recommended 10 articles about sum()

The above is the detailed content of How to implement bootstrap table sum total quantity statistics. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template