1.replace: replace the original characters with new characters
In the case of not using regular, only one character can be replaced each time it is executed
var str = "zhangsan2015zhangsan2016"
str = str.replace(/zhangsan/g,"zhangsanpeixun");
console.log(str)