URL的截取问题

 

$(function (){
if (window.location.href.includes('?')) {
if (window.location.href.split('?')[1].split('=')[0] === 'bank') {
var bank = window.location.href.split('?')[1].split('=')[1];
$('#selbank').text(decodeURI(bank));
}
}
})

posted on 2016-10-09 11:37  柔光  阅读(412)  评论(0编辑  收藏  举报

导航