var this.ruleForm.goodsImages =‘,111,222,333’
if (this.ruleForm.goodsImages.substr(0,1) == ',') this.ruleForm.goodsImages=this.ruleForm.goodsImages.substr(1);
console.log(this.ruleForm.goodsImages) // 111,222,333
js 去除字符串中第一位的逗号
最新推荐文章于 2021-11-16 14:43:55 发布