//格式化 注意 每删除一行 rowCount会减一 for(;rowCount()!=0;) { removeRow(rowCount()-1); } 转载于:https://www.cnblogs.com/granx/p/9597474.html