text: // 过滤快应用中不支持的属性
  const config = require('../../config/config');
  
  module.exports = function ignoreAttri(astPath, nodeName) {
      
      if (attributes[nodeName]) {
          astPath.node.attributes = astPath.node.attributes.filter(function (el) {
              const ignoreRule = attributes[nodeName].rules;
              const ignoreFunc = attributes[nodeName].ruleFunc;
              const attriName = el.name.name.toLowerCase();
              // 过滤rules中的规则
              if (ignoreRule.includes(attriName)) {
                  return false;
              }
              // 过滤ruleFunc中匹配的规则
              if (typeof ignoreFunc === 'function') {
                  return ignoreFunc(attriName, el.value);
              }
              return true;
          });
      }
  };
  
  /**
   * rules 优先匹配，匹配到删除规则
   * ruleFunc 根据props值匹配
   */
  const attributes = {
      form: {
          rules: ['onsubmit', 'bindsubmit']
      },
      button: {
          rules: ['ongetphonenumber']
      }
  };