摘要: 获取URL除了域名的其他部分 (https://regex101.com/r/vK4rV7/1)[在线测试] const getPathFromUrl = (url: string = '') => { let regex = /(http[s]?:\/\/)?([^\\/\s]+\/)(.*)/; 阅读全文
posted @ 2024-01-03 16:45 胡姐姐 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 问题: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type No index signature with a parameter of type ' 阅读全文
posted @ 2024-01-03 09:43 胡姐姐 阅读(130) 评论(0) 推荐(0) 编辑