<script language="javascript"> var a,b; a=prompt("第一个数",""); b=prompt("第二个数",""); alert(Number(a) + Number(b)) </script>