Get the hash query param's value of the current Web URL(location.hash).
location.hash
Usage:
// http://example.com/?#2333?t1=1&t2=2&t3=3&t4=4// #2333?t1=1&t2=2&t3=3&t4=4const p1 = getHashQueryParam('t3');const p2 = getHashQueryParam('t4');console.log(p1, p2); Copy
// http://example.com/?#2333?t1=1&t2=2&t3=3&t4=4// #2333?t1=1&t2=2&t3=3&t4=4const p1 = getHashQueryParam('t3');const p2 = getHashQueryParam('t4');console.log(p1, p2);
Output:
3 4 Copy
3 4
Query param.
value
Get the hash query param's value of the current Web URL(
location.hash
).Usage:
Output: