我有一个表单,有5个字段,让用户把他们想要为5个单独的项目支付多少。然后我让它在底部自动求和。由于这个总数去到一个支付网关,我需要强制它四舍五入到2个小数位。下面是我的代码: function calculatepay(pay) {var two = document.getElementById(pay + 'Student2Total')
const Big = require("big.js"); // https://www.npmjs.com/package/big-js
constructor(namethis.sell.minus(this.buy);}; 这是因为我可以使用以下命令创建一个新对象: a = new Trade("Widget", 123.12345678, 321.87654321)
a.buy.toFixed</em