code: function bindTemplateEvents(node) {
    //处理节点属性
    let attributes = node.attributes;
    for (let i in attributes) {
      if (!/^\d+$/.test(i)) continue;
      let attr = attributes[i];
  
      //绑定事件
      if (/^(bind|catch)\w+/.test(attr.name)) {
        node.setAttribute('data-' + attr.name, attr.value);
        attr.value = '_dispatch';
      }
    }
  
    for (let i in node.childNodes) {
      if (!/^\d+$/.test(i)) continue;
      let n = node.childNodes[i];
      bindTemplateEvents(n);
    }
  }
docs: 递归绑定template标签子节点中的事件
  @param node