close

1.如何處理textarea換行在div顯示

在div的css加work-space:pre-line

2. A component is changing a controlled input of type text to be uncontrolled. Input elements should not

form

 

不小心寫成this.setState({user:[name]:event.target.value})

應該寫

this.setState({user:...this.state.user,[name]:event.target.value})

 

arrow
arrow
    全站熱搜

    學習程式 發表在 痞客邦 留言(0) 人氣()