code: function matchState(model) {
      return function match(...args) {
          let url = model.pathname,
              path = resolve(...args);
  
          // 完全匹配
          if (url === path) {
              return { url, path, matched: true, isExact: true };
          }
  
          // 部分匹配
          if (path === '/' || url.startsWith(path + '/')) {
              return { url, path, matched: true, isExact: false };
          }
  
          // 不匹配
          return { url, path, matched: false, isExact: false };
      };
  }
docs: ****************************************
  匹配路径
  ****************************************