题解 | #事件委托#
事件委托
https://www.nowcoder.com/practice/02866b3ce7f8420c8b5d22f483c5fcc0
document.querySelector("ul").onclick = (event) => { if (event.target.tagName === "LI") { event.target.textContent = ".."; } };#在找工作求抱抱#
事件委托
https://www.nowcoder.com/practice/02866b3ce7f8420c8b5d22f483c5fcc0
document.querySelector("ul").onclick = (event) => { if (event.target.tagName === "LI") { event.target.textContent = ".."; } };#在找工作求抱抱#
相关推荐