【发布时间】:2016-03-22 18:58:12
【问题描述】:
我正在尝试格式化我的引导表,以便我可以读取 $12,000,000 而不是 12000000 + 它的页脚(汇总列) 我知道这可以通过插入 javascript 函数 +CSS 来完成。 感谢您的帮助。
这是我的表的代码。
<table id="exampleTableFromData" data-sort-order="desc" data-mobile-responsive="true" data-search="true" data-show-footer="true" data-footer-style="footerStyle">
<thead>
<tr>
<th data-field="Customers" data-sortable="true" data-align="left">Customer</th>
<th data-field="RM" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Sales</th>
<th data-field="BO" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Discount</th>
<th data-field="GGR" data-sortable="true" data-align="right" data-footer-formatter="totalFormatter">Net</th>
</tr>
</thead>
</table>
【问题讨论】:
-
你应该添加更多不相关的语言标签...
-
完成了——现在好点了吗?
-
假设这是
PHP,试试number_format -
您使用哪种服务器端语言?
-
服务端返回一个json
标签: javascript twitter-bootstrap currency-formatting