JS 常用工具

1 字符串 URL截取

URL 截取特定 参数值

link.split(‘?’)[1]?.match(/(^|&)xCubeShareCode=([^&]*)/)?.[2];

Leave a Reply

Your email address will not be published. Required fields are marked *