i=document.get ElementById('tabl').rows.length-2这行代码ie和谷歌报无法获取未定义或null 引用的属性“rows”,这个要怎么解决?能不能换个写法。或者有更好的写法
document.get ElementById('tabl') 那你打印一下这个
https://www.w3school.com.cn/jsref/prop_textarea_rows.asp
你看一下是不是用错了