数字一直跳动效果展示 componentDidMount() { this.state.timer = setInterval(() => { this.setState({ price: Math.floor(Math.random() * (100000 - 10000)) + 10000 }) }, 100) } <span>{price}</span>元