Skip to content

Instantly share code, notes, and snippets.

@zzuhan
Created November 7, 2019 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzuhan/92f5daf9e914a99f23a944cc7878c69e to your computer and use it in GitHub Desktop.
Save zzuhan/92f5daf9e914a99f23a944cc7878c69e to your computer and use it in GitHub Desktop.
各种正则匹配 #regexp
// 匹配正则中的params
let reg = /(appId=).*?(&|#|$)/
window.location.href.replace(reg, '$1lls$2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment