//str为附件链接字符串
let arr = str.split("http");
arr.splice(0, 1);
arr = arr.map((item, index) => {
if (index == arr.length - 1) {
return "http" + item;
} else {
return "http" + item.slice(0, -1);
}
});
//str为附件链接字符串
let arr = str.split("http");
arr.splice(0, 1);
arr = arr.map((item, index) => {
if (index == arr.length - 1) {
return "http" + item;
} else {
return "http" + item.slice(0, -1);
}
});