用js怎么把&字符换成"&:"
发布时间:2016-12-30 来源:查字典编辑
摘要:varre=/&/g;varstr="http://www.163.com?id=333&r=999&o=000";str.replace(...
varre=/&/g;
varstr="http://www.163.com?id=333&r=999&o=000";
str.replace(re,"&");
varre=/&/g;
varstr="http://www.163.com?id=333&r=999&o=000";
str.replace(re,"&");