摘要: new URL(input, [base]) base验证input的origin是否符合预期 let myUrl = new URL('test/index.html', 'https://example.com'); // https://example.com/test/index.html 阅读全文
posted @ 2021-10-11 09:48 zhoulixue 阅读(128) 评论(0) 推荐(0) 编辑