this.genericIngredientData.forEach(element => {
//循环拼接字符串
this.ingredientsKey+=element.key+','
});
//去掉末尾的逗号
this.ingredientsKey = this.ingredientsKey.slice(0,this.ingredientsKey.length-1)
js/vue拼接字符串 去掉最后多余的符号
最新推荐文章于 2024-05-21 14:36:32 发布