code: function (name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = decodeURIComponent(window.location.hash.replace(/^(\#\!|\#)/, '')).match(reg);
        if (r != null) return unescape(r[2]); return null;
      }
docs: 获取URL上面的参数