分类：电脑/网络-电脑装机
问题：用JavaScript实现的简陋的计算器 
用  实现的简陋的计算器
回答：全部如下：   <html>   <head>   <script language="JavaScript">   <!--   function compute(obj)    { lue = eval( lue)}   var one = '1'   var two = '2'   var three = '3'   var four = '4'   var five = '5'   var six = '6'   var seven = '7'   var eight = '8'   var nine = '9'   var zero = '0'   var plus = '+'   var minus = '-'   var multiply = '*'   var divide = '/'   var decimal = '.'   function enter(obj, string)    { lue += string}   function clear(obj, string)    { lue = ''}   //-->   </script>   </head>   <body>   <form name="calc">   <table border=1>   <tr align="right">    <td colspan=4><input name="expr" action="compute( rm)"></td>   </tr>   <tr align=center>   <td><input type="button" value=" 7 " onClick="enter( rm, seven)"></td>   <td><input type="button" value=" 8 " onClick="enter( rm, eight)"></td>   <td><input type="button" value=" 9 " onClick="enter( rm, nine)"></td>   <td><input type="button" value=" / " onClick="enter( rm, divide)"></td>   </tr>   <tr align=center>   <td><input type="button" value=" 4 " onClick="enter( rm, four)"></td>   <td><input type="button" value=" 5 " onClick="enter( rm, five)"></td>   <td><input type="button" value=" 6 " onClick="enter( rm, six)"></td>   <td><input type="button" value=" * " onClick="enter( rm, multiply)"></td>   </tr>   <tr align=center>   <td><input type="button" value=" 1 " onClick="enter( rm, one)">   <td><input type="button" value=" 2 " onClick="enter( rm, two)">   <td><input type="button" value=" 3 " onClick="enter( rm, three)">   <td><input type="button" value=" - " onClick="enter( rm, minus)"></td>   </tr>   <tr align=center>   <td colspan=2><input type="button" value=" 0 " onClick="enter( rm, zero)">   <td><input type="button" value=" . " onClick="enter( rm, decimal)"></td>   <td><input type="button" value=" + " onClick="enter( rm, plus)"></td>   </tr>   <tr align=center>   <td colspan=2><input type="button" value=" = " onClick="compute( rm)"></td>   <td colspan=2><input type="button" value=" AC " size= 3 onClick=" lue = ''"></td>   </tr>   </table>   </form>   </body>   </html>