```html 简略核算器 function calculate { var num1 = parseFloat.valueqwe2; var num2 = parseFloat.valueqwe2; var result; var operator = document.getElementById.value;
switch { case ' ': result = num1 num2; break; case '': result = num1 num2; break; case '': result = num1 num2; break; case '/': if { result = num1 / num2; } else { alert; return; } break; default: alert; return; } document.getElementById.value = result; } 简略核算器 / 核算 ```