📜  typescript 读取 url 搜索参数 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:33.078000             🧑  作者: Mango

代码示例2
const product = urlParams.get('product')
console.log(product);
// shirt

const color = urlParams.get('color')
console.log(color);
// blue

const newUser = urlParams.get('newuser')
console.log(newUser);
// empty string