📅  最后修改于: 2022-03-11 15:02:17.680000             🧑  作者: Mango
Test
const id = e.target.getAttribute("data-id");
//alternate to getAttribute
const id = e.target.attributes.getNamedItem("data-id").value;