谷歌浏览兼容获取表格的行数

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

你看一下是不是用错了