Home > Web Front-end > JS Tutorial > How to replace the & character with '&:' using js_javascript skills

How to replace the & character with '&:' using js_javascript skills

WBOY
Release: 2016-05-16 19:25:03
Original
1940 people have browsed it

var re = /&/g;
var str = "http://www.163.com?id=333&r=999&o=000";

str.replace(re,"&");

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template