最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

代碼
提交代碼
<input type='text' id = 'num1'> + <input type='text' id='num2'> = <input type='text' id='res'> <button onclick='count()'>計算結果</button><!-- 點擊按鈕實現(xiàn)計算 --> <script> function count(){ if(isNaN(document.getElementById('num1').value) || isNaN(document.getElementById('num2').value)) return alert("請輸入正確的數(shù)字");//判斷輸入數(shù)字是否合法 document.getElementById('res').value = parseFloat(document.getElementById("num1").value) + parseFloat(document.getElementById("num2").value);//將結果輸出 } </script>
運行結果