Blame view

ant-design-vue-jeecg/src/api/getUrlParam.js 190 Bytes
李泰瑜 authored
1
2
3
4
5


export  function getUrlParam(name) {
  return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
}