1. // 除去第一个“/”,其他全部替换伟“>”
    2. const str = '/a/b/c/d';
    3. console.log(str.slice(1).replace(new RegExp('/','gm'),'>'));
    4. 结果: a>b>c>d