js 反斜杠

var a='abc\cba\';

var b='\\';

alert(a.replace(/\/g,b));

高否?富否?帅否? 否? 滚去学习!
原文地址:https://www.cnblogs.com/baixc/p/4620613.html