function getParameterByName(name) {
    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
posted on 2014-08-22 13:55  胡布内尔  阅读(155)  评论(0编辑  收藏  举报