# 添加与删除 - order: 5 场景里有增加或删除信息的一个动画。 --- ````jsx var QueueAnim = antd.QueueAnim; var Button = antd.Button; var Test = React.createClass({ getInitialState() { return { show: true, items: [
,,], } }, onClick() { this.setState({ show: !this.state.show, }) }, onAdd() { var items = this.state.items; items.push(); this.setState({ show: true, items: items, }) }, onRemove() { var items = this.state.items; items.splice(items.length-1, 1); this.setState({ show: true, items: items, }) }, render() { return (