8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74abb9 commit 109ff11Copy full SHA for 109ff11
getQueryParams/index.js
@@ -0,0 +1,6 @@
1
+export function getQueryString(name) {
2
+ let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
3
+ let r = window.location.search.substr(1).match(reg);
4
+ if (r != null) return unescape(r[2]);
5
+ return ''
6
+}
0 commit comments