在下面的代碼中我要添加兩個數字,但沒有添加只顯示我兩個數字分別。在jquery中添加兩個數字,得到異常輸出
var gross = $('#txtgross').val();// 226800.00
tax = ((vat) + (nbt)); // vat is 34020.00 and nbt is 4536.00
net = ((gross) + tax.toFixed(2)); // 226800.00 38556.00 <-- in here not calculated but it just shows the Gross & Total Tax (nbt + vat) amounts respectively
您將連接字符串 – 2014-09-11 09:41:22