摘要:
获取URL除了域名的其他部分 (https://regex101.com/r/vK4rV7/1)[在线测试] const getPathFromUrl = (url: string = '') => { let regex = /(http[s]?:\/\/)?([^\\/\s]+\/)(.*)/; 阅读全文
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type
摘要:
问题: 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 ' 阅读全文