Desmond Batz

Results 5 comments of Desmond Batz

> `Element.prototype.scrollIntoView = jest.fn();` Thanks! it worked.

我是这么解决的,获取总的数据条数,获取当前页的数据开始数, 要是 当前页的数据开始数 > 总的数据条数 跳转页数

我在"@ant-design/pro-table": "^2.6.3", 也遇到了奇奇怪怪的问题 然后更新到2.11.4之后页面实际能动了 就是得修之前2.6.3写的代码

> 万能的`reduce` > > ```js > const getIntersection = (...arrs) => { > return Array.from(new Set(arrs.reduce((total, arr) => { > return arr.filter(item => total.includes(item)); > }))); > } > ```...