当前位置:首页>正文
jquery替换所有指定字符串 jquery怎么替换字符串
2023-04-11 14:26:55 互联网 未知
jquery怎么替换字符串
function replace()
{
   var str="tao zhang yi love liu weng ling"
   re=new RegExp("l","g")
   var newstart=str.replace(re,"t")
   alert(newstr)
}