📜  javascript 从查询字符串中获取令牌 - TypeScript 代码示例

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

代码示例3
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