📌  相关文章
📜  window.location.search 获取参数反应 - Javascript代码示例

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

代码示例1
import { useLocation } from 'react-router';
import queryString from 'query-string';

const Dashboard: React.FC = React.memo((props) => {
    const location = useLocation();

    console.log(queryString.parse(location.search));

    // {__firebase_request_key: "blablabla", _k: "v9ifuf"}

    ...

    return 

Example

; }