Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDay 21-30 js-7 practice #185
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问怎样添加行, 试过appendChild.
const add= document.querySelector('#add')
add.addEventListener('click', (evt) => {
let tbody = document.querySelector('#data>tbody')
let node = document.createElement("TR")
tbody.appendChild(node )
})