js 正则提取img标签的src值

var r = '<img[^<>]*? src="([^<>]*?)"';
var yyy=content.match(r);
alert(yyy[1])

猜你喜欢

转载自www.cnblogs.com/bin521/p/9057235.html