//删除最后一个字符串 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删除。