Tim*_*inn 4 urlparse deno
如何解析deno中 的URL node.js url.parse()?
node.js
url.parse()
jse*_*ksn 6
不需要外部模块来解析 Deno 中的 URL。该类URL可作为全局类使用,就像在浏览器中一样:
URL
const urlString = "https://www.google.com"; const url = new URL(urlString); console.log(`URL: ${url.protocol}//${url.host}`);
归档时间:
4 年,6 月 前
查看次数:
780 次
最近记录: