📜  如何数值在javascript代码示例中的第2点值之后

📅  最后修改于: 2022-03-11 15:04:00.843000             🧑  作者: Mango

代码示例2
var totalAmount = 0;
totalAmount = Number($("#sub_amount").val()) + Number($("#vat_amount").val());
totalAmount = totalAmount.toFixed(2);
$('#total_amount').val(totalAmount);
//@sujay