varstr1="满月1,满月2,满月3";
varstr2="110,120,130";
vararr1=str1.split(",");
vararr2=str2.split(",");
for(variinarr1){
arr1[i]=arr1[i] + arr2[i];
}
console.log(arr1.toString());
varstr1="满月1,满月2,满月3";
varstr2="110,120,130";
vararr1=str1.split(",");
vararr2=str2.split(",");
for(variinarr1){
arr1[i]=arr1[i] + arr2[i];
}
console.log(arr1.toString());
本文标题:对应拼接字符串
本文链接:https://www.haomeiwen.com/subject/dojzyxtx.html
网友评论