js获取url参数后乱码

var a = window.location.search;

a = decodeURI(a.substring(1));

alert(a);

posted @ 2017-02-22 08:26  哔哩哔哩干杯  阅读(334)  评论(0编辑  收藏  举报