JavaScript 參考手冊
createTHead() 方法用于在表格中獲取或創(chuàng)建 <thead> 元素。
注意: 如果 thead 元素如果在表格中已經(jīng)存在, createTHead() 方法返回存在的值,不返回新的<thead> 元素
提示:在表格中移除 thead 元素請使用 deleteTHead() 方法。
所有主要瀏覽器都支持 createTHead() 方法
創(chuàng)建和刪除 thead 元素: