软件开发|编程技术|编程代码|编程入门先学什么—程序设计语言

Js字符串替换

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE>Js字符串替换oyzd</TITLE></HEAD><BODY>LOVE LIFE ! LOVE JAVA ...435,567,25.00<script> var s = "LOVE LIFE ! LOVE JAVA ..."; var l = "435,567,25.00";alert(s.replace(/\LOVE/g, "爱")); alert(l.replace(/\,/g, "")); </script> </BODY></HTML>