Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
https://i.stack.imgur.com/JIGKp.png我需要找到金额和小计。
我需要计算(数量*价格)两列值并将结果存储到 ng2-smart-table 的另一列(数量)中
这是选择这个问题的一个非常顺利的方法
Total:{ title: 'Total', valuePrepareFunction :(cell, row) =>{ return row.quantity * row.productPrice; } }