I have an array of values to which I want to add some prefix:
var arr = ["1.jpg", "2.jpg", "some.jpg"];
Adding the prefix images/
should result in this:
newArr = ["images/1.jpg", "images/2.jpg", "images/some.jpg"];
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…