CN114595017B - Data display method and device, electronic equipment and computer readable storage medium - Google Patents

Data display method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114595017B
CN114595017B CN202210056808.6A CN202210056808A CN114595017B CN 114595017 B CN114595017 B CN 114595017B CN 202210056808 A CN202210056808 A CN 202210056808A CN 114595017 B CN114595017 B CN 114595017B
Authority
CN
China
Prior art keywords
data
layout
display
target data
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210056808.6A
Other languages
Chinese (zh)
Other versions
CN114595017A (en
Inventor
刘思佳
熊华丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210056808.6A priority Critical patent/CN114595017B/en
Publication of CN114595017A publication Critical patent/CN114595017A/en
Application granted granted Critical
Publication of CN114595017B publication Critical patent/CN114595017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data display method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring target data according to a data display request sent by a client, wherein the data display request at least comprises description information for describing the target data and layout information of the target data; generating layout data of the target data according to the layout information; generating an image to be displayed according to the layout data and the target data, wherein the image to be displayed is used for displaying the target data on the client; and sending the image to be displayed or the storage address of the image to be displayed to the client so as to display the image on the client. The embodiment of the application eliminates the dependence of the application program on the system environment of the terminal in terms of data layout and rendering, and ensures the performance of the application program when running on the terminal.

Description

Data display method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a data display method and apparatus, an electronic device, and a computer readable storage medium.
Background
With the development of terminal technology, users can use different terminals in different scenes, for example, users can use televisions in home, mobile terminals can be used outside, and desktop computers or notebook computers can be used in companies. While different terminals are typically based on different systems and thus have different requirements for the applications installed therein, even mobile terminals such as smartphones, which are used with the user, may have different systems due to different manufacturers. Thus, it is necessary for the provider of the application to develop the corresponding version of the application according to the different systems, and such adaptation development brings about a huge workload for the provider of the application.
For this reason, container-based cross-end application solutions have been proposed in the prior art. However, since the application of the container is additionally introduced into the user's terminal, the container as an application that needs to be additionally installed on the user's terminal causes additional resource consumption of the user's terminal, thereby affecting the performance of the application on the user's terminal.
Accordingly, there is a need for a data display scheme that does not affect the performance of an application on a user's terminal.
Disclosure of Invention
The embodiment of the application provides a data display method and device, electronic equipment and a computer readable storage medium, which are used for solving the defect that the performance of an application program is reduced due to the use of a container in the prior art.
In order to achieve the above object, an embodiment of the present application provides a data display method, including:
Acquiring target data according to a data display request sent by a client, wherein the data display request at least comprises description information for describing the target data and layout information of the target data;
Generating layout data of the target data according to the layout information;
Generating an image to be displayed according to the layout data and the target data;
and sending the image to be displayed or the storage address of the image to be displayed to the client so as to display the image on the client.
The embodiment of the application also provides a data display device, which comprises:
The system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target data according to a data display request sent by a client, and the data display request at least comprises description information for describing the target data and layout information of the target data;
a layout module for generating layout data of the target data according to the layout information;
the rendering module is used for generating an image to be displayed according to the layout data and the target data;
And the sending module is used for sending the image to be displayed or the storage address of the image to be displayed to the client so as to display the image to be displayed on the client.
The embodiment of the application also provides electronic equipment, which comprises:
a memory for storing a program;
and the processor is used for running the program stored in the memory, and executing the data display method provided by the embodiment of the application when the program runs.
The embodiment of the application also provides a computer readable storage medium, on which a computer program executable by a processor is stored, wherein the program, when executed by the processor, implements the data display method provided by the embodiment of the application.
According to the data display method and device, the electronic equipment and the computer readable storage medium, corresponding target data are obtained according to the data display request sent by the client, the layout data for the target data are generated according to the layout information in the data display request, and then the image to be displayed is generated according to the layout data, so that a display image for displaying the target data on the client according to the display mode required by the client is generated for the client, the display image is sent to the client, and therefore the client can display the target data in a desired mode without carrying out layout and rendering processing of the target data on the client. Therefore, the client can acquire the rendered display image for display only by initiating the data acquisition request, and does not need to call the system resource of the client to perform data layout and rendering, so that on one hand, the dependence of the application program on the system environment of the terminal in terms of data layout and rendering is eliminated, and on the other hand, the performance of the application program when running on the terminal is ensured.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is an application scenario schematic diagram of a data display scheme provided in an embodiment of the present application;
FIG. 2 is a flow chart of an embodiment of a data display method provided by the present application;
FIG. 3 is a flowchart of another embodiment of a data display method according to the present application;
FIG. 4 is a schematic diagram of an embodiment of a data display device according to the present application;
fig. 5 is a schematic structural diagram of an embodiment of an electronic device provided by the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example 1
The scheme provided by the embodiment of the application can be applied to any system with data rendering capability, such as a server system comprising a chip with data rendering function and related components. Fig. 1 is a schematic view of an application scenario of a data display scheme provided by an embodiment of the present application, and the scenario shown in fig. 1 is only one example of an applicable technical scheme of the present application.
With the development of terminal technology, users can use different terminals in different scenes, for example, users can use televisions in home, mobile terminals can be used outside, and desktop computers or notebook computers can be used in companies. While different terminals are typically based on different systems and thus have different requirements for the applications installed therein, even mobile terminals such as smartphones, which are used with the user, may have different systems due to different manufacturers. Thus, it is necessary for the provider of the application to develop the corresponding version of the application according to the different systems, and such adaptation development brings about a huge workload for the provider of the application.
For this reason, container-based cross-end application solutions have been proposed in the prior art.
In the container-based cross-end scheme in the prior art, one or more containers are divided in a virtual layer above the operating systems of the terminals, and the provider of the application program can develop the application program according to a unified application interface provided by the containers, so that the application program can be installed in containers running on different operating systems of different terminals, and the calling of the application program on the bottom resources of the operating systems can be completed through the interaction of the containers with the bottom layers of the operating systems. Therefore, the provider of the application program can use a set of codes to realize the use under the terminals of different operating systems, thereby realizing the cross-end use of the application program.
However, such container-based cross-end solutions in the prior art, while free of dependencies on the operating system of the terminal, create strong dependencies on the container environment. For example, various container schemes have been proposed, each having a respective cross-terminal application program interface, such that the provider of the application program needs to determine the type of container used first and then use the cross-terminal application program interface for that container to develop the application program. Thus, if the container scheme employed is changed, the application code needs to be modified and even the application code needs to be rewritten. Thus, the application programs developed for the container actually get rid of the terminal system and bring about development complexity caused by depending on the container environment.
In addition, since the application is running in the container, the container is running on the operating system of the terminal, so that the running of the container also needs to consume the computing resources of the terminal, and in particular, some containers continuously occupy a large amount of memory of the terminal without releasing the memory, or consume a large amount of processor resources at the time of running, so that the performance of the application at the time of running is reduced, and in particular, the actual performance of the application running using the container is lower than that of the application directly installed without using the container, which also reduces the use experience of the user. However, since the application of the container is additionally introduced into the user's terminal, the container as an application that needs to be additionally installed on the user's terminal causes additional resource consumption of the user's terminal, thereby affecting the performance of the application on the user's terminal. Furthermore, while a container may run on multiple operating systems and may enable invocation of system resources by applications running therein through interaction with the underlying operating systems, it is still not necessarily avoided that the container used by the application may be incompatible with individual operating systems or versions of operating systems, which may also result in the application not actually running. In addition, the container as a separate application may also have different versions, and thus if the version of the container installed in the system does not match the version of the container required by the application, then the application may be problematic to run, or even impossible to run. Furthermore, the installation of the container in the user's terminal also takes up a considerable amount of storage space, which also causes inconvenience to the user.
Therefore, a technical solution is needed that can also implement cross-end data display of an application without using a container. Therefore, the embodiment of the application provides a data display scheme, which can ensure that a terminal used by a user does not need to locally execute the layout and rendering of data so as to avoid the dependence of an application on the terminal environment.
In a scenario as shown in fig. 1, a user may use his own terminal to initiate a merchandise browsing request using, for example, a shopping application in the terminal. In the prior art using a container as described above, for example, the application program recognizes that the user wants to perform the commodity browsing function according to the operation of opening the application program by the user or according to the clicking operation of clicking the commodity recommendation button by the user, and therefore, the application program may issue a commodity data acquisition request to the server according to the operation of the user, in the prior art, the request generally further includes an identity of the user, so that the server may determine commodity data presented to the user according to the identity using various recommendation algorithms, and may send the thus determined commodity data or an address of the commodity data back to the terminal of the user. When the terminal obtains the requested commodity data, the display position of the obtained commodity data on the display page of the shopping application can be calculated according to commodity display information, such as layout description of commodity display, set in the shopping application, and layout data for displaying recommended commodities for a user on the commodity browsing page of the shopping application can be finally generated by further combining the style information. The shopping application may then invoke rendering instructions in the system through the container based on the layout data to generate final display data for the merchandise data. For example, in a shopping application scenario, a commodity display image in the form of two columns of cards displayed side by side on a screen of a user's terminal may be generated, thereby completing the display of commodity data requested by the user on the user's terminal.
However, as described above, in the related art, since an application program is installed in a container and an underlying rendering instruction of an operating system of a user terminal is called by the container to generate display data, the running of the container causes consumption of system resources, so that the performance of the user's application is degraded. For example, if a user wants to quickly browse a plurality of commodity images, a shopping application in the user terminal needs to render a large number of commodity display card images in a short time, and in the case that the container also consumes system resources of the terminal at the same time, data rendering performance may be reduced, for example, a click phenomenon may occur when the user browses commodity card images, thereby reducing user experience.
In contrast, in the embodiment of the present application, also in the scenario shown in fig. 1, when the user initiates a commodity browsing request through the shopping application in the terminal, the application may issue a commodity data acquisition request to the server according to the request. In the embodiment of the present application, unlike the prior art in which the rendering process of the commodity data is performed in the terminal of the user, the application may simultaneously transmit layout information for displaying the data in the interface of the application to the server when requesting the commodity data from the server. The layout information may be a layout description of the commodity data requested by the computing application, such as information of an index number of a layout file according to coordinates in a display interface or the like, so that the server may acquire the corresponding layout data according to the layout information.
The server may then determine the merchandise data that needs to be pulled for the application based on the merchandise data request sent by the application, for example, with a recommendation algorithm similar to that in the prior art. In the embodiment of the present application, the commodity data may include an image of the commodity, description information of the commodity, identification information of the commodity, specification information of the commodity, and the like, and the data to which the embodiment of the present application can be applied is not limited to the commodity data, but any data that can be requested by application on the terminal of the user may be used as the target data in the embodiment of the present application.
Therefore, unlike in the prior art, in the embodiment of the present application, the server receives commodity data requested by, for example, a shopping application in the terminal instead of the terminal, and the server may also acquire a layout description from layout information transmitted by the application, so that layout data corresponding to the commodity data may be calculated based on the layout description in the server. In particular, these layout data may be data representing the positions, styles, and the like of the respective products to be displayed to the user displayed on the application interface. Thereafter, the server may further generate card-type commodity images one by one for display on the interface of the application program based on the layout data and commodity data.
After the server generates such a card-type commodity image, the server may directly transmit the generated card-type display image data of each commodity to the terminal so that the terminal directly displays in the display interface of the application program. Or the server may store the image data and send the storage address to the application of the terminal in the form of, for example, a uniform resource locator, so that the application can acquire the image data from the storage address and display the image data directly on the interface.
Therefore, according to the data display scheme provided by the embodiment of the application, the corresponding target data is acquired according to the data display request sent by the client, the layout data for the target data is generated according to the layout information in the data display request, and then the image to be displayed is generated according to the layout data, so that the display image for displaying the target data on the client according to the display mode required by the client is generated for the client, and the display image is sent to the client, so that the client can display the target data in a desired mode without carrying out layout and rendering processing of the target data on the client. Therefore, the client can acquire the rendered display image for display only by initiating the data acquisition request, and does not need to call the system resource of the client to perform data layout and rendering, so that on one hand, the dependence of the application program on the system environment of the terminal in terms of data layout and rendering is eliminated, and on the other hand, the performance of the application program when running on the terminal is ensured.
The foregoing embodiments are illustrative of the technical principles and exemplary application frameworks of embodiments of the present application, and the detailed description of specific technical solutions of the embodiments of the present application will be further described below by means of a plurality of embodiments.
Example two
Fig. 2 is a flowchart of an embodiment of a data display method according to the present application, where the execution subject of the method may be various terminals or server devices with data display capabilities, or may be devices or chips integrated on these devices. As shown in fig. 2, the data display method includes the steps of:
s201, acquiring target data according to a data display request sent by a client.
In step S201, the target data may be acquired according to the data display request transmitted by the client. In the embodiment of the application, the user can initiate the display request of the target data by using the application installed in the terminal, so that the application can send the display request of the target data to the server according to the request. So that the rendering processing side of the server, for example, can acquire the target data specified in the request from the data display request transmitted by the client in step S201.
In addition, in the embodiment of the present application, unlike the prior art in which the rendering process of the commodity data is performed in the terminal of the user, the target data display request sent by the client may include layout information for displaying data in the interface of the application. The layout information may be information of a layout description of a display position, a style, etc. of the commodity data requested by the computing application in the display interface, and may be identification information such as an index number of the layout description according to coordinates, etc. in the display interface, so that the server can acquire the corresponding layout description from the layout information.
In addition, in the shopping application scenario as shown in fig. 1, the target data may be determined in step S201 using an algorithm such as a recommendation algorithm, and then the target data may be acquired. In the embodiment of the present application, the target data, for example, the commodity data, may include an image of a target object, description information of the target object, identification information of the target object, specification information of the target object, and the like, and the data to which the embodiment of the present application can be applied is not limited to commodity data, but any data that can be requested by application on the terminal of the user may be used as the target data in the embodiment of the present application.
S202, generating layout data of the target data according to the layout information.
In step S202, a layout description may be further acquired from the layout information in the data display request in step S201, so that layout data corresponding to the target data acquired in step S201 may be calculated based on the layout description. In particular, these layout data may be data representing, for example, the positions, styles, etc. of the respective commodities to be displayed to the user in the shopping application shown in fig. 1, displayed on the application interface.
S203, generating an image to be displayed according to the layout data and the target data.
In step S203, the image to be presented for display on the interface of the application program may be further generated one by one based on the layout data generated in step S202 and the target data acquired in step S201. For example, in the case where the shopping application displays the merchandise, card images displayed side by side on the display interface of the shopping application may be generated one by one as the image to be displayed based on the layout data and the respective merchandise data in step S203.
S204, the image to be displayed is sent to the client side so as to be displayed on the client side.
In step S204, the image to be displayed generated in step S203 may be sent to the client, so that the application program of the client may directly display on the display screen of the client using the display instruction based on the acquired image to be displayed.
In addition, the generated image to be displayed may be temporarily stored in step S203, and a storage address, for example, a uniform resource locator, is transmitted to the application program of the terminal in step S204, so that the application program can acquire image data according to the storage address and directly display the image data on the interface.
According to the data display method provided by the embodiment of the application, the corresponding target data is acquired according to the data display request sent by the client, the layout data for the target data is generated according to the layout information in the data display request, and then the image to be displayed is generated according to the layout data, so that the display image for displaying the target data on the client according to the display mode required by the client is generated for the client, and the display image is sent to the client, so that the client can display the target data in a desired mode without carrying out layout and rendering processing of the target data on the client. Therefore, the client can acquire the rendered display image for display only by initiating the data acquisition request, and does not need to call the system resource of the client to perform data layout and rendering, so that on one hand, the dependence of the application program on the system environment of the terminal in terms of data layout and rendering is eliminated, and on the other hand, the performance of the application program when running on the terminal is ensured.
Example III
Fig. 3 is a flowchart of another embodiment of a data display method according to the present application, where the execution subject of the method may be various terminals or server devices with data display capabilities, or may be devices or chips integrated on these devices. As shown in fig. 3, the data display method provided by the embodiment of the present application may include the following steps:
S301, acquiring a storage address of target data according to the description information.
S302, receiving target data from a storage address.
In step S301, the storage address of the target data may be determined according to the description information about the target data in the data display request transmitted by the client. For example, the data display request sent by the client may directly include the storage address of the target data, or an algorithm such as a recommendation algorithm may be used in step S301 to determine the target data according to the description information, and then determine the storage address of the target data. Accordingly, the target data may be received according to the storage address acquired in step S301 in step S302.
In the embodiment of the present application, the target data, for example, the commodity data, may include an image of a target object, description information of the target object, identification information of the target object, specification information of the target object, and the like, and the data to which the embodiment of the present application can be applied is not limited to commodity data, but any data that can be requested by application on the terminal of the user may be used as the target data in the embodiment of the present application.
In addition, in the embodiment of the present application, unlike the prior art in which the rendering process of the commodity data is performed in the terminal of the user, the target data display request sent by the client may include layout information for displaying data in the interface of the application. The layout information may be information of a layout description of a display position, a style, etc. of the commodity data requested by the computing application in the display interface, and may be identification information such as an index number of the layout description according to coordinates, etc. in the display interface, so that the server can acquire the corresponding layout description from the layout information.
S303, searching layout data corresponding to the layout information in a cache storing the historical layout data.
In step S303, corresponding layout data may be further searched for in the cache storing the history layout data according to the layout information in the data display request, and when the corresponding layout data is found in the cache, the layout data may be directly used as the layout data of the target data. In an embodiment of the present application, the layout data may be data representing, for example, a position, a style, etc. of each commodity to be displayed to the user on the application interface in the shopping application shown in fig. 1.
S304, when the layout data corresponding to the layout information is not found in the cache, generating the layout data according to the layout information.
When the layout data corresponding to the layout information requested by the user cannot be found in step S303, the layout data of the target data may be generated from the layout information in step S304. And stores the generated layout data in a cache so that the cached layout data may be used in the future upon receipt of an additional display request.
In addition, in the embodiment of the application, the generated new layout data can be stored in the cache in a page replacement mode.
S305, generating an image to be displayed according to the layout data and the target data.
The image to be presented for display on the interface of the application program may be further generated one by one based on the layout data found in the buffer in step S303 or the layout data generated in step S304 and the target data acquired in step S302 in step S305. For example, in the case where the shopping application displays the merchandise, card images displayed side by side on the display interface of the shopping application may be generated one by one as the image to be displayed based on the layout data and the respective merchandise data in step S305.
And S306, sending the storage address of the image to be displayed to the client so as to display the image on the client.
The generated image to be presented may also be temporarily stored in step S305 and a storage address, such as a uniform resource locator, is transmitted to the application of the terminal in step S306, so that the application may acquire image data according to the storage address and display the image data directly on the interface.
According to the data display method provided by the embodiment of the application, the corresponding target data is acquired according to the data display request sent by the client, the layout data for the target data is generated according to the layout information in the data display request, and then the image to be displayed is generated according to the layout data, so that the display image for displaying the target data on the client according to the display mode required by the client is generated for the client, and the display image is sent to the client, so that the client can display the target data in a desired mode without carrying out layout and rendering processing of the target data on the client. Therefore, the client can acquire the rendered display image for display only by initiating the data acquisition request, and does not need to call the system resource of the client to perform data layout and rendering, so that on one hand, the dependence of the application program on the system environment of the terminal in terms of data layout and rendering is eliminated, and on the other hand, the performance of the application program when running on the terminal is ensured.
Example IV
Fig. 4 is a schematic structural diagram of an embodiment of a data display device according to the present application, which may be used to perform the data display method shown in fig. 2 or fig. 3. As shown in fig. 4, the data display apparatus may include: an acquisition module 41, a layout module 42, a rendering module 43 and a sending module 44.
The obtaining module 41 may be configured to obtain the target data according to a data display request sent by the client.
The acquisition module 41 may acquire the target data according to the data display request transmitted from the client. In the embodiment of the application, the user can initiate the display request of the target data by using the application installed in the terminal, so that the application can send the display request of the target data to the server according to the request. So that the rendering processing side, for example, a server can acquire the target data specified in the request from the data display request transmitted from the client using the acquisition module 41.
In addition, in the embodiment of the present application, unlike the prior art in which the rendering process of the commodity data is performed in the terminal of the user, the target data display request sent by the client may include layout information for displaying data in the interface of the application. The layout information may be information of a layout description of a display position, a style, etc. of the commodity data requested by the computing application in the display interface, and may be identification information such as an index number of the layout description according to coordinates, etc. in the display interface, so that the server can acquire the corresponding layout description from the layout information.
In addition, in the shopping application scenario as shown in fig. 1, the acquisition module 41 may determine the target data using an algorithm such as a recommendation algorithm, and then acquire the target data. In the embodiment of the present application, the target data, for example, the commodity data, may include an image of a target object, description information of the target object, identification information of the target object, specification information of the target object, and the like, and the data to which the embodiment of the present application can be applied is not limited to commodity data, but any data that can be requested by application on the terminal of the user may be used as the target data in the embodiment of the present application.
Further, the acquisition module 41 may determine the storage address of the target data from the description information about the target data in the data display request transmitted by the client. For example, the data display request sent by the client may directly include the storage address of the target data, or an algorithm, such as a recommendation algorithm, may be used to determine the target data according to the description information, and then determine the storage address of the target data. Thus, the retrieval module 41 may receive the target data according to the retrieved memory address.
The layout module 42 may be configured to generate layout data of the target data based on the layout information.
The layout module 42 may further acquire a layout description according to the layout information in the data display request acquired by the acquisition module 41, so that layout data corresponding to the target data acquired by the acquisition module 41 may be calculated based on the layout description. In particular, these layout data may be data representing, for example, the positions, styles, etc. of the respective commodities to be displayed to the user in the shopping application shown in fig. 1, displayed on the application interface.
Further, the layout module 42 may first find layout data corresponding to the layout information in a cache in which the history layout data is stored. For example, the corresponding layout data may be searched for in the cache storing the history layout data according to the layout information in the data display request, and when the corresponding layout data is found in the cache, the layout data may be directly used as the layout data of the target data. When layout data corresponding to the layout information is not found in the cache, the layout module 42 may generate layout data from the layout information. For example, when layout data corresponding to layout information requested by a user cannot be found, layout data of target data may be generated from the layout information. And stores the generated layout data in a cache so that the cached layout data may be used in the future upon receipt of an additional display request. In addition, in the embodiment of the application, the generated new layout data can be stored in the cache in a page replacement mode.
The rendering module 43 may be configured to generate an image to be presented according to the layout data and the target data.
The rendering module 43 may further generate images to be presented for display on the interface of the application program one by one based on the layout data generated by the layout module 42 and the target data acquired by the acquisition module 41. For example, in the case where the shopping application displays the merchandise, the rendering module 43 may generate card images displayed side by side on the display interface of the shopping application as the images to be displayed one by one based on the layout data and the respective merchandise data.
The sending module 44 may be configured to send the image to be displayed or the storage address of the image to be displayed to the client, so as to display the image on the client.
The sending module 44 may send the image to be displayed generated by the rendering module 43 to the client, so that an application of the client may directly display on a display screen of the client using a display instruction based on the acquired image to be displayed.
In addition, the generated image to be displayed may be temporarily stored, and the transmitting module 44 may transmit a storage address, such as a uniform resource locator, to the application program of the terminal, so that the application program may acquire image data according to the storage address and display the image data directly on the interface.
According to the data display device provided by the embodiment of the application, the corresponding target data is acquired according to the data display request sent by the client, the layout data for the target data is generated according to the layout information in the data display request, and then the image to be displayed is generated according to the layout data, so that the display image for displaying the target data on the client according to the display mode required by the client is generated for the client, and the display image is sent to the client, so that the client can display the target data in a desired mode without carrying out layout and rendering processing of the target data on the client. Therefore, the client can acquire the rendered display image for display only by initiating the data acquisition request, and does not need to call the system resource of the client to perform data layout and rendering, so that on one hand, the dependence of the application program on the system environment of the terminal in terms of data layout and rendering is eliminated, and on the other hand, the performance of the application program when running on the terminal is ensured.
Example five
The internal functions and structures of the data display device are described above, and the device may be implemented as an electronic apparatus. Fig. 5 is a schematic structural diagram of an embodiment of an electronic device provided by the present application. As shown in fig. 5, the electronic device includes a memory 51 and a processor 52.
A memory 51 for storing a program. In addition to the programs described above, the memory 51 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 51 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The processor 52 is not limited to a processor (CPU), but may be a processing chip such as a Graphics Processor (GPU), a Field Programmable Gate Array (FPGA), an embedded neural Network Processor (NPU), or an Artificial Intelligence (AI) chip. The processor 52 is coupled to the memory 51, and executes the program stored in the memory 51 to perform the data display method according to the second or third embodiment.
Further, as shown in fig. 5, the electronic device may further include: communication component 53, power component 54, audio component 55, display 56, and other components. Only some of the components are schematically shown in fig. 5, which does not mean that the electronic device only comprises the components shown in fig. 5.
The communication component 53 is configured to facilitate communication between the electronic device and other devices, either wired or wireless. The electronic device may access a wireless network based on a communication standard, such as a mobile communication network of WiFi, 2G, 3G, 4G/LTE, 5G, or the like, or a combination thereof. In one exemplary embodiment, the communication component 53 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 53 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply assembly 54 provides power to the various components of the electronic device. The power supply components 54 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic devices.
The audio component 55 is configured to output and/or input audio signals. For example, the audio component 55 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 51 or transmitted via the communication component 53. In some embodiments, the audio assembly 55 further comprises a speaker for outputting audio signals.
The display 56 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A data display method, comprising:
acquiring target data according to a data display request sent by an application in a client, wherein the data display request at least comprises description information for describing the target data and layout information of the target data;
Generating layout data of the target data according to the layout information;
Generating an image to be displayed according to the layout data and the target data, and storing the image to be displayed;
the storage address of the image to be displayed is sent to the client so as to be displayed on a display interface of an application of the client;
The layout information is information of a layout description of a display position and a style of the target data in a display interface, and comprises an index number of a layout file according to coordinates in the display interface.
2. The data display method according to claim 1, wherein the obtaining the target data according to the data display request sent by the client includes:
acquiring a storage address of the target data according to the description information;
the target data is received from a storage address of the target data.
3. The data display method according to claim 1, wherein the description information includes a storage address of the target data.
4. The data display method according to claim 1, wherein the description information includes identification information corresponding to a storage address of the target data.
5. The data display method according to claim 1, wherein the generating layout data of the target data according to the layout information includes:
searching layout data corresponding to the layout information in a cache storing historical layout data, and taking the searched layout data as the layout data of the target data;
And generating the layout data according to the layout information when the layout data corresponding to the layout information is not found in the cache.
6. The data display method of claim 5, wherein the method further comprises:
And storing the layout data in the cache in a page replacement mode.
7. The data display method of claim 1, wherein the storage address is a uniform resource locator.
8. A data display device, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target data according to a data display request sent by an application in a client, and the data display request at least comprises description information for describing the target data and layout information of the target data;
a layout module for generating layout data of the target data according to the layout information;
The rendering module is used for generating an image to be displayed according to the layout data and the target data and storing the image to be displayed;
The sending module is used for sending the storage address of the image to be displayed to the client so as to display the storage address on a display interface of an application of the client;
The layout information is information of a layout description of a display position and a style of the target data in a display interface, and comprises an index number of a layout file according to coordinates in the display interface.
9. An electronic device, comprising:
a memory for storing a program;
A processor for executing the program stored in the memory to perform the data display method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program executable by a processor, wherein the program when executed by the processor implements the data display method according to any one of claims 1 to 7.
CN202210056808.6A 2022-01-18 2022-01-18 Data display method and device, electronic equipment and computer readable storage medium Active CN114595017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210056808.6A CN114595017B (en) 2022-01-18 2022-01-18 Data display method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210056808.6A CN114595017B (en) 2022-01-18 2022-01-18 Data display method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114595017A CN114595017A (en) 2022-06-07
CN114595017B true CN114595017B (en) 2024-05-10

Family

ID=81805145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210056808.6A Active CN114595017B (en) 2022-01-18 2022-01-18 Data display method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114595017B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182394A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Server, terminal and display method for layout files
JP2016076070A (en) * 2014-10-06 2016-05-12 株式会社東芝 Plant monitor system and plant monitor method
CN110727497A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Message display method and device
CN111782993A (en) * 2019-07-23 2020-10-16 北京京东尚科信息技术有限公司 Page display method and device and server
CN112836152A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Page rendering method, system, computer device and computer readable storage medium
CN113094136A (en) * 2021-04-09 2021-07-09 广州博冠信息科技有限公司 Page display control method and device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170277703A1 (en) * 2016-03-22 2017-09-28 Le Holdings (Beijing) Co., Ltd. Method for Displaying Webpage and Server
CN106708538B (en) * 2017-01-23 2020-04-21 腾讯科技(深圳)有限公司 Interface display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182394A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Server, terminal and display method for layout files
JP2016076070A (en) * 2014-10-06 2016-05-12 株式会社東芝 Plant monitor system and plant monitor method
CN111782993A (en) * 2019-07-23 2020-10-16 北京京东尚科信息技术有限公司 Page display method and device and server
CN110727497A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Message display method and device
CN112836152A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Page rendering method, system, computer device and computer readable storage medium
CN113094136A (en) * 2021-04-09 2021-07-09 广州博冠信息科技有限公司 Page display control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114595017A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
US10990644B2 (en) Systems and methods for contextual vocabularies and customer segmentation
US20200225818A1 (en) Integration of content in non-browser applications
US20170235435A1 (en) Electronic device and method of application data display therefor
US20160371348A1 (en) Method and electronic device for displaying related information of parsed data
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
US10235030B2 (en) Electronic device and user interface display method for the same
US20180181999A1 (en) Electronic device and method for displaying web page using the same
US20150242076A1 (en) Method of editing one or more objects and apparatus for same
CN105487640A (en) Image pre-loading and caching method of Android watch
CN113568699A (en) Content display method, device, equipment and storage medium
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN112291412B (en) Application program control method and device and electronic equipment
US20230276079A1 (en) Live streaming room page jump method and apparatus, live streaming room page return method and apparatus, and electronic device
CN112256370A (en) Information display method and device and electronic equipment
CN114595017B (en) Data display method and device, electronic equipment and computer readable storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
US20180004380A1 (en) Screen display method and electronic device supporting the same
CN114070892A (en) Data transmission method and device
CN114489697A (en) Application program installation method and device
CN113807831A (en) Payment method and device
CN112307723A (en) Method and device for generating code document and electronic equipment
KR102577184B1 (en) Electronic apparatus and operating method thereof
CN112114735A (en) Method and device for managing tasks
CN113268300B (en) Information display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant