const ComUtils = {
  /**
   * 从浏览器URL中获取指定参数的值
   * @param name 参数名
   * @returns {string} 参数值
   */
  getQueryString(name) {
    const url_string = window.location.href
    const url = new URL(url_string);
    return url.searchParams.get(name);
  }
}
export default ComUtils;
