code: function LinkCapturePromise() {
    const self = this;
    return new Promise((resolve) => {
      console.time("捕获a标签用时:");
      /***
       * 初始化 link-capture events
       */
      window.document.addEventListener("click", function (e) {
        e.preventDefault();
        let target = e.target;
        if (!target) return;
        // 不是a元素
        if (
          target.tagName.toLocaleLowerCase() !== "a" &&
          !(target = CtMobileFactory.getParentElementByTag(target, "a"))
        ) {
          return;
        }
  
        const ctDataAjax = target.getAttribute("ct-data-ajax");
        // 如果用户不想让框架控制a元素
        if (
          ctDataAjax &&
          ctDataAjax === "false"
        ) return;
  
        const ctPageId = target.getAttribute("ct-pageId");
        const ctParameter = target.getAttribute("ct-parameter") || "";
        if (!ctPageId) {
          return;
        }
  
        const pageRouterConfig = self.config.router[ctPageId];
        const href = `${(pageRouterConfig && pageRouterConfig.url) ? pageRouterConfig.url : "#" + ctPageId}?pageId=${ctPageId}${ctParameter}`;
        self.startPage(href, {
          reload: target.getAttribute("ct-reload") === "true" ? true : self.config.linkCaptureReload
        });
  
        return false;
      });
      console.timeEnd("捕获a标签用时:");
      resolve();
    });
  }
docs: 捕获a标签的事件
  @access private
  @callback
  @return {Promise}