25-07-2023 дата публикации
Номер: CN116484815A
Принадлежит:
The invention provides a method for realizing high-performance table rendering based on canvas, and relates to the technical field of big data table application, and the method comprises the following steps: (1) synthesizing data of a user into a data structure of a preset specification according to rows, columns and cells; (2) creating an array set, and calculating a start index and an end index of horizontal and vertical and frozen rows and columns of cells; (3) drawing the first screen of the cell from the beginning of index to the ending of traversal of index, and drawing the first screen of the cell from the beginning of index to the ending of traversal of index; (4) a table rolling event, a table clicking event, a mousing event in the table and a mousing out event in the table are processed; and (5) judging whether the cells are linked or not, responding to rows and/or columns, and setting a linkage style. According to the scheme, the usability and openness are high, independence ...
Подробнее