Let me ask you a question. Now I want to collect a set of data, passing parameters as a string,
for example, I want to collect four games, the code name is 5 7 12 28
, then the passed parameter is the string "5 br 7 12 12 28"
. For example, I want to collect 7 games, and the code name is 5 6 7 8 9 12 28
, then the passed parameter is the string "5 br > at least one, no more than 10."
//
keep(){
if (this.selectGame.length < 11 && this.selectGame.length > 0) {
for (let s=0;s<this.selectGame.length;sPP) {
var collect = this.selectGame[s].Id + ","
}
this.$post("", { token: this.token,collect:collect}).then(res => {
)}
console.log(collect)
how to change this code