"hello _there_".replace(/_(.*?)_/, function(a, b){ return '<div>' + b + '</div>';})
哦,或者您也可以:
"hello _there_".replace(/_(.*?)_/, "<div></div>")
欢迎分享,转载请注明来源:内存溢出
"hello _there_".replace(/_(.*?)_/, function(a, b){ return '<div>' + b + '</div>';})
哦,或者您也可以:
"hello _there_".replace(/_(.*?)_/, "<div></div>")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)