问题
使用pdf.js v2版本部分机型出现 TypeError: key.split(...).at is not a function 报错
解决
参考 https://github.com/wojtekmaj/react-pdf/issues/1465
方式一(推荐)
            
            
              javascript
              
              
            
          
           import 'core-js/features/array/at';
        方式二 (解决了部分机型浏览器问题)
            
            
              javascript
              
              
            
          
            if (!Array.prototype.at) {
    Array.prototype.at = function (index) {
      if (index < 0) {
        index = this.length + index;
      }
      if (index >= 0 && index < this.length) {
        return this[index];
      }
      return undefined;
    };
  }