url链接: ***?token=12431243&deviceId=2 


import type { Location } from 'react-router' const { search } = location const paramsString = search.substring(1) const searchParams = new URLSearchParams(paramsString) const token = searchParams.get('token') // 12431243
const deviceId = searchParams.get('deviceId') // 2

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案