//刪除最后一個字符串 this.allId = this.allId.substring(0,this.allId.length - 1); //刪除前四個字符串 this.allId = this.allId.slice(4);
數據是這樣的,需要把前面的(all,)和最后的(,)刪掉
結果
這樣ok嘍
//刪除最后一個字符串 this.allId = this.allId.substring(0,this.allId.length - 1); //刪除前四個字符串 this.allId = this.allId.slice(4);
數據是這樣的,需要把前面的(all,)和最后的(,)刪掉
結果
這樣ok嘍
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。