📅  最后修改于: 2022-03-11 15:03:24.683000             🧑  作者: Mango
var totalAmount = 0;
totalAmount = Number($("#sub_amount").val()) + Number($("#vat_amount").val());
totalAmount = totalAmount.toFixed(2);
$('#total_amount').val(totalAmount);
//@sujay