import React, {
Component } from 'react'
class view extends Component{
constructor(props) {
super(props)
this.state = {
current:1,
}
}
// 封装 点击事件
tabSwitch(index,name) {
this.setState({
[name]:index
})
}
// 封装 的clss名 事件
classFn(index,</
React 简单的tab切换
最新推荐文章于 2023-08-15 19:15:53 发布