let type = function (data) {
        let toString = Object.prototype.toString;
        let dataType =
          data instanceof Element
            ? 'element' // 为了统一DOM节点类型输出
            : toString
                .call(data)
                .replace(/\[object\s(.+)\]/, '$1')
                .toLowerCase();
        return dataType;
      };

不唯有与他人告别
24 声望4 粉丝

不唯有与他人告别