我获取的背景图片是这样的:
url("http://zopen.easydo.cn/files/public/example.jpg/++scales++large")我想获取一个链接地址就是这个:
http://zopen.easydo.cn/files/public/example.jpg怎么得到,谢谢了
url("http://zopen.easydo.cn/files/public/example.jpg/++scales++large")我想获取一个链接地址就是这个:
http://zopen.easydo.cn/files/public/example.jpg怎么得到,谢谢了
var end_loc = str.lastIndexOf (".jpg");
end_loc += 4;
alert(str.slice(start_loc, end_loc);
alert(/(http:\/\/.+\.jpg)/g.exec(a)[1]);
var b = a.split('"')[1].split('/');
b.pop();
alert(a.join('/'));
var b = a.split('"')[1].split('/');
b.pop();
alert(b.join('/'));
alert(/(http:\/\/.+\.jpg)/g.exec(a)[1]);
var b=/(http:\/\/.+\.jpg)/ig.match(a)[0];
alert(b);