主要JS如下:(兼容browser:IE9,FireFox,Chrome,360safe)
[javascript]viewplaincopy- varrow=document.getElementById(rowID);
- if(row!=null){
- if(row.style.display==(document.all?"block":"table-row")){
- row.style.display="none";
- }
- else{
- row.style.display=(document.all?"block":"table-row");
- }
- }
效果圖如下: