else 里边为什么多包一层大括号呢?另外,这么写比较清晰 this.setModalVisible(e.key === "register"); this.setState({ current:e,key});
一个‘=’号? 应该是 ‘==’ 吧