|
是不是这样://image.jianke.com/suo/upload/prodimage/201703/20173611408844!320x320.jpg',
largeimage: '//image.jianke.com/upload/prodimage/201703wm/20173611408844.jpg
我先讲地址拆分成第一部分固定的://image.jianke.com/upload/prodimage/
第二部分截取抓到的地址的感叹!的前部分,然后去取201703,再取/20173611408844,再拼接 第一部分+201703+wm/+20173611408844+.jpg
太长了,一直说xpath写错了
concat('//image.jianke.com/upload/prodimage/',substring-before(substring-after(substring-before(.//*[@class='zoomThumbActive']/img/@src,'!'),'prodimage/'),'/'),'wm/',substing-after(substring-after(substring-before(.//*[@class='zoomThumbActive']/img/@src,'!'),'prodimage/'),'/')+'.jpg')
|
|