Function getHashQueryParam

  • Get the hash query param's value of the current Web URL(location.hash).

    Usage:

    // http://example.com/?#2333?t1=1&t2=2&t3=3&t4=4
    // #2333?t1=1&t2=2&t3=3&t4=4
    const p1 = getHashQueryParam('t3');
    const p2 = getHashQueryParam('t4');
    console.log(p1, p2);

    Output:

    3 4
    

    Parameters

    • param: string

      Query param.

    Returns string

    value