function getQueryString = (name) => {
      let reg = new RegExp("(^|/?|&)" + name + "=([^&]*)(&|$)", "i");
      let r = decodeURIComponent(location.href).substr(1).match(reg);
      if (r != null) return r[2];
      return null;
    };

 

posted on 2021-06-21 17:33  阿梅M  阅读(40)  评论(0编辑  收藏  举报