-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3.3 컬랙션 연습.html
37 lines (29 loc) · 1.2 KB
/
3.3 컬랙션 연습.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<hea></hea>
<bod>
<script>
const files = [ { fileName: '149431343568543.JPG',
filePath: 'images/2017/05/149431343568543.jpg' },
{ fileName: '149431344086273.JPG',
filePath: 'images/2017/05/149431344086273.jpg' },
{ fileName: '149431344606223.JPG',
filePath: 'images/2017/05/149431344606223.jpg' },
{ fileName: '149431346200286.JPG',
filePath: 'images/2017/05/149431346200286.jpg' },
{ fileName: '149431347264974.JPG',
filePath: 'images/2017/05/149431347264974.jpg' },
{ fileName: '149431347836552.JPG',
filePath: 'images/2017/05/149431347836552.jpg' } ]
console.log(typeof(files))
let nfiles = []
files.forEach((file)=>{
console.log(file.filePath)
let newPath = file.filePath.replace('images', 'http://www.gonji.co.kr/images')
console.log(newPath)
file.filePath = newPath;
nfiles.push(file)
})
console.log(nfiles)
</script>
</bod>
</html>