用javascript实现计算器功能的方法:【function init(){ var num=document.getElementById("num"); num.value=0; var btn_num1; var