获取html 中的所有图片 正则表达式

来源:互联网 发布:胡歌的电视剧 知乎 编辑:程序博客网 时间:2024/05/29 18:51
$(".container").html().replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function (match, capture) {    console.log(capture);})
0 0
原创粉丝点击