vue字符串拼接

Posted wangyuxue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vue字符串拼接相关的知识,希望对你有一定的参考价值。

一、代码

let touristIds = ‘‘;
      for (let i = 0; i < this.refundOrderDetail.length; i++) 
        touristIds += `$this.refundOrderDetail[i].ids,`;
      
      console.log(touristIds);

二、效果

技术图片

 

以上是关于vue字符串拼接的主要内容,如果未能解决你的问题,请参考以下文章