this.refs.regular.style.color="#000"; this.refs.picWord.style.color="#94979c"; this.refs.interact.style.color="#94979c"; this.refs.regular.style.borderBottom = "solid 2px #373F42"; this.refs.picWord.style.borderBottom="none"; this.refs.interact.style.borderBottom="none";這段代碼如何優雅點寫?實在受不了這樣一個一個style寫下來。。
react中函數的style如何優雅地寫多個?
慕碼人2483693
2018-09-08 10:42:25