📌  相关文章
📜  const handleEdit = (e) => { console.log(`edit ${e.target.getAttribute("value")}`);让 idx = parseInt(e.target.getAttribute("value")) - 1; setEIdx(idx); setTargetEditCustomer(customersArr[idx]);处理编辑切换(); }; - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:07.359000             🧑  作者: Mango

代码示例1
const handleEdit = (e) => {
    console.log(`edit ${e.target.getAttribute("value")}`);
    let idx = parseInt(e.target.getAttribute("value")) - 1;
    setEIdx(idx);
    setTargetEditCustomer(customersArr[idx]);
    handleEditToggle();
  };