代码如下:
var numresult;
var str;
function onclicknum(nums) {
str = document.getelementbyid(nummessege);
str.value = str.value + nums;
}
function onclickclear() {
str = document.getelementbyid(nummessege);
str.value = ;
}
function onclickresult() {
str = document.getelementbyid(nummessege);
numresult = eval(str.value);
str.value = numresult;
}
style=height: 90px; width: 350px; font-size: 50px /> |
|||
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
style=height: 70px; width: 190px; font-size: 35px> |
style=height: 70px; width: 90px; font-size: 35px> |
onclick=onclicknum('/') style=height: 70px; width: 90px; font-size: 35px> |
|
onclick=onclickclear() style=height: 70px; width: 190px; font-size: 35px /> |
onclick=onclickresult() style=height: 70px; width: 190px; font-size: 35px /> |