12345 var regexp = /(http://|https://)((w|=|?|.|/|&|-)+)/g;content = content.replace(regexp, function($url){ return "<a href='" + $url + "' target='_blank'>" + $url + "</a>";});console.log(content); 赞微海报分享
近期评论