jackfrued / jackfrued/Python-100-Days
Day 21-30 js-7 practice
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
请问怎样添加行, 试过appendChild.
const add= document.querySelector('#add')
add.addEventListener('click', (evt) => {
let tbody = document.querySelector('#data>tbody')
let node = document.createElement("TR")
tbody.appendChild(node )
})
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the #add click handler and the #data>tbody selector shown in the issue. Check whether the selector finds the intended table body and whether the appended TR is visible; done means clicking the button adds a row to the table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100