Taro+react开发(54) 数组转字符串join

Posted 前端小歌谣

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Taro+react开发(54) 数组转字符串join相关的知识,希望对你有一定的参考价值。

    value.map((item, index) => {
      arr.push({ industryCode: item });
    });

    console.log(arr, "arr1111");
    console.log(arrcode, "111arr1111");
    console.log(arrcodeList, "arrcodeList");
    console.log(value.join("-"), "join");
    this.setState({
      industrySel: arrcodeList.join("-"),
      industryCodeArr: arr,
      industryCodeList: value
    });

以上是关于Taro+react开发(54) 数组转字符串join的主要内容,如果未能解决你的问题,请参考以下文章