CN111782993A - Page display method and device and server - Google Patents

Page display method and device and server Download PDF

Info

Publication number
CN111782993A
CN111782993A CN201910666808.6A CN201910666808A CN111782993A CN 111782993 A CN111782993 A CN 111782993A CN 201910666808 A CN201910666808 A CN 201910666808A CN 111782993 A CN111782993 A CN 111782993A
Authority
CN
China
Prior art keywords
page
displayed
data
requested
address information
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.)
Pending
Application number
CN201910666808.6A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910666808.6A priority Critical patent/CN111782993A/en
Publication of CN111782993A publication Critical patent/CN111782993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The embodiment of the invention provides a page display method, a page display device and a server.A client only needs to send page address information and a page requested to be displayed to the server, wherein the page requested to be displayed is any one of a second page and a last page, so that the server obtains data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed after receiving the page address information and the page requested to be displayed; the page requested to be displayed is a page in the page corresponding to the page address information; rendering the data to be displayed; and then the target data to be displayed after the rendering processing is sent to the client side so as to display the page through the client side, and the client side does not need to develop a front-end template in advance and render the page data according to the front-end template, so that the complexity of the client side is effectively reduced.

Description

Page display method and device and server
Technical Field
The present invention relates to computer technologies, and in particular, to a page display method, an apparatus, and a server.
Background
In the process of displaying the page, if paging processing is not performed during displaying, for the server, rendering all data corresponding to the page is required first, and then sending the rendered data to the client together, so as to display the data to the user through the client. However, since the server needs to consume a long time to render the data, a time delay exists in the page display of the client.
In order to reduce the display delay, in the prior art, data display is performed by a paging display method. The specific process is as follows: the server renders the data of the first page and sends the rendered data of the first page to the client, so that the client displays the rendered data of the first page; further, if the server receives a page request of a second page or other subsequent pages, the server sends data corresponding to the page to the client, so that the client renders the data of the page according to the front-end template after receiving the data corresponding to the page, and displays the rendered data.
However, with the existing paging display method, the front-end template needs to be developed in advance by the client, thereby increasing the complexity of the client.
Disclosure of Invention
The invention provides a page display method, a page display device and a server, which can reduce the complexity of a client in the page display process.
In a first aspect, an embodiment of the present invention provides a page display method, which is applied to a server, and the page display method includes;
receiving a page request message sent by a client; the page request message comprises page address information and a page requested to be displayed, wherein the page requested to be displayed is any one of a second page and a last page;
acquiring data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in a plurality of pages corresponding to the page address information;
rendering the data to be displayed to obtain rendered target data to be displayed;
and sending the target data to be displayed to the client side so as to display a page through the client side.
In a possible implementation manner, the rendering the data to be displayed to obtain rendered target data to be displayed includes:
analyzing the data to be displayed according to a data structure in the page template to obtain processed data to be displayed; the page template is used for describing page layout;
and rendering the processed data to be displayed according to the page template to obtain the target data to be displayed.
In a possible implementation manner, before the analyzing the data to be displayed according to the data structure in the page template, the method further includes:
developing to obtain the page template according to the page layout in advance; the page layout comprises at least one of arrangement mode of the webpage controls, types of the webpage controls, shapes of the webpage controls or position information of the webpage controls.
In one possible implementation manner, the page display method further includes:
monitoring the rendering function and the usability of the data to be displayed to obtain a monitoring result;
and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
In a possible implementation manner, the obtaining data to be displayed, which needs to be displayed according to the page address information and the page requested to be displayed, includes:
and acquiring the data to be displayed in an upstream interface or a database according to the page address information and the page requested to be displayed.
In a second aspect, an embodiment of the present invention further provides a page display apparatus, which is applied to a server, where the page display apparatus includes;
the receiving module is used for receiving a page request message sent by a client; the page request message comprises page address information and a page requested to be displayed, wherein the page requested to be displayed is any one of a second page and a last page;
the data pulling module is used for acquiring data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in a plurality of pages corresponding to the page address information;
the server rendering module is used for rendering the data to be displayed to obtain rendered target data to be displayed;
and the sending module is used for sending the target data to be displayed to the client so as to display a page through the client.
In a possible implementation manner, the server rendering module is specifically configured to perform parsing processing on the data to be displayed according to a data structure in a page template to obtain processed data to be displayed; the page template is used for describing page layout; and rendering the processed data to be displayed according to the page template to obtain the target data to be displayed.
In a possible implementation manner, the server rendering module is further configured to develop the page template in advance according to a page layout; the page layout comprises at least one of arrangement mode of the webpage controls, types of the webpage controls, shapes of the webpage controls or position information of the webpage controls.
In a possible implementation manner, the device further comprises a monitoring alarm module, wherein the monitoring alarm module is used for monitoring the rendering function and the usability of the data to be displayed to obtain a monitoring result; and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
In a possible implementation manner, the data pulling module is specifically configured to obtain the data to be displayed in an upstream interface or a database according to the page address information and the page requested to be displayed.
In a third aspect, an embodiment of the present invention further provides a server, which may include a memory and a processor, wherein,
the memory is to store program instructions;
the processor is configured to read the program instruction in the memory, and execute the page display method according to any one of the possible implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium includes instructions, and when the instructions are executed by one or more processors, the server executes the page display method according to any one of the foregoing possible implementation manners of the first aspect.
In a fifth aspect, an embodiment of the present invention further provides a chip, where a computer program is stored on the chip, and when the computer program is executed by a processor, the page display method according to any one of the foregoing possible implementation manners of the first aspect is executed.
According to the page display method, the page display device and the server provided by the embodiment of the invention, in the page display process, the client only needs to send the page address information and the page requested to be displayed to the server, wherein the page requested to be displayed is any one of the second page to the last page, so that after the server receives the page address information and the page requested to be displayed, the data to be displayed which needs to be displayed is obtained according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in the page corresponding to the page address information; rendering the data to be displayed; and then sending the target data to be displayed after the rendering processing to the client side so as to display the page through the client side. Therefore, in the embodiment of the invention, when the page is displayed, the rendering operation of the corresponding data of any page from the second page to the last page is executed by the server, and the client does not need to develop a front-end template in advance or render the page data according to the front-end template, so that the complexity of the client is effectively reduced.
Drawings
Fig. 1 is an application scenario diagram according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a page display method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another page display method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the embodiments of the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. In the description of the present invention, the character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Fig. 1 is an application scenario diagram applied to a page display system according to an embodiment of the present invention, where the page display system may include a server and at least one terminal device, where the terminal device is provided with at least one client, and the server may perform data interaction with the client, so as to complete a page display process. However, in the whole page display process, the server only renders the data of the first page of the display page, and for the second page or other pages, the server only sends the page data to the client, so that the client renders the page data according to the front-end template of the client and displays the rendered data. However, with the existing paging display mode, the front-end template needs to be developed in advance by the client, thereby increasing the complexity of the client.
In order to reduce the complexity of a client, the embodiment of the invention provides a page display method, in the page display process, the client only needs to send page address information and a page requested to be displayed to a server, wherein the page requested to be displayed is any one of a second page and a last page, so that after the server receives the page address information and the page requested to be displayed, data to be displayed which needs to be displayed is obtained according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in the page corresponding to the page address information; and rendering the data to be displayed, and then sending the rendered target data to be displayed to the client so as to display the page through the client. Therefore, in the embodiment of the invention, when the page is displayed, the rendering operation of the corresponding data of any page from the second page to the last page is executed by the server, and the client does not need to develop a front-end template in advance or render the page data according to the front-end template, so that the complexity of the client is effectively reduced.
It can be understood that, in the embodiment of the present invention, the page requested to be displayed is any one page from two pages to the last page, where the second page is not restrictively understood to be a fixed second page arranged in sequence in the page corresponding to the page address information, for example, the page address information corresponds to 5 pages, the five pages are respectively a first page, a second page, a third page, a fourth page and a fifth page, and the second page is not restrictively understood to be a second page in the five pages; the page address information is a random page in pages corresponding to the page address information triggered for the second time according to the triggering operation of the user, for example, a page requested to be displayed for the first time by the user is a first page, and when the page requested to be displayed for the second time is a third page, the second page is the third page; or, when the page requested to be displayed for the second time is the fourth page, the second page is the fourth page. Similarly, the last page cannot be limited to be fixed last page arranged in sequence in the page corresponding to the page address information; the page address information can be further understood as a random page in the page corresponding to the page address information triggered last time according to the triggering operation of the user.
Hereinafter, a page display method provided by an embodiment of the present invention will be described in detail by the following embodiment. Fig. 2 is a schematic flow chart of a page display method according to an embodiment of the present invention, where an execution main body of the page display method may be a page display device, and the page display device may be separately configured or may be configured in a server. For example, referring to fig. 2, the page display method may include:
s201, receiving a page request message sent by a client.
The page request message comprises page address information and a page requested to be displayed, and the page requested to be displayed is any one of the second page and the last page.
For example, the page address information may be a URL address, such as xxxx.com, or yyy.cn, and of course, may also be other address information, and may be specifically set according to actual needs, and herein, the embodiment of the present invention is not limited specifically.
It should be noted that, when the amount of data included in one page is large and all data cannot be displayed through one page, the data may be displayed in pages, and at this time, when a page display request is sent to the page display device, not only page address information is included to notify the server of which data needs to be displayed, but also the server needs to further notify, through the page requested to be displayed, which part of the data needs to be displayed. On the contrary, if the data amount included in one page can be completely displayed through one page, only the page request message including the page address information may be transmitted to the server without transmitting the page requested to be displayed. The embodiment of the present invention is mainly described in relation to a scenario where a large amount of data needs to be paged.
When the page display is carried out, in the process that a client displays a first page in a page, if the fact that a user clicks or drags the page to scroll downwards is detected, the fact that the user wants to view a second page or a later page in the page is indicated, at the moment, a page request message can be sent to a server, the page request message can include page address information and the page requested to be displayed, so that the server can obtain data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed, the data to be displayed is rendered, and then the rendered target data to be displayed is sent to the client.
S202, acquiring data to be displayed which needs to be displayed according to the page address information and the page which is requested to be displayed.
And the page requested to be displayed is a page in a plurality of pages corresponding to the page address information.
When the data to be displayed which needs to be displayed is obtained, the page address information can correspond to a plurality of pages, so that the data to be displayed which needs to be displayed is obtained together with the page which requires to be displayed, and the data to be displayed which needs to be displayed is obtained.
Optionally, when the data to be displayed, which needs to be displayed, is obtained according to the page address information and the page requested to be displayed, the data to be displayed may be obtained in an upstream interface or a database according to the page address information and the page requested to be displayed, so as to obtain the data to be displayed.
And S203, rendering the data to be displayed to obtain rendered target data to be displayed.
After the data to be displayed is acquired, rendering processing can be carried out on the data to be displayed so as to obtain rendered target data to be displayed; and sending the target data to be displayed to the client, so that the client performs page display, that is, the following S204 is executed:
and S204, sending the target data to be displayed to the client to display the page through the client.
For example, after receiving rendered target data to be displayed, the client may add the target data to be displayed on a corresponding page, bind the front-end time, the front-end logic, and the corresponding display effect of the page, and then display the processed page. On the contrary, if the client does not receive the rendered target data to be displayed, the client can resend the page request message to the server to resend the rendered data corresponding to the page; or, the page is subjected to reduction processing, and an error prompt is output so as to provide a user page display error.
Therefore, in the embodiment of the invention, when the page is displayed, the server acquires the data to be displayed which needs to be displayed according to the page address information in the page request message and the page which is requested to be displayed, and renders the data to be displayed, namely, the rendering operation of the data is executed by the server, and the client does not need to develop a front-end template in advance and render the page data according to the front-end template, so that the complexity of the client is effectively reduced.
Based on the embodiment shown in fig. 2, to more clearly illustrate how to render the data to be displayed in S202 to obtain the rendered target data to be displayed in the embodiment of the present invention, for example, please refer to fig. 3, where fig. 3 is a schematic flow diagram of another page display method provided in the embodiment of the present invention, the page display method may further include:
s301, analyzing the data to be displayed according to the data structure in the page template to obtain the processed data to be displayed.
The page template is used for describing page layout. The page layout includes at least one of an arrangement manner of the web page controls, a type of the web page controls, a shape of the web page controls, or position information of the web page controls, and of course, may also include other information, and may be specifically set according to actual needs, and herein, the embodiment of the present invention is not particularly limited.
Optionally, before analyzing and processing the data to be displayed according to the data structure in the page template, a page template may be developed in advance according to the page layout, and the data to be displayed is analyzed and processed according to the data structure in the page template, so as to obtain the processed data to be displayed. For example, the processed data to be displayed conforms to the data structure of the page template, and may be in a JS Object tagging (JSON) format. JSON is a lightweight data exchange format. Based on a subset of ECMAScript (js specification made by w3 c), the data are stored and expressed by adopting a text format completely independent of a programming language, and a simple and clear hierarchical structure enables JSON to become an ideal data exchange language, and the JSON is easy to read and write, is easy to analyze and generate by a machine, and effectively improves the network transmission efficiency.
By way of example, the JSON format may be as follows
Figure BDA0002140400780000081
After the processed data to be displayed conforming to the data format of the page template is obtained, rendering the processed data to be displayed conforming to the data format of the page template according to the page template to obtain target data to be displayed, namely executing the following step S302:
and S302, rendering the processed data to be displayed according to the page template to obtain target data to be displayed.
Rendering the processed data to be displayed according to the page template to obtain target data to be displayed in a HyperText Markup Language (HTML) format, and sending the rendered target data to be displayed to the client for page display through the client. Therefore, in the embodiment of the invention, when the page is displayed, the server acquires the data to be displayed which needs to be displayed according to the page address information in the page request message and the page which is requested to be displayed, and renders the data to be displayed, namely, the rendering operation of the corresponding data is executed by the server, and the client does not need to develop a front-end template in advance and render the page data according to the front-end template, so that the complexity of the client is effectively reduced.
Based on the embodiment shown in fig. 2 or fig. 3, in the process of data rendering, the function and availability of data rendering to be displayed may also be monitored, and a monitoring result is obtained; and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
The condition that the preset condition is not met can be understood as that the normal display of the page is influenced by the error of the rendered data, the unclear rendered data and the like.
In addition, it can be understood that, in the process of monitoring the rendering function and the usability of the data to be displayed, the rendering process can be recorded in a log mode, so that when the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, error information can be output through the information recorded in the log to be checked by the staff, and thus, a basis is provided for the staff.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present invention, for example, when a user wants to view related information about zhang san, firstly, inputting page address information of zhangsan.com on a client, sending the page address information zhangsan.com and a first page of a page requested to be displayed to a server by the client, after receiving the page address information zhangsan.com and the first page of the page requested to be displayed by the server, com. first, the data to be displayed which needs to be displayed is obtained in an upstream interface or a database according to zhangsan and a first page, rendering the data to be displayed, sending the rendered data to be displayed to the client, adding the data to be displayed on the first page after the client receives the rendered data to be displayed, and binding the front-end time, the front-end logic and the corresponding display effect of the page, and then displaying the first page to the user by the client. In the process that a client displays a first page in a page to a user, if the user is detected to have an operation of clicking or dragging the page to scroll downwards, the user is indicated to possibly view a second page in the page, at this time, a page request message including page address information zhangsan.com and a second page of the page requested to be displayed can be sent to a server, after the server receives the page request message, data to be displayed which needs to be displayed is obtained in an upstream interface or a database according to the page address information zhangsan.com and the second page of the page requested to be displayed, rendering processing is carried out on the data to be displayed, rendered target data to be displayed is sent to the client, after the client receives the rendered target data to be displayed, the target data to be displayed is added to the second page, and the front end time, the front end logic and a corresponding display effect of the page are bound, and then, the client displays the second page to the user, and thus, when the page is displayed, the server acquires the data to be displayed which needs to be displayed according to the page address information in the page request message and the page requested to be displayed, and renders the data to be displayed, namely, the rendering operation of the corresponding data is executed by the server, and the client does not need to develop a front-end template in advance, or render the page data according to the front-end template, so that the complexity of the client is effectively reduced.
Of course, in the process that the client displays the second page in the page to the user, if it is detected that the user has an operation of clicking or dragging the page to scroll downward, it indicates that the user may want to view the third page in the page, and the display process of the third page is similar to the display process of the first page and the second page, which may be referred to specifically as the display process of the first page and the display process of the second page, and therefore, the embodiment of the present invention is not described again.
Fig. 4 is a schematic structural diagram of a page display apparatus 40 according to an embodiment of the present invention, which is applied to a server, for example, as shown in fig. 4, the page display apparatus 40 may include:
a receiving module 401, configured to receive a page request message sent by a client; the page request message comprises page address information and a page requested to be displayed, and the page requested to be displayed is any one of the second page and the last page.
A data pulling module 402, configured to obtain data to be displayed, which needs to be displayed, according to the page address information and the page requested to be displayed; and the page requested to be displayed is a page in a plurality of pages corresponding to the page address information.
And the server rendering module 403 is configured to perform rendering processing on the data to be displayed, so as to obtain rendered target data to be displayed.
The sending module 404 is configured to send the target data to be displayed to the client, so as to perform page display by the client.
Optionally, the server rendering module 403 is specifically configured to perform analysis processing on the data to be displayed according to the data structure in the page template, so as to obtain processed data to be displayed; the page template is used for describing page layout; and rendering the processed data to be displayed according to the page template to obtain the target data to be displayed.
Optionally, the server rendering module 403 is further configured to develop a page template in advance according to the page layout; the page layout comprises at least one of arrangement mode of the webpage controls, types of the webpage controls, shapes of the webpage controls or position information of the webpage controls.
Optionally, the page display device 40 further includes a monitoring alarm module 405; the monitoring and alarming module 405 is configured to monitor a function and availability of rendering data to be displayed, and obtain a monitoring result; and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
Optionally, the data pulling module 402 is specifically configured to obtain data to be displayed in an upstream interface or a database according to the page address information and the page requested to be displayed.
Optionally, the page display device 40 may further include a log module and a dynamic configuration management module, wherein in the process of monitoring the rendering function and availability of the data to be displayed, the log module is configured to record the rendering process, so that when the monitoring result indicates that the rendering function and availability do not meet the preset condition, error information may be output through information recorded in the log module, so as to be viewed by a worker, thereby providing a basis for the worker. And the dynamic configuration management module is used for determining to adopt a paging rendering mode or a full rendering mode through visual configuration.
The page display apparatus 40 shown in the embodiment of the present invention can implement the technical solution of the page display method shown in any one of the above embodiments, and the implementation principle and the beneficial effect thereof are similar to those of the page display method, and are not described herein again.
Fig. 5 is a schematic structural diagram of a server 50 according to an embodiment of the present invention, for example, as shown in fig. 5, the server 50 may include a memory 502 and a processor 501, wherein,
the memory 502 is used to store program instructions;
the processor 501 is configured to read the program instruction in the memory 502 and execute the technical solution of the page display method shown in any one of the embodiments according to the program instruction in the memory 502, and the implementation principle and the beneficial effect of the technical solution are similar to those of the page display method, and are not described here again.
An embodiment of the present invention further provides a computer storage medium, which includes instructions, and when the instructions are executed by one or more processors, the server executes the technical solution of the page display method in any of the embodiments, and the implementation principle and the beneficial effects of the computer storage medium are similar to those of the page display method, and are not described herein again.
The embodiment of the present invention further provides a chip, where a computer program is stored on the chip, and when the computer program is executed by a processor, the technical solution of the page display method in any of the above embodiments is executed, and the implementation principle and the beneficial effects of the chip are similar to those of the page display method, and are not described herein again.
The processor in the above embodiments may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM, an electrically erasable programmable memory, a register, or other storage media that are well known in the art. The storage medium is located in a memory, and a processor reads instructions in the memory and combines hardware thereof to complete the steps of the method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A page display method is applied to a server, and comprises the following steps:
receiving a page request message sent by a client; the page request message comprises page address information and a page requested to be displayed, wherein the page requested to be displayed is any one of a second page and a last page;
acquiring data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in a plurality of pages corresponding to the page address information;
rendering the data to be displayed to obtain rendered target data to be displayed;
and sending the target data to be displayed to the client side so as to display a page through the client side.
2. The method according to claim 1, wherein the rendering the data to be displayed to obtain rendered target data to be displayed comprises:
analyzing the data to be displayed according to a data structure in the page template to obtain processed data to be displayed; the page template is used for describing page layout;
and rendering the processed data to be displayed according to the page template to obtain the target data to be displayed.
3. The method according to claim 2, wherein before the parsing the data to be displayed according to the data structure in the page template, the method further comprises:
developing to obtain the page template according to the page layout in advance; the page layout comprises at least one of arrangement mode of the webpage controls, types of the webpage controls, shapes of the webpage controls or position information of the webpage controls.
4. The method of claim 1, further comprising:
monitoring the rendering function and the usability of the data to be displayed to obtain a monitoring result;
and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
5. The method according to any one of claims 1 to 4, wherein the obtaining data to be displayed, which needs to be displayed, according to the page address information and the page requested to be displayed, comprises:
and acquiring the data to be displayed in an upstream interface or a database according to the page address information and the page requested to be displayed.
6. A page display device is applied to a server, and comprises;
the receiving module is used for receiving a page request message sent by a client; the page request message comprises page address information and a page requested to be displayed, wherein the page requested to be displayed is any one of a second page and a last page;
the data pulling module is used for acquiring data to be displayed which needs to be displayed according to the page address information and the page requested to be displayed; the page requested to be displayed is a page in a plurality of pages corresponding to the page address information;
the server rendering module is used for rendering the data to be displayed to obtain rendered target data to be displayed;
and the sending module is used for sending the target data to be displayed to the client so as to display a page through the client.
7. The apparatus of claim 6,
the server rendering module is specifically configured to perform analysis processing on the data to be displayed according to a data structure in a page template to obtain processed data to be displayed; the page template is used for describing page layout; and rendering the processed data to be displayed according to the page template to obtain the target data to be displayed.
8. The apparatus of claim 7,
the server rendering module is also used for developing and obtaining the page template in advance according to the page layout; the page layout comprises at least one of arrangement mode of the webpage controls, types of the webpage controls, shapes of the webpage controls or position information of the webpage controls.
9. The apparatus of claim 6, further comprising a monitoring alarm module;
the monitoring alarm module is used for monitoring the rendering function and the usability of the data to be displayed to obtain a monitoring result; and if the monitoring result indicates that the rendering function and the usability do not meet the preset conditions, outputting alarm information.
10. The apparatus according to any one of claims 6 to 9,
the data pulling module is specifically configured to obtain the data to be displayed in an upstream interface or a database according to the page address information and the page requested to be displayed.
11. A server, comprising a memory and a processor, wherein,
the memory is to store program instructions;
the processor is used for reading the program instructions in the memory and executing the page display method of any one of the claims 1-5 according to the program instructions in the memory.
12. A computer storage medium comprising instructions that, when executed,
the instructions, when executed by one or more processors, cause a server to perform the page display method of any of claims 1-5 above.
CN201910666808.6A 2019-07-23 2019-07-23 Page display method and device and server Pending CN111782993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910666808.6A CN111782993A (en) 2019-07-23 2019-07-23 Page display method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910666808.6A CN111782993A (en) 2019-07-23 2019-07-23 Page display method and device and server

