📌  相关文章
📜  javascript 创建带有参数的 url - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:07.860000             🧑  作者: Mango

代码示例2
// URL w/ PARAMETERS
let origin = "https://www.google.com"
let pathname =  "/search"
let query = "?q=javascript%20create%20url%20with%20parameters"

let url = origin + pathname + query

console.log(url);