<input type="button" value="取消设置"omclick="quxiao()"/>
function cancel(){
var qx=confirm("是否要取消设置?");
if (qx==true){
document.getElementById("con").style="none";
document.getElementById("txt").style="none";}
}else{
return null;
}
楼上正解 ocument.getElementById("txt").style="none";
function can(){
var my=confirm("是否要取消设置?");
if (my==true){
document.getElementById("con").style="none";
document.getElementById("txt").style="none";}
}