code: function parseUrlOptions(url) {
    var opts = {}, parameters = url.split('&'), k_v;
    for (var i in parameters) {
      k_v = parameters[i].split('=');
      try { 
          opts[k_v[0]] = decodeURIComponent(k_v[1]);
      } catch (e) { 
          opts[k_v[0]] = k_v[1];
      }
    }
    return opts;
  }
docs: 从url中解析配置信息