摘要: function linkUrl(str){ var reg = /((http\:\/\/)?(\w+\.)+(\w{2,3}))\b/g; return str.replace(reg , '<a target=_blank href="$1"> $1 </a>' );} 阅读全文
posted @ 2012-06-07 14:38 Nano 阅读(241) 评论(0) 推荐(0) 编辑