Adding content to a table row () with javascript?

后端 未结 2 1484
天涯浪人
天涯浪人 2021-01-05 17:42

I have a table as follows:



        
      
      
      
2条回答
  •  梦谈多话
    2021-01-05 18:23

    If you can use jQuery, try the append method from it. jQuery append reference

    If you do find performance to be an issue, you might find an improvement by building up the dynamic DOM you want to add in javascript before appending it to the actual HTML DOM element that will make it visible. This will keep your number of repaints to a minimum.

提交回复
热议问题
col 1col2