code: function parsePath(path) {
      if (!path) return
      if (path.indexOf(',') == -1) {
          return {
              path : path.replace(/\s/g, '')
          }
      } else {
          let segments = path.split(","),
              vars = segments.slice(1)
          return {
              path: segments[0].replace(/\s/g, ''),
              vars: vars.map(o=>o.replace(/\s/g, ''))
          }
      }
  }
docs: [解析路径]
  @param  {[type]} path [路径]
  @return {[type]}      [路径+参数数组]