在中if(s=='jisuan'){
table1.style.display="block";
table2.style.display="none“;
}else if(s=='area'){
table1.style.display="none";
table2.style.display="block";
}
这一段去掉onclick就响应window.alert()了
但是加上后不但 if 执行不了,window.alert也不响应了
------解决思路----------------------
楼主好像selType方法里一个引号打错了...
//table2.style.display="none“;
table2.style.display="none";