📜  如何在javascript代码示例中的url中传递参数

📅  最后修改于: 2022-03-11 15:03:49.483000             🧑  作者: 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);