我正在尝试添加一些资金,我想使用Double.parseDouble,但我不认为该页面正在识别double.parseDouble。我没有收到错误但它不会添加或传递值。
这是我的代码。
function CalculateBudget(){
var table = document.getElementById('tblBudgetTotals');
input1600 = 0;
input1602 = 0;
input1603 = 0;
input1608 = 0;
input1612 = 0;
funding = 0;
budgetSum = 0;
input1600 = Double.parseDouble(document.getElementById('txt1600').value);
input1602 = Double.parseDouble(document.getElementById('txt1602').value);
input1603 = Double.parseDouble(document.getElementById('txt1603').value);
input1608 = Double.parseDouble(document.getElementById('txt1608').value);
input1612 = Double.parseDouble(document.getElementById('txt1612').value);
funding = Double.parseDouble(document.getElementById('FundingTotals').value);
budgetSum += Double.parseDouble(input1600) + Double.parseDouble(input1602) + Double.parseDouble(input1603) + Double.parseDouble(input1608) + Double.parseDouble(input1612) + Double.parseDouble(funding);
document.getElementById('totbud').value = Double.parseDouble(budgetSum);
}