I have the following function and I am trying to figure out a better way to append multiple items using appendChild().
appendChild()
When the user clicks on Add, each
I would like to add that if you want to add some variability to your html, you can also add variables like this:
let node = document.createElement('div'); node.classList.add("some-class"); node.innerHTML = ` ${myObject.title} ${myObject.subtitle} `; 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复