摘要: 第一种: 第二种: 正则匹配 let a = 'https://cnblogs.com/posts/edit' let b = /^http(s)?:\/\/(.*?)\//console.log(b.exec(a)[2])// cnblogs.com 阅读全文
posted @ 2022-01-10 11:05 龙卷风吹毁停车场 阅读(147) 评论(0) 推荐(0)