js/vue拼接字符串 去掉最后多余的符号
this.genericIngredientData.forEach(element => { //循环拼接字符串 this.ingredientsKey+=element.key+',' }); //去掉末尾的逗号 this.ingredientsKey = this.ingredientsKey.slice(0,this.ingredientsKey.length-1)