Publications (1)

Publication Number Publication Date
CN111782993A true CN111782993A (en) 2020-10-16

Family

ID=72755046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910666808.6A Pending CN111782993A (en) 2019-07-23 2019-07-23 Page display method and device and server

Country Status (1)

Country Link
CN (1) CN111782993A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732747A (en) * 2021-03-30 2021-04-30 广州嘉为科技有限公司 Method, system, device and medium for quickly executing SQL on target computer
CN114595017A (en) * 2022-01-18 2022-06-07 阿里巴巴(中国)有限公司 Data display method and device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220083A1 (en) * 2006-03-17 2007-09-20 Microsoft Corporation Estimation of initial dynamic rendering control data
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106991154A (en) * 2017-03-29 2017-07-28 百度在线网络技术(北京)有限公司 Webpage rendering intent, device, terminal and server
CN107391664A (en) * 2017-07-19 2017-11-24 广州华多网络科技有限公司 Page data processing method and system based on WEB
CN107562467A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 Page rendering method, apparatus and equipment
CN109684574A (en) * 2018-08-20 2019-04-26 平安普惠企业管理有限公司 Page loading method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220083A1 (en) * 2006-03-17 2007-09-20 Microsoft Corporation Estimation of initial dynamic rendering control data
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106991154A (en) * 2017-03-29 2017-07-28 百度在线网络技术(北京)有限公司 Webpage rendering intent, device, terminal and server
CN107391664A (en) * 2017-07-19 2017-11-24 广州华多网络科技有限公司 Page data processing method and system based on WEB
CN107562467A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 Page rendering method, apparatus and equipment
CN109684574A (en) * 2018-08-20 2019-04-26 平安普惠企业管理有限公司 Page loading method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732747A (en) * 2021-03-30 2021-04-30 广州嘉为科技有限公司 Method, system, device and medium for quickly executing SQL on target computer
CN114595017A (en) * 2022-01-18 2022-06-07 阿里巴巴(中国)有限公司 Data display method and device, electronic equipment and computer readable storage medium
CN114595017B (en) * 2022-01-18 2024-05-10 阿里巴巴(中国)有限公司 Data display method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN106933722B (en) Webpage application monitoring method, server and system
CN106991154B (en) Webpage rendering method and device, terminal and server
CN108595304B (en) Webpage monitoring method and device
US8301645B1 (en) Aggregated web analytics request systems and methods
US9652314B2 (en) Dynamic application programming interface publication for providing web services
CN107370806B (en) HTTP status code monitoring method, device, storage medium and electronic equipment
WO2021189954A1 (en) Log data processing method and apparatus, computer device, and storage medium
CN108415804B (en) Method for acquiring information, terminal device and computer readable storage medium
US20160232252A1 (en) Method for loading webpage, device and browser thereof
TW201037531A (en) Method for server-side logging of client browser state through markup language
CN112527414B (en) Front-end-based data processing method, device, equipment and storage medium
CN110263070A (en) Event report method and device
CN111447170A (en) Data processing method and system, computer system and computer readable medium
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN111782993A (en) Page display method and device and server
WO2021082600A1 (en) Webpage image monitoring method and apparatus, electronic device, and computer readable storage medium
US20150121192A1 (en) Debugging errors in display of web pages with partial page refresh
CN110504020B (en) Medical image information system and method for displaying dicom image file by browser
CN115563423A (en) Data acquisition method and device, computer equipment and storage medium
CN115858282A (en) Front-end performance visual monitoring method and system
CN113626392A (en) Method and device for updating document data, electronic equipment and storage medium
CN111756744A (en) H5 user identification method, device, equipment and storage medium
CN110704216A (en) Application no-response detection method and device for terminal and electronic equipment
CN112015406A (en) Data processing method, page access method, device, terminal and server

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