var $btnPosition = $(".btnPosition"); var $gradeTotal = $("#gradeTotal"); var gradeUsual = parseInt($("#gradeUsual").val()); var gradeEnd = + $("#gradeEnd").val(); var gradeTotal = gradeUsual*0.4+ gradeEnd*0.6; $gradeTotal.click(function(){ $("#gradeTotal").val($("#gradeUsual").val()); }) $btnPosition.click(function(){ alert(typeof(gradeUsual)); })通过<input></input>获取值,但输出却是NAN,
添加回答
举报
0/150
提交
取消