index.js:1375 Warning: A component is changing an uncontrolled input of type checkbox to be controlled.
Input elements should not switch from uncontrolled to controlled (or vice versa).
Decide between using a controlled or uncontrolled input element for the lifetime of the component.
More info: https://fb.me/react-controlled-components
複製代碼
<input type="checkbox" checked={indexArr[rindex]}
onChange={()=>this.onChange(rindex)}/>
是由於indexArr[]這個數值是空,操做它的時候就會出現上面這種錯誤顯示,目前是使indexArr[]值不爲空就能夠了
複製代碼