|
![](https://clubstatic.excelhome.net/image/common/ico_lz.png)
楼主 |
发表于 2024-7-23 21:11
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
删除多余的代码
/*function reset1(){
arr1=["",50000,"=?",60,100,140,"",false,false,false,false,200,300,"=?",3500,2900,2000,"",false,false,false,"=?","",5600,5500,"=?","=?"]
var put1 =document.getElementsByTagName("input");
for(var i=0;i<put1.length-17 && put1[i];i++){
if(put1[i].type!="button"){
if(put1[i].type=="text"){put1[i].value=arr1[i];}
else if(put1[i].type=="radio"){put1[i].checked=arr1[i];}
}
}
}*/
/*function reset2(){
arr2=["15%","85%","25%","75%","",false,false,"=?","=?","","","",false,false,"=?"]
var put2 =document.getElementsByTagName("input");
for(var ii=29;ii<put2.length && put2[ii];ii++){
if(put2[ii].type!="button"){
if(put2[ii].type=="text"){put2[ii].value=arr2[ii-29];}
else if(put2[ii].type=="radio"){put2[ii].checked=arr2[ii-29];}
}
}
}*/
把input计算按钮也改为button按钮。 |
|