如何在所有序列号(001,002,003)的末尾添加.JPG。
let sampleArray = ["banana", "apple", "orange", "grapes"];
let func = (array, fruits) => {
if (array.includes(fruits)) {
return array.filter(e => e !== fruits);
}
return array
}
let sampleWithoutApple = func(sampleArray, 'apple')
console.log(sampleWithoutApple)
let sampleWithoutAppleOrange = func(sampleWithoutApple,'orange')
console.log(sampleWithoutAppleOrange)
有什么方法可以在扩展名(.jpg)末尾添加扩展名,我建议它如何在Microsoft Excel和Google压缩表中使用。任何建议或帮助。谢谢
答案 0 :(得分:1)
答案 1 :(得分:0)