js获取当前页面的参数,带完善~~~

    let url = window.location.href;
    let id = url.slice(url.indexOf('?') + 4);

  

原文地址:https://www.cnblogs.com/pansidong/p/8275779.html