Guest User

Untitled

a guest
Nov 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. ```js
  2. function getParam(name) {
  3. var reg = new RegExp("(^)" + name + '=([\\s\\S]*)($)');
  4. var r = window.location.search.substr(1).match(reg);
  5. return r != null ? r[2] : null;
  6. }
  7. ```
Add Comment
Please, Sign In to add comment