JS table generator with buttons

前端 未结 3 1368
自闭症患者
自闭症患者 2021-01-16 02:30

I found this answer on the website and used it as a base for my own code.

I was trying to get the buttons to render within the table but it just came up as text and n

3条回答
  •  醉梦人生
    2021-01-16 03:03

    Use document.createElement('button') for creating buttons. You are just creating textNodes using createTextNode().

提交回复
热议问题