str = str.replace(/^[<!DOCTYPE html].*[>]$/,"<!DOCTYPE html>")
alert(str)
var s="<span>a</span>.... <span>z</span>"s=s.replace(/<span>(.*?)<\/span>/g,"<input type='text' value='$1' />")
欢迎分享,转载请注明来源:内存溢出
str = str.replace(/^[<!DOCTYPE html].*[>]$/,"<!DOCTYPE html>")
alert(str)
var s="<span>a</span>.... <span>z</span>"s=s.replace(/<span>(.*?)<\/span>/g,"<input type='text' value='$1' />")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)