Lazy loading implementation method and device, electronic equipment and storage medium

An implementation method and lazy loading technology, applied in the field of communication, can solve problems such as limited application scope, increase development workload, affect loading service access, etc., and achieve the effect of improving applicable scenarios.
CN114764484APending Publication Date: 2022-07-19WUHAN DOUYU NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN DOUYU NETWORK TECH CO LTD
Publication Date
2022-07-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses a lazy loading implementation method and device, electronic equipment and a storage medium. The lazy loading implementation method comprises the steps that a lazy loading class defined as an abstract class is determined to achieve a lazy loading logic function, a target abstract method is defined in the lazy loading class to achieve target logic, and at least two target service classes inherit the lazy loading logic function by inheriting the lazy loading class; in a page implementation process, a target function provided by a rewriting system is used for realizing a logic function of the target function when the target function is called back; and transmitting a duplicated target function into the target abstraction method to realize the realization of the same target logic in the at least two target business classes. According to the embodiment of the invention, lazy loading is realized through definition of the abstract class and the abstract method and is prevented from being limited by a system version, and the application scene of lazy loading realization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] Embodiments of the present invention relate to the field of communication technologies, and in particular, to a lazy loading implementation method, apparatus, electronic device, and storage medium. Background technique

[0002] Lazy loading can automatically obtain more data when the user scrolls the page, and the newly obtained data will not affect the display of the original data, and at the same time reduce the resource consumption on the server side to the greatest extent.

[0003] The implementation of lazy loading business logic in the traditional lazy loading scheme is in the form of defining entity classes, and the implementation of specific logic methods in entity classes is also in the form of defining entities. The inheritance of entity classes and entity methods will be limited to a certain extent, which will affect the access of different loading services. Therefore, the lazy loading in the traditional solution only adapts to the support v...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More