()
| 261 | } |
| 262 | |
| 263 | renderYears () { |
| 264 | let year = this.state.current.getFullYear(), |
| 265 | years = [], |
| 266 | i = year - 8, |
| 267 | j = year + 9; |
| 268 | |
| 269 | for (; i <= j; i++) { |
| 270 | years.push(i); |
| 271 | } |
| 272 | |
| 273 | let buttons = []; |
| 274 | buttons.push( |
| 275 | <button type="button" className="year" key={i-1} |
| 276 | onClick={ () => { this.pre('year'); } }> |
| 277 | <i className="year-left" /> |
| 278 | <i className="year-left" /> |