Data rendering method and device
A data rendering and data technology, applied in the web field, can solve problems such as high memory usage and many DOM nodes
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0093] Such as Figure 2a As shown, it is a schematic flowchart of the implementation flow of the data rendering method provided by the embodiment of the present invention, which may include the following steps:
[0094] S21. When performing data rendering, determine the first sequence identifier of the first row of display data in the display area in the data set to be displayed according to the distance between the slider and the top of the scroll bar, the size of the data set to be displayed, and the height of the display area.
[0095] Before data rendering, since the data with a hierarchical structure is mostly management resource data, the stability is relatively high. Therefore, the preloading method can be used to obtain all the data to be displayed asynchronously in advance, and store the data for backup. Of course, it is also possible to obtain the data to be displayed in real time without using the preloading method, and then render the data. The size of the data se...
Embodiment 2
[0123] When using the embodiment of the present invention to perform data rendering on data, according to the distance of the slider relative to the top of the scroll bar, the size of the data set to be displayed and the height of the display area, it is determined that the first line of display data in the display area is in the data set to be displayed Before the first sequence is identified, the method further includes Figure 3a Steps shown:
[0124] S31. Determine the height of the slider according to the size of the data set to be displayed, the unit display height, and the display area height.
[0125] For specific implementation, the Figure 3b The shown method determines the size of the slider and may include the following steps:
[0126]S311. Compare the ratio of the display area height to the unit display height with the size of the data set to be displayed.
[0127] By the size of the data set to be displayed in step S212 of the first embodiment Dcl=100, the hei...
Embodiment 3
[0145] In order to avoid repeated rendering of the displayed data in the display area, the embodiment of the present invention also provides Figure 4 The method shown may include the following steps:
[0146] S41. For the third data currently displayed in the display area, when an open operation for the third data is detected, re-determine the size of the data set to be displayed, the size of the slider and the relative The distance from the top of the scrollbar.
[0147] S42. Redetermine the first sequence identifier and the second sequence identifier according to the size of the slider and the distance of the slider relative to the top of the scroll bar.
[0148] S43. Re-determine the first data displayed in the display area this time according to the re-determined first sequence identifier and second sequence identifier.
[0149] S44. Perform rendering and display again according to the re-determined first data.
[0150] For specific implementation, refer to Figure 2b...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com