CodePudding user response:
The easiest way to let the STP=[]; Interpretation of each time you choose is' no '; If it is just the current options for a push into, every time I push the judge you whether the length of the array is greater than the sum total of your options & gt;=return when you have to do is to perform a reset method;Vue: if you use the framework in the same way but you only need to change the status you select; The react when you need to meet the conditions of known length is 3 setState ({... }) you have to do is select values for processing simpler ant form provides the set and rest