示例:要修改图片的大小: <img id="rptComment_ctl01_Gravatar1" width="60" height="60" src="//www.jb51.net/avatar.php?gravatar_id=f847fb8954f1750719d3feef3b033718&rating=G&size=60" ...
2019-12-24技术教程JavaScript教程,js教程,replace,字符替换而str.replace(/\-/g,"!")则可以全部替换掉匹配的字符(g为全局标志)。 replace() The replace() method returns the string that results when you replace text matching its first argument (a regular e...
2019-12-24技术教程JavaScript教程,js教程,replaceAll,字符替换