📜  reactjs 获取复选框值 - Javascript代码示例

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

代码示例1
handleChange(e) {
  let isChecked = e.target.checked;
  // do whatever you want with isChecked value
}

render() {
  // ... your code here
  return (
    {/* your other jsx here */}
     this.handleChange(e)} />
    {/* your other jsx here */}
  );
}