html编辑四则运算,简单的web四则运算计算器
生活随笔
收集整理的這篇文章主要介紹了
html编辑四则运算,简单的web四则运算计算器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
caculator.html
簡單的計算器style.css
#my_table
{
text-align: ?center;
border-style: none;
}
func.js
var one='1' ,two='2' ,three='3' ,four='4' ;
var five='5' ,six='6' ,seven='7' ,eight='8' ;
var nine='9' ,zero='0' ;
var ?plus='+' ,minus='-',multiply='*' ,divide='/' ,decimal='.' ,percent='%' ,character='-';
function ? clearReset(obj)
{
obj.result.value=" ";
}
function enter(obj,String)
{
obj.result.value+=String;
}
function compute(obj)
{
obj.result.value=eval( obj.result.value);
}
總結
以上是生活随笔為你收集整理的html编辑四则运算,简单的web四则运算计算器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 将html代码确析成json数据格式,J
- 下一篇: aws创建html网页,AWS: 在AW