📅  最后修改于: 2022-03-11 15:04:07.359000             🧑  作者: Mango
const handleEdit = (e) => {
console.log(`edit ${e.target.getAttribute("value")}`);
let idx = parseInt(e.target.getAttribute("value")) - 1;
setEIdx(idx);
setTargetEditCustomer(customersArr[idx]);
handleEditToggle();
};