如何從下面的數據中提取javascript中的網址?你能爲我寫代碼嗎?提取以下數據中的網址
[
Image{url:'/images/HH/Images/US/NYC/NYC-MEL-1.jpg', description='Exterior',
alt='null', sortOrder=1, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-9.jpg', description='Exterior',
alt='null', sortOrder=1, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-11.jpg', description='Lobby',
alt='null', sortOrder=4, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-5.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-6.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-7.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-8.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-10.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-3.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-2.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'},
Image{url='/images/HH/Images/US/NYC/NYC-MEL-4.jpg', description='Guest Room',
alt='null', sortOrder=34, externalUrl='null'}
]
這不是堆棧溢出的工作原理 - 自己編寫代碼並在特定問題中復原 –
沒有人會爲您做這項工作。做它你自己。如果您遇到問題,我們會盡力幫助您。 –
你的文章除了分心之外什麼都不做 –