</button> {' '} <button onClick={onDecrement}> - </button> 这里: {' '} 是空格的意思。 标签中不能直接显示空格,需要用 {' '} 来代替空格