Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function q(name) {
- let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- let r = window.location.search.substr(1).match(reg);
- return r != null ? decodeURIComponent(r[2]) : '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement