The vue loop shows a set of string problems

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

Aug.15,2021

arr.push(this.selectGame[s].Id)
arr.join(',')

arr.push (this.selectGame.ID)
let result = arr.join (',')

result is the data you want


for (let s=0;s<this.selectGame.length;sPP) {
    this.SetCollect.push(this.selectGame[s].Id)
}
let result = this.SetCollect.join(',')

result should be it

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb4b31-24fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb4b31-24fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?