有时候需要根据事件切换操作值的0(false)和1(true),如果是0的话就改为1,如果是1的话就改成0,但是懒得写if语句,就想到了一个数学公式 const detail = Number(current)*-1 +1