Insert rows into table
问题 What is the best plain javascript way of inserting X rows into a table in IE. The table html looks like this: <table><tbody id='tb'><tr><td>1</td><td>2</td></tr></tbody></table> What I need to do, is drop the old body, and insert a new one with 1000 rows. I have my 1000 rows as a javascript string variable. The problem is that table in IE has no innerHTML function. I've seen lots of hacks to do it, but I want to see your best one. Note: using jquery or any other framework does not count. 回答1: