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

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

  

posted @ 2018-01-12 14:55  盘思动  阅读(2088)  评论(0)    收藏  举报