es6 ... 复制数组

    xiaoxiao2022-07-02  107

    var arr1=['a','b','c','d']; var arr2=['d']; var arr3=['e','f']; var dd=[...arr1,...arr2,...arr3]; console.log(dd);//["a", "b", "c", "d", "d", "e", "f"]
    最新回复(0)