CN111078219B - Page display method, device and system, electronic equipment and storage medium - Google Patents

Page display method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN111078219B
CN111078219B CN201911285348.9A CN201911285348A CN111078219B CN 111078219 B CN111078219 B CN 111078219B CN 201911285348 A CN201911285348 A CN 201911285348A CN 111078219 B CN111078219 B CN 111078219B
Authority
CN
China
Prior art keywords
page
page data
data
client
updated
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
CN201911285348.9A
Other languages
Chinese (zh)
Other versions
CN111078219A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911285348.9A priority Critical patent/CN111078219B/en
Publication of CN111078219A publication Critical patent/CN111078219A/en
Application granted granted Critical
Publication of CN111078219B publication Critical patent/CN111078219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a page display method, a device, a system, electronic equipment and a storage medium, wherein the page display method can comprise the following steps: determining attribute information of the page object; according to the attribute information of the page object, obtaining structured page data corresponding to the page; transcoding the structured page data to obtain page data in the form of character strings; and sending the page data in the form of the character string to the server so that the server sends the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string. By the page display method, the device, the system, the electronic equipment and the storage medium, development cost can be effectively reduced in the page modification process.

Description

Page display method, device and system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer applications, and in particular, to a method, apparatus, system, electronic device, and storage medium for displaying a page.
Background
In the related art, a typical implementation manner of a web page is to store page data corresponding to the page in a database of a server. When a user browses the page, the client acquires page data of the page from the server, and renders the page according to the page data of the page, namely the page can be displayed.
When a page needs to be modified, taking a certain navigation menu page as an example, if a menu item needs to be deleted, a new menu item needs to be added or a new function needs to be added, a client and a server are generally required to develop new business logic codes, the client and the server are required to cooperate to complete the process, and the development cost is increased.
Disclosure of Invention
The embodiment of the invention aims to provide a page display method, a device, a system, electronic equipment and a storage medium, so as to effectively reduce development cost in the page modification process. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a page display method, applied to a first client, including:
determining attribute information of the page object;
acquiring structured page data corresponding to the page according to the attribute information of the page object;
transcoding the structured page data to obtain page data in the form of character strings;
and sending the page data in the form of the character string to a server so that the server sends the page data in the form of the character string to a second client, and the second client displays the page according to the page data in the form of the character string.
Optionally, after the sending the page data in the form of the character string to the server, the method further includes:
receiving an update demand of a page;
determining attribute information of a page object to be updated according to the update demand of the page;
updating the structured page data corresponding to the page according to the attribute information of the page object to be updated;
transcoding the updated structured page data to obtain page data in the form of updated character strings;
and sending the updated page data in the form of the character string to a server so that the server sends the updated page data in the form of the character string to a second client, and the second client displays the updated page according to the page data in the form of the character string after updating.
Optionally, before determining the attribute information of the page object, the method further includes:
providing a page management interface, wherein the page management interface comprises an object setting control;
the determining the attribute information of the page object comprises the following steps:
receiving object setting information input by a user based on the object setting control;
and extracting attribute information of the page object set by the user according to the object setting information.
Optionally, the obtaining the structured page data corresponding to the page according to the attribute information of the page object includes:
and adding the attribute information of the page object into a preset structured page data template to generate structured page data corresponding to the page.
Optionally, the page is a navigation menu page.
In a second aspect, an embodiment of the present invention provides a page display method, which is applied to a server, and includes:
receiving page data in a character string form, wherein the page data in the character string form is obtained by transcoding structured page data corresponding to a page by a first client, and the structured page data is obtained by the first client according to attribute information of a page object of the page;
receiving a data request of the page, which is sent by a second client;
and sending the page data in the form of the character string to a second client according to the data request, so that the second client displays the page according to the page data in the form of the character string.
Optionally, after receiving the page data in the form of the character string corresponding to the page, the method further includes:
Receiving page data in the form of updated character strings; the updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated;
receiving a data request of the page, which is sent by a second client;
and sending the updated page data in the form of the character string to the second client according to the data request, so that the second client displays the updated page according to the updated page data in the form of the character string.
In a third aspect, an embodiment of the present invention provides a page display method, applied to a second client, including:
receiving a page browsing request of a user;
according to the page browsing request, sending a data request of the page to a server;
receiving page data in the form of character strings of the pages, which are sent by the server; the method comprises the steps that page data in the form of character strings are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
Transcoding the page data in the character string form to obtain the structured page data;
and displaying the page according to the structured page data.
Optionally, the transcoding the page data in the form of the character string to obtain the structured page data includes:
and transcoding the page data in the character string form through a symmetrical decoding mode to obtain the structured page data, wherein the symmetrical decoding mode corresponds to an encoding mode adopted when the structured page data is transcoded to obtain the page data in the character string form.
In a fourth aspect, an embodiment of the present invention provides a page display device, applied to a first client, including:
the first determining module is used for determining attribute information of the page object;
the acquisition module is used for acquiring the structured page data corresponding to the page according to the attribute information of the page object;
the first transcoding processing module is used for transcoding the structured page data to obtain page data in the form of character strings;
and the sending module is used for sending the page data in the form of the character string to a server so that the server can send the page data in the form of the character string to a second client, and the second client displays the page according to the page data in the form of the character string.
Optionally, the apparatus further includes:
the receiving module is used for receiving the update requirement of the page;
the second determining module is used for determining attribute information of the page object to be updated according to the updating requirement of the page;
the updating module is used for updating the structured page data corresponding to the page according to the attribute information of the page object to be updated;
the second transcoding processing module is used for transcoding the updated structured page data to obtain page data in the form of updated character strings;
and the second sending module is used for sending the updated page data in the form of the character string to a server so that the server sends the updated page data in the form of the character string to a second client, and the second client displays the updated page according to the updated page data in the form of the character string.
Optionally, the apparatus further includes:
the providing module is used for providing a page management interface before the attribute information of the page object is determined, wherein the page management interface comprises an object setting control;
the first determining module is specifically configured to receive object setting information input by a user based on the object setting control; and extracting attribute information of the page object set by the user according to the object setting information.
Optionally, the obtaining module is specifically configured to add the attribute information of the page object to a preset structured page data template, so as to generate structured page data corresponding to the page.
Optionally, the page is a navigation menu page.
In a fifth aspect, an embodiment of the present invention provides a page display device, applied to a server, including:
the first receiving module is used for receiving page data in a character string form, wherein the page data in the character string form is obtained by transcoding structured page data corresponding to a page by a first client, and the structured page data is obtained by the first client according to attribute information of a page object of the page; receiving a data request of the page, which is sent by a second client;
and the first sending module is used for sending the page data in the form of the character string to a second client according to the data request so that the second client displays the page according to the page data in the form of the character string.
Optionally, the apparatus further includes:
the second receiving module is used for receiving the updated page data in the form of character strings after receiving the page data in the form of character strings corresponding to the page; the updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated; receiving a data request of the page, which is sent by a second client;
And the second sending module is used for sending the page data in the form of the updated character string to the second client according to the data request, so that the second client displays the updated page according to the page data in the form of the updated character string.
In a sixth aspect, an embodiment of the present invention provides a page display device, applied to a second client, including:
the first receiving module is used for receiving a page browsing request of a user;
the sending module is used for sending a data request of the page to a server according to the page browsing request;
the second receiving module is used for receiving the page data in the form of the character string of the page, which is sent by the server; the method comprises the steps that page data in the form of character strings are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
the transcoding processing module is used for carrying out transcoding processing on the page data in the character string form to obtain the structured page data;
and the display module is used for displaying the page according to the structured page data.
Optionally, the transcoding processing module is specifically configured to transcode the page data in the form of the character string to obtain the structured page data in a symmetric decoding manner, where the symmetric decoding manner corresponds to an encoding manner adopted when the structured page data is transcoded to obtain the page data in the form of the character string.
In a seventh aspect, an embodiment of the present invention provides a page display system, including a first client, a server, and a second client;
the first client determines attribute information of a page object; acquiring structured page data corresponding to the page according to the attribute information of the page object; transcoding the structured page data to obtain page data in the form of character strings; the page data in the form of the character string is sent to a server;
the server receives the page data in the form of the character string; receiving a data request of the page, which is sent by a second client; according to the data request, sending the page data in the form of the character string to a second client;
the second client receives a page browsing request of a user; according to the page browsing request, sending a data request of the page to a server; receiving page data in the form of character strings of the pages, which are sent by the server; transcoding the page data in the character string form to obtain the structured page data; and displaying the page according to the structured page data.
In an eighth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of the method according to the first aspect when executing the program stored on the memory.
In a ninth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of the method according to the second aspect when executing the program stored on the memory.
In a tenth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
The memory is used for storing a computer program;
the processor is configured to implement the method steps of the method according to the third aspect when executing the program stored on the memory.
In an eleventh aspect, embodiments of the present invention provide a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method steps of the method of the first aspect.
In a twelfth aspect, embodiments of the present invention provide a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the method steps of the method of the second aspect.
In a thirteenth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of the method of the third aspect.
The page display method, the device, the system, the electronic equipment and the storage medium provided by the embodiment of the invention, wherein the first client determines the attribute information of the page object; according to the attribute information of the page object, obtaining structured page data corresponding to the page; transcoding the structured page data to obtain page data in the form of character strings; and sending the page data in the form of the character string to the server so that the server sends the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string. Therefore, the server only needs to store the character string, in the page modification process, only the first client is required to acquire the updated character string again and send the updated character string to the server, the server does not need to make any change, only the page data in the form of the character string is required to be stored, and the page data in the form of the character string is sent to the second client, and other development processes are not required to be carried out by the server, so that the development cost can be effectively reduced. Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a page display method according to an embodiment of the present invention;
FIG. 2 is another flowchart of a page display method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a page display method according to an embodiment of the present invention;
FIG. 4a is a diagram of structured page data according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of a text string for the structural page data after transcoding according to the embodiment of the present invention;
FIG. 4c is a flowchart of a page display method according to an embodiment of the present invention;
FIG. 4d is a diagram of updated structured page data according to an embodiment of the present invention;
FIG. 5 is a flowchart of a page display method according to an embodiment of the present invention;
FIG. 6 is a flow chart of one embodiment of the present invention;
FIG. 7 is a schematic diagram of a page management interface according to an embodiment of the present invention;
FIG. 8 is a flow chart of one embodiment of the present invention;
FIG. 9 is a flow chart of one embodiment of the present invention;
FIG. 10 is a flow chart of one embodiment of the present invention;
FIG. 11 is a flow chart of one embodiment of the present invention;
FIG. 12 is a schematic diagram showing the effect of an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a page display device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of another page display device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a page display device according to another embodiment of the present invention;
FIG. 16 is a schematic diagram of a page display system according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 18 is a schematic structural diagram of another electronic device according to an embodiment of the present invention;
fig. 19 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The page display method provided by the embodiment of the invention can be applied to the first client, can be a client corresponding to a background developer, such as a client used by an administrator, and can be particularly applied to a terminal comprising the client, such as a computer, a mobile phone and the like. Wherein the client may be a browser or the like. As shown in fig. 1, the page display method provided by the embodiment of the present invention may include:
s101, determining attribute information of a page object;
s102, obtaining structured page data corresponding to a page according to attribute information of the page object;
s103, transcoding the structured page data to obtain page data in the form of character strings;
and S104, sending the page data in the form of the character string to the server, so that the server sends the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string.
In the embodiment of the invention, the first client sends the page data in the form of the character string to the server, so that the server can send the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string. In this way, in the page modification process, only the first client side is required to acquire the updated page data in the form of the character string and send the updated page data to the server, the server stores the page data in the form of the character string and sends the page data in the form of the character string to the second client side, and no modification is required to be performed on the server, namely, no other development process is required to be performed on the server, so that development cost can be effectively reduced.
The page display method provided by the embodiment of the invention can be applied to a server, as shown in fig. 2, and can include:
s201, receiving page data in the form of character strings; the method comprises the steps that page data in a character string form are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
s202, receiving a data request of a page sent by a second client;
and S203, according to the data request, sending the page data in the form of the character string to the second client so that the second client displays the page according to the page data in the form of the character string.
In the embodiment of the invention, a server receives page data in the form of character strings sent by a first client; and after receiving the data request of the page sent by the second client, sending the page data in the form of the character string to the second client according to the data request, so that the second client can display the page according to the page data in the form of the character string. In this way, in the page modification process, the server stores the page data in the form of the character string and sends the page data in the form of the character string to the second client, so that the server does not need to perform other development processes, and the development cost can be effectively reduced.
The page display method provided by the embodiment of the invention can be applied to a second client, such as a client corresponding to a user, and can be particularly applied to a terminal comprising the client, such as a computer, a mobile phone and the like. In particular the client may be a browser or the like. As shown in fig. 3, the page display method provided by the embodiment of the present invention may include:
s301, receiving a page browsing request of a user;
s302, sending a data request of a page to a server according to the page browsing request;
s303, receiving page data in the form of character strings of pages, which are sent by a server; the method comprises the steps that page data in a character string form are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
s304, transcoding the page data in the form of character strings to obtain structured page data;
s305, displaying the page according to the structured page data.
In the embodiment of the invention, the client can receive the page data in the form of the character string of the page, which is sent by the server; transcoding the page data in the form of character strings to obtain structured page data; and displaying the page according to the structured page data. In this way, in the page modification process, the server stores the page data in the form of the character string and sends the page data in the form of the character string to the second client, so that the server does not need to perform other development processes, and the development cost can be effectively reduced.
The page display method provided by the embodiment of the invention is described in detail below with reference to fig. 1, 2 and 3.
The first client in the page display method provided by the embodiment of the invention can execute the following steps:
s101, determining attribute information of the page object.
A page object may be understood as an object to be displayed in a page.
In an alternative embodiment, where the page is a navigation menu page, the page object may include menu options. The navigation menu page is a page comprising a plurality of menu options for navigation, and a user can enter a sub-page corresponding to the menu options by clicking the menu options in the navigation menu page, or view information corresponding to the menu options, and the like.
The attribute information of the page object may be understood as information about which the page object displays in the page. For example, description information such as the name of the page object, description information of the uniform resource locator (Uniform Resource Locator, URL) address to which the page object corresponds, display content, display size, display form, display position, and the like of the page object may be included.
In an alternative embodiment of the present invention, before step S101, the method may further include:
And providing a page management interface, wherein the page management interface comprises an object setting control.
The object setup control may include setup options for individual page objects, such as add, delete, modify, etc.
Then, step S101: determining attribute information of the page object may include:
receiving object setting information input by a user based on an object setting control; and extracting attribute information of the page object set by the user according to the object setting information.
The first client may provide a page management interface for a user, such as a background developer, and the user may modify a page based on the page management interface, for example, add a certain page object, delete a certain page object, and operate an object setting control included in the page management interface according to actual requirements, and if a page object needs to be added, may click an add option for the page object to input object setting information for adding the page object based on the object setting control. And after the first client receives the object setting information input by the user, extracting the attribute information of the page object set by the user according to the object setting information.
S102, obtaining the structured page data corresponding to the page according to the attribute information of the page object.
In one implementation manner of the embodiment of the invention, the structured page data corresponding to the attribute information of different page objects can be stored in advance, and after the attribute information of the page object is determined, the structured page data corresponding to the attribute information of the page object is obtained.
In another implementation manner, attribute information of the page object may be added to a preset structured page data template to generate structured page data corresponding to the page.
The structured page data template may be understood as a template taking the attribute information of the page object as a parameter, a preset position for adding the attribute information of the page object may be preset in the preset structured page data template, and after determining the attribute information of the page object, the attribute information of the page object may be added to the preset structured page data template, so that structured page data corresponding to the page may be generated.
Structured page data may be understood as structured data indicating attribute information of a page object. In a specific embodiment, the page object may include "calculation", and description information of attribute information of the sub-page object "cloud server" included in the "calculation" and "calculation" in the structured page data may specifically be in the following format:
After the first client obtains the structured page data corresponding to the page, the first client may display the structured page data through a display page, specifically, the structured data corresponding to the first client before transcoding as shown in fig. 4 a.
S103, transcoding the structured page data to obtain page data in the form of character strings.
The transcoding can be performed according to a preset transcoding rule to obtain page data in the form of a character string, and the page data in the form of the character string can be understood as page data represented by the character string, namely, a character string, such as 'MingChengJiSuanDizhikeC'. The preset transcoding rules may be rules based on different encoding modes. In an alternative embodiment of the present invention, the structured page data may be encoded by a symmetric encryption algorithm to obtain the page data in the form of a string.
In the embodiment, the structured data before transcoding may be transcoded to obtain the page data in the form of a character string, and the first client may display the page data in the form of the character string through a display page, specifically, the character string corresponding to the transcoded page is shown in fig. 4 b.
And S104, sending the page data in the form of the character string to the server, so that the server sends the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string.
In one implementation, a hypertext transfer protocol (HyperText Transfer Protocol, HTTP) request may be sent to a server carrying page data in the form of a string.
In the embodiment of the invention, the first client sends the page data in the form of the character string to the server, so that the server can send the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string. In this way, in the page modification process, the server stores the page data in the form of the character string and sends the page data in the form of the character string to the second client, so that the server does not need to perform other development processes, and the development cost can be effectively reduced. And the dependence on the server in the page display process can be reduced.
In an alternative embodiment of the present invention, in step S104: after sending the page data in the form of a character string to the server, as shown in fig. 4c, the method may further include:
s401, receiving the update requirement of the page.
The update requirement of the page may include an update requirement for a page object corresponding to the page, such as a requirement for adding the page object to the page, a requirement for deleting an existing page object in the page, a requirement for modifying an existing page object in the page, such as a display mode and a display position of the page object, an increase in display content for the page object, and so on.
In one implementation manner, a user can determine the update requirement of the page according to the actual requirement, and input the update requirement of the page through the object setting control in the page management interface, so that the first client can receive the update requirement of the page input by the user based on the object setting control included in the page management interface.
S402, determining attribute information of a page object to be updated according to the update requirement of the page.
In one implementation, the attribute information of the page object set by the user may be extracted according to the update requirement of the page by referring to the manner of extracting the attribute information of the page object set by the user according to the object setting information.
S403, updating the structured page data corresponding to the page according to the attribute information of the page object to be updated.
In one implementation, attribute information of a page object to be updated may be added to a preset structured page data template to generate updated structured page data corresponding to the page to be updated.
In a specific embodiment, on the basis of the structured page data in fig. 4a, the update requirement of the page is to add the "NEW" identifier to the "cloud server" of the page object, so that it may be determined that the attribute information of the page object to be updated is newly added with the identifier information, and on the basis of the structured data corresponding to the structured page data before transcoding in fig. 4a, one piece of data about the identifier information may be added to the data corresponding to the "cloud server", for example, the data corresponding to the "cloud server" may include data: "isNew": true ", may specifically be: the following form:
The first client may display the updated structured page data through a presentation page, specifically, as shown in fig. 4d, the updated structured page data of the presentation page.
Thus, in the process of displaying the page, when the data is parsed in the process of rendering the structured page data, a 'NEW' identifier can be added in a 'cloud server'.
S404, transcoding the updated structured page data to obtain page data in the form of updated character strings.
This step is similar to the above-described step S103 except that the data to be subjected to the forwarding process is different, and may be performed with reference to the above-described step S103.
The updated string form of page data is also a string, differing from the pre-updated string form of page data only in that one or more letters in the string have been added, deleted or modified.
S405, the updated page data in the form of the character string is sent to the server, so that the server sends the updated page data in the form of the character string to the second client, and the second client displays the updated page according to the updated page data in the form of the character string.
This step is similar to the above step S104 except that the data to be transmitted to the server is different, and it is only necessary to perform the step S104.
In the embodiment of the invention, the page data in the form of the character string corresponding to the page to be displayed is sent to the server to display the page, and after the page data in the form of the character string is sent to the server, the updated page data in the form of the character string is sent to the server, and the server can store the page data in the form of the updated character string and send the page data in the form of the updated character string to the second client, so that the updated page can be displayed, namely the page is updated, other development processes of the server are not needed, and the development cost in the page updating process can be effectively reduced.
After the first client sends the page data in the form of the character string to the server, the server may receive and store the page data in the form of the character string, and referring to fig. 2, the method may specifically include the following steps:
s201, receiving page data in the form of character strings.
The method comprises the steps that page data in the form of character strings are obtained by transcoding structured page data corresponding to pages by a first client, and the structured page data are obtained by the first client according to attribute information of page objects of the pages.
In one implementation, an HTTP request may be received that carries page data in the form of a string. In this way, the HTTP request can be parsed to obtain page data in the form of a string.
In an alternative embodiment, after receiving the page data in the form of a string, the page data in the form of a string may be saved, for example, the page data in the form of a string may be saved in a database of the server.
S202, receiving a data request of the page, which is sent by the second client.
Specifically, before S102, the following steps performed by the second client may be included:
s301, receiving a page browsing request of a user.
S302, sending a data request of the page to a server according to the page browsing request.
Specifically, the second client receives a page browsing request of a user, and sends a data request of a page to the server according to the page browsing request. For example, if the user inputs a page address and starts a search through the second client, a page browsing request is sent to the second client. The page browsing request may include information such as a page identifier, for example, a page address corresponding to a page. The server, upon receiving the page view request, may send a data request to the server including a page identification or the like.
And S203, according to the data request, sending the page data in the form of the character string to the second client so that the second client displays the page according to the page data in the form of the character string.
In one implementation manner, after receiving the data request, the server analyzes the data request to obtain a page identifier corresponding to a page included in the data request, obtains page data in a character string form corresponding to the page through the page identifier, and sends the page data in the character string form to the second client.
Referring to fig. 3, the second client displaying the page according to the page data in the form of the character string may include the steps of:
s303, receiving page data in the form of character strings of pages, which are sent by a server.
The page data in the form of character strings are obtained by transcoding structured page data corresponding to the page by the first client, and the structured page data are obtained according to attribute information of a page object of the page.
S304, transcoding the page data in the form of character strings to obtain structured page data.
And transcoding the page data in the form of character strings according to a preset transcoding rule to obtain the structured page data. The preset transcoding rule may be a decoding mode corresponding to the encoding mode in the process of transcoding the structured page data in step S103 to obtain the page data in the form of a character string.
In one implementation, the page data in the form of a character string may be transcoded to obtain the structured page data by a symmetric decoding method, where the symmetric decoding method corresponds to an encoding method used when the structured page data is transcoded to obtain the page data in the form of a character string.
S305, displaying the page according to the structured page data.
In particular, structured page data may be rendered, i.e., pages may be displayed.
In the embodiment of the invention, the server does not need to store the structured page data generated aiming at the attribute information of different page objects or the updating requirement of the page, and the server only needs to store the page data in the form of character strings. Because the data stored by the server is always a character string, no matter what modification is done by the client, the server does not need to care, and only needs to send the data in the form of the character string corresponding to the page to the client after receiving the data request corresponding to the page sent by the client, so that the client can display the page based on the data in the form of the character string. Therefore, the development cost in the page updating process can be effectively reduced. And decoupling between the client and the server in the page display process can be realized, and the dependence on the server can be reduced.
In an alternative embodiment, after receiving the page data in the form of the character string corresponding to the page, as shown in fig. 5, the method may further include:
s501, receiving page data in the form of updated character strings.
The updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated.
S502, receiving a data request of the page, which is sent by the second client.
And S503, according to the data request, the updated page data in the form of the character string is sent to the second client, so that the second client displays the updated page according to the updated page data in the form of the character string.
In the embodiment, S201 to S203 process the page data in the form of a character string, in the embodiment, S501 to S503 process the page data in the form of a character string after updating, the processing is similar, in the embodiment, S501 to S503 are similar to S201 to S203 in the embodiment, and in the embodiment, S501 to S503 are executed with reference to S201 to S203 in the embodiment.
In the embodiment of the invention, only the server receives the data request of the page corresponding to the page sent by the client, sends the data in the form of the updated character string corresponding to the page to the client, and the client can display the updated page based on the data in the form of the updated character string. Therefore, the development cost in the page updating process can be effectively reduced. And decoupling between the client and the server in the page updating process can be realized, and the dependence on the server can be reduced.
In one embodiment of the present invention, the page is a navigation menu page. Specifically, the navigation menu page is a page including a plurality of menu options for navigation, and the user can enter a sub-page corresponding to the menu option by clicking the menu option in the navigation menu page, or view information corresponding to the menu option, and the like.
In this embodiment, as shown in fig. 6, the method for displaying a page provided in the embodiment of the present invention may include the following steps:
s601, the first client determines attribute information of the page object.
The page object may include menu options to be displayed in a navigation menu page. The attribute information of the page object may include information related to the display of the menu options in the navigation menu page. For example, description information such as the name of the page object, description information of URL address corresponding to the page to be generated, display content, display size, display form, display position, and the like of the page object may be included.
In one implementation, before step S601, the method may further include:
and providing a page management interface, wherein the page management interface comprises an object setting control.
Wherein the object setting control may be understood as a plurality of navigation menu options. The user, such as a background developer, can input object setting information through an object setting control included in a page management interface according to the actual navigation menu page requirement, and the first client receives the object setting information input by the user based on the object setting control; and extracting attribute information of the page object set by the user according to the object setting information.
As shown in fig. 7, the page management interface may include a plurality of navigation menu controls corresponding to the menu on the left side of the console, that is, object setting controls corresponding to menu options, such as "calculation", "network", and submenus corresponding to "network", and "elastic IP", "load balancing", and "virtual private network". For example, when a corresponding submenu needs to be added in the lower layer of "calculation", a background developer may click on the plus sign "+" corresponding to "calculation", or when a submenu corresponding to the lower layer of calculation needs to be deleted, a background developer may click on the minus sign "-" corresponding to "calculation", or when a modification is required for "calculation", for example, an identifier is added to "calculation", and a background developer may click on the symbol of the pen style corresponding to "calculation".
Thus, the first client detects different clicks, and determines object setting information input by the user according to the clicks. And extracting attribute information of the page object set by the user according to the object setting information.
S602, the first client acquires structured page data corresponding to the navigation menu page according to the attribute information of the page object.
In this embodiment, this step is similar to S102 in the above embodiment, referring to S102 in the above embodiment.
S603, the first client transcodes the structured page data to obtain page data in the form of character strings.
In this embodiment, this step is similar to S103 in the above embodiment, referring to S103 in the above embodiment.
And S604, the first client sends the page data in the form of the character string to the server so that the server sends the page data in the form of the character string to the second client, and the second client displays the navigation menu page according to the page data in the form of the character string.
In one implementation, an HTTP request may be sent to a server carrying page data in the form of a string corresponding to a navigation menu page. For example, when the background developer clicks the "save" button shown in fig. 7 and the first client detects that the "save" button is clicked, an HTTP request may be sent to the server, and the page data in the form of a character string obtained through the transcoding process may be sent to the server.
After receiving the page data in the form of the character string, the server stores the page data in the form of the character string. Since the page data in the form of the character string is the character string, the server does not need to perform other operations and directly stores the character string.
In an alternative embodiment, after sending the page data in the form of the character string to the server in S604, as shown in fig. 8, the method may further include:
s801, the first client receives an update requirement of a navigation menu page.
The update requirements of the navigation menu page may include requirements for menu option updates in the navigation menu page. May include adding new menu options, deleting existing menu options, or modifying existing menu options, etc.
In one implementation manner, a user, such as a background developer, can determine an update requirement of a navigation menu page according to an actual requirement, and input the update requirement of the navigation menu page through an object setting control in a page management interface, so that the first client can receive the update requirement of the navigation menu page input by the user based on the object setting control included in the page management interface.
S802, the first client determines attribute information of a page object to be updated according to the update requirement of the navigation menu page.
S803, the first client updates the structured page data corresponding to the navigation menu page according to the attribute information of the page object to be updated.
S804, the first client transcodes the updated structured page data to obtain page data in the form of updated character strings.
S805, the first client sends the updated page data in the form of the character string to the server, so that the server sends the updated page data in the form of the character string to the second client, and the second client displays the updated navigation menu page according to the updated page data in the form of the character string.
In the present embodiment, S802 to S805 are similar to S802 to S805 in the above embodiment, and S802 to S805 in the above embodiment are referred to when S802 to S805 are executed.
After the first client sends the page data in the form of the character string corresponding to the navigation menu page to the server, the server may receive and store the page data in the form of the character string, as shown in fig. 9, and specifically may include the following steps:
s901, the server receives page data in the form of character strings corresponding to the navigation menu pages.
The page data in the form of character strings are obtained by transcoding structured page data corresponding to a navigation menu page by a first client, and the structured page data are obtained by the first client according to attribute information of a page object of the navigation menu page.
In one implementation, an HTTP request may be received that carries page data in the form of a string. Thus, the HTTP request can be analyzed to obtain the page data in the form of the character string corresponding to the navigation menu page.
In an alternative embodiment, after receiving the page data in the form of a character string, the page data in the form of a character string corresponding to the navigation menu page may be saved, for example, the page data in the form of a character string may be saved in a database in a server.
S902, the server receives a data request for navigating the menu page, which is sent by the second client.
Specifically, as shown in fig. 10, the steps may be as follows:
s1001, the second client receives a page browsing request of a user.
S1002, the second client sends a data request for navigating the menu page to the server according to the page browsing request.
Specifically, the second client receives a page browsing request of a user, and sends a data request for navigating a menu page to the server according to the page browsing request. For example, if the user inputs a page address and starts a search through the second client, a page browsing request is sent to the second client. The page browsing request may include information such as a page identifier, for example, a page address corresponding to a navigation menu page. The server, upon receiving the page view request, may send a data request to the server including a page identification or the like.
S903, the server sends the page data in the form of the character string to the second client according to the data request, so that the second client displays the navigation menu page according to the page data in the form of the character string.
In one implementation manner, after receiving the data request, the server analyzes the data request to obtain a page identifier corresponding to a page included in the data request, obtains page data in a character string form corresponding to the page through the page identifier, and sends the page data in the character string form to the second client.
Referring to fig. 10, the second client displaying the navigation menu page according to the page data in the form of the character string may include the steps of:
s1003, the second client receives page data in the form of character strings of the navigation menu page, which is sent by the server.
The page data in the form of character strings are obtained by transcoding structured page data corresponding to a navigation menu page by the first client, and the structured page data are obtained according to attribute information of a page object of the navigation menu page.
S1004, transcoding the page data in the form of character strings to obtain structured page data.
And transcoding the page data in the form of character strings according to a preset transcoding rule to obtain the structured page data. In one implementation, the page data in the form of a character string may be transcoded to obtain the structured page data by a symmetric decoding method, where the symmetric decoding method corresponds to an encoding method used when the structured page data is transcoded to obtain the page data in the form of a character string.
S1005, displaying a navigation menu page according to the structured page data.
In particular, the structured page data may be rendered, i.e. a navigation menu page may be displayed.
In the embodiment of the invention, the data stored by the server is always a character string, so that no matter what modification is done by the client, the server does not need to care about, and only needs to send the data in the form of the character string corresponding to the navigation menu page to the client after receiving the data request corresponding to the page sent by the client, and the client can display the navigation menu page based on the data in the form of the character string. Therefore, the development cost in the process of updating the navigation menu page can be effectively reduced. And decoupling between the client and the server in the navigation menu page display process can be realized, and the dependence on the server can be reduced.
In an alternative embodiment, after receiving the page data in the form of a character string corresponding to the navigation menu page, as shown in fig. 11, the method may further include:
s1101, the server receives page data in the form of updated character strings.
The updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated.
S1102, receiving a data request of a navigation menu page sent by a second client.
And S1103, according to the data request, the updated page data in the form of the character string is sent to the second client, so that the second client displays the updated navigation menu page according to the updated page data in the form of the character string.
In the embodiment, S901 to S903 are processing the page data in the form of a character string, in the embodiment, S1101 to S1103 are processing the page data in the form of a character string after updating, and the processing is similar to that in S1101 to S1103 in the embodiment, and S1101 to S1103 in the embodiment are performed with reference to S901 to S903 in the embodiment.
In the embodiment of the invention, the server only needs to receive the data request for updating the navigation menu page corresponding to the navigation menu page sent by the client, send the data in the form of the updated character string corresponding to the navigation menu page to the client, and the client can display the updated navigation menu page based on the data in the form of the updated character string. Therefore, the development cost in the page updating process can be effectively reduced. And decoupling between the client and the server in the page updating process can be realized, and the dependence on the server can be reduced.
In a specific embodiment, the update requirement of the navigation menu page adds a prompt identifier to the menu options corresponding to the newly developed product. Such as adding a "NEW" identifier for the menu option "cloud server".
The background developer can input the object setting information for adding the NEW identifier to the cloud server by operating the navigation menu control corresponding to the cloud server through the page management interface shown in fig. 7, so that the first client can receive the object setting information input by the background developer, and extract the attribute information of the updated page object according to the object setting information, such as adding the NEW identifier to the display content. The attribute information of the updated page object may be added to a preset structured page data template to generate updated structured page data corresponding to the navigation menu page. The method comprises the steps of performing transcoding processing on updated structured page data to obtain page data in the form of updated character strings, sending the page data in the form of the updated character strings to a server, receiving the page data in the form of the updated character strings by the server, sending the page data in the form of the updated character strings to a second client after receiving a data request corresponding to a navigation menu page sent by the second client, receiving the page data in the form of the character strings of the navigation menu page sent by the server by the second client, performing transcoding processing on the page data in the form of the updated character strings to obtain updated structured page data, and displaying the updated navigation menu page according to the updated structured page data. The "NEW" identification is added to the "cloud server" as in FIG. 12.
In the embodiment of the invention, only whether the content of the prompt identifier is added for the menu option needs to be added in the determined structured page data, such as adding 'isNew': true content. And the client corresponding to the background developer encodes the structured data added with the content of whether the prompt identifier is added for the menu option to obtain the corresponding page data in the form of the character string, and sends the page data in the form of the character string to the server for storage, so that the server only needs to store one character string. When the navigation menu page is displayed, the client corresponding to the user acquires the page data in the form of the character string from the server, decodes the page data in the form of the character string to obtain corresponding structured page data, and renders the structured page data, so that the navigation menu page comprising the NEW mark can be displayed. The page data in the form of a string sent to the server is always a string, so the server does not need to make any changes, nor does the database table structure storing the page data in the form of a string.
In the related art, in the process of updating the navigation menu page, not only is the client required to develop aiming at the updating requirement of the navigation menu page, but also the client corresponding to the background developer determines corresponding structured page data aiming at the updating requirement of the navigation menu page; the server is also required to develop for the update requirement of the navigation menu page, for example, the server needs to develop corresponding logic codes for the structured page data so as to store the structured page data. Both the server and the client need to develop new business logic, i.e. the developer corresponding to the client needs to cooperate with the developer corresponding to the server. In the related art, the server needs to modify the structure of the table in the database to save the structured page data corresponding to the update requirements of different navigation menu pages, so that the dependence on the server is larger. And when the structure of the database table is changed, data needs to be cleaned, for example, as the structure of the database table is changed, for example, a field is added, and the field is not included in the history data, so that the value of the newly added field needs to be complemented for all the history data in the database table, and bug is easy to be caused. According to the embodiment of the invention, the client corresponding to the background developer can determine the updating requirement of the navigation menu page; according to the updating requirement of the navigation menu page, determining structured navigation menu data corresponding to the updating requirement of the navigation menu page, wherein the structured navigation menu data is structured data; transcoding the structured page data to obtain page data in the form of character strings; the page data in the form of character strings is sent to the server, so that the server stores the page data in the form of character strings, namely, the character strings are stored, the server does not need to develop new logic for new structured page data, such as modifying the structure of a database table, only basic storage functions are provided, dependence on the server can be reduced, and the bug caused by data cleaning is avoided.
Corresponding to the above page display method applied to the first client, an embodiment of the present invention provides a page display device, as shown in fig. 13, applied to the first client, including:
a first determining module 1301, configured to determine attribute information of a page object;
an obtaining module 1302, configured to obtain structured page data corresponding to a page according to attribute information of the page object;
the first transcoding processing module 1303 is configured to transcode the structured page data to obtain page data in a string form;
and the sending module 1304 is configured to send the page data in the form of a character string to the server, so that the server sends the page data in the form of the character string to the second client, and the second client displays the page according to the page data in the form of the character string.
Optionally, the apparatus further comprises:
a receiving module (not shown in the figure) for receiving the update requirement of the page;
a second determining module (not shown in the figure) for determining attribute information of the page object to be updated according to the update requirement of the page;
an updating module (not shown in the figure) for updating the structured page data corresponding to the page according to the attribute information of the page object to be updated;
A second transcoding processing module (not shown in the figure) for transcoding the updated structured page data to obtain page data in the form of updated character strings;
and a second sending module (not shown in the figure) for sending the updated page data in the form of the character string to the server, so that the server sends the updated page data in the form of the character string to the second client, and the second client displays the updated page according to the updated page data in the form of the character string.
Optionally, the apparatus further comprises:
a providing module (not shown in the figure) for providing a page management interface before determining attribute information of the page object, wherein the page management interface comprises an object setting control;
the first determining module 1301 is specifically configured to receive object setting information input by a user based on an object setting control; and extracting attribute information of the page object set by the user according to the object setting information.
Optionally, the obtaining module 1302 is specifically configured to add attribute information of the page object to a preset structured page data template, so as to generate structured page data corresponding to the page.
Optionally, the page is a navigation menu page.
Corresponding to the above page display method applied to the server, an embodiment of the present invention provides a page display device, as shown in fig. 14, applied to the server, which may include:
a first receiving module 1401 for receiving page data in the form of a character string; the method comprises the steps that page data in a character string form are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page; receiving a data request of a page sent by a second client;
the first sending module 1402 is configured to send page data in a string form to the second client according to the data request, so that the second client displays a page according to the page data in the string form.
Optionally, the apparatus further comprises:
a second receiving module (not shown in the figure) for receiving the page data in the form of the updated character string after receiving the page data in the form of the character string corresponding to the page; the method comprises the steps that updated page data in the form of character strings are obtained by transcoding updated structured page data corresponding to a page by a first client, and the updated structured page data are obtained by updating the structured page data corresponding to the page by the first client according to attribute information of a page object to be updated; receiving a data request of a page sent by a second client;
And a second sending module (not shown in the figure) for sending the updated page data in the form of the character string to the second client according to the data request, so that the second client displays the updated page according to the updated page data in the form of the character string.
Corresponding to the above page display method applied to the second client, an embodiment of the present invention provides a page display device, as shown in fig. 15, which may include:
a first receiving module 1501, configured to receive a page browsing request of a user;
a sending module 1502, configured to send a data request of a page to a server according to a page browsing request;
a second receiving module 1503, configured to receive page data in the form of a character string of a page sent by a server; the method comprises the steps that page data in a character string form are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
the transcoding processing module 1504 is configured to transcode the page data in the form of a character string to obtain structured page data;
the display module 1505 is configured to display a page according to the structured page data.
Optionally, the transcoding processing module 1504 is specifically configured to transcode the page data in the form of a character string to obtain structured page data in a symmetric decoding manner, where the symmetric decoding manner corresponds to an encoding manner adopted when the structured page data is transcoded to obtain the page data in the form of the character string.
The page display device provided by the embodiment of the invention is a device applying the page display method, so that all the embodiments of the page display method are applicable to the device and can achieve the same or similar beneficial effects.
The embodiment of the present invention further provides a page display system, as shown in fig. 16, which may include a first client 1601, a server 1602, and a second client 1603.
The first client 1601 determines attribute information of a page object; according to the attribute information of the page object, obtaining structured page data corresponding to the page; transcoding the structured page data to obtain page data in the form of character strings; sending page data in the form of a character string to the server 1602;
a server 1602 that receives page data in the form of character strings; receiving a data request of a page sent by a second client 1603; according to the data request, sending the page data in the form of a character string to the second client 1603;
A second client 1603, which receives a page browsing request from a user; according to the page browsing request, sending a data request of the page to the server 1602; receiving page data in the form of a character string of a page sent by a server 1602; transcoding the page data in the form of character strings to obtain structured page data; and displaying the page according to the structured page data.
In response to the above page display method applied to the first client, an embodiment of the present invention provides an electronic device, as shown in fig. 17, including a processor 1701, a communication interface 1702, a memory 1703, and a communication bus 1704, where the processor 1701, the communication interface 1702, and the memory 1703 complete communication with each other through the communication bus 1704.
A memory 1703 for storing a computer program.
The processor 1701 is configured to implement the method steps of the page display method applied to the first client when executing the program stored in the memory 1703.
In response to the above page display method applied to the server, an embodiment of the present invention provides an electronic device, as shown in fig. 18, including a processor 1801, a communication interface 1802, a memory 1803, and a communication bus 1804, where the processor 1801, the communication interface 1802, and the memory 1803 complete communication with each other through the communication bus 1804.
Memory 1803 is used for storing a computer program.
The processor 1801 is configured to implement the method steps of the page display method applied to the server when executing the program stored in the memory 1803.
In response to the above page display method applied to the second client, an embodiment of the present invention provides an electronic device, as shown in fig. 19, including a processor 1901, a communication interface 1902, a memory 1903, and a communication bus 1904, where the processor 1901, the communication interface 1902, and the memory 1903 complete communication with each other through the communication bus 1904.
Memory 1903 for storing a computer program.
The processor 1901 is configured to implement the method steps of the page display method applied to the second client when executing the program stored in the memory 1903.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Corresponding to the above-mentioned page display method applied to the first client, the embodiment of the invention provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps of the above-mentioned page display method applied to the first client are implemented.
Corresponding to the above page display method applied to the server, the embodiment of the invention provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps of the above page display method applied to the server are implemented.
Corresponding to the above page display method applied to the second client, the embodiment of the invention provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps of the above page display method applied to the second client are implemented.
Corresponding to the above-mentioned page display method applied to the first client, the embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the method steps of the above-mentioned page display method applied to the first client.
Corresponding to the above-described page display method applied to the server, the embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the method steps of the above-described page display method applied to the server.
Corresponding to the above-mentioned page display method applied to the second client, the embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the method steps of the above-mentioned page display method applied to the second client.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, systems, electronic devices, computer readable storage media, and computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant points are found in the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (13)

1. The page display method is characterized by being applied to a first client and comprising the following steps of:
determining attribute information of the page object;
acquiring structured page data corresponding to the page according to the attribute information of the page object;
transcoding the structured page data to obtain page data in the form of character strings;
the page data in the form of the character string is sent to a server, so that the server sends the page data in the form of the character string to a second client, and the second client displays the page according to the page data in the form of the character string;
After the page data in the character string form is sent to the server, the method further comprises the following steps:
receiving an update demand of a page;
determining attribute information of a page object to be updated according to the update demand of the page;
updating the structured page data corresponding to the page according to the attribute information of the page object to be updated;
transcoding the updated structured page data to obtain page data in the form of updated character strings;
and sending the updated page data in the form of the character string to a server so that the server sends the updated page data in the form of the character string to a second client, and the second client displays the updated page according to the updated page data in the form of the character string.
2. The method of claim 1, wherein prior to said determining attribute information for a page object, the method further comprises:
providing a page management interface, wherein the page management interface comprises an object setting control;
the determining the attribute information of the page object comprises the following steps:
receiving object setting information input by a user based on the object setting control;
And extracting attribute information of the page object set by a user according to the object setting information.
3. The method of claim 1, wherein the obtaining the structured page data corresponding to the page according to the attribute information of the page object includes:
and adding the attribute information of the page object into a preset structured page data template to generate structured page data corresponding to the page.
4. A method according to any one of claims 1 to 3, wherein the page is a navigation menu page.
5. A page display method, applied to a server, comprising:
receiving page data in a character string form, wherein the page data in the character string form is obtained by transcoding structured page data corresponding to a page by a first client, and the structured page data is obtained by the first client according to attribute information of a page object of the page;
receiving a data request of the page, which is sent by a second client;
according to the data request, sending the page data in the form of the character string to a second client so that the second client displays the page according to the page data in the form of the character string;
After the receiving the page data in the form of a string, the method further comprises:
receiving page data in the form of updated character strings; the updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated;
receiving a data request of the page, which is sent by a second client;
and sending the updated page data in the form of the character string to the second client according to the data request, so that the second client displays the updated page according to the page data in the form of the updated character string.
6. The page display method is characterized by being applied to a second client and comprising the following steps of:
receiving a page browsing request of a user;
according to the page browsing request, sending a data request of the page to a server;
receiving page data in the form of character strings of the pages, which are sent by the server; the method comprises the steps that page data in the form of character strings are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
Transcoding the page data in the character string form to obtain the structured page data;
displaying the page according to the structured page data;
the method further comprises the steps of:
sending a data request of a page to the server;
receiving updated page data in the form of character strings sent by the server, wherein the updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to attribute information of a page object to be updated;
transcoding the updated page data in the form of the character string to obtain the updated structured page data;
and displaying the updated page according to the updated structured page data.
7. The method of claim 6, wherein transcoding the page data in the form of the character string to obtain the structured page data comprises:
and transcoding the page data in the character string form through a symmetrical decoding mode to obtain the structured page data, wherein the symmetrical decoding mode corresponds to an encoding mode adopted when the structured page data is transcoded to obtain the page data in the character string form.
8. A page display device, applied to a first client, comprising:
the first determining module is used for determining attribute information of the page object;
the acquisition module is used for acquiring the structured page data corresponding to the page according to the attribute information of the page object;
the first transcoding processing module is used for transcoding the structured page data to obtain page data in the form of character strings;
the sending module is used for sending the page data in the form of the character string to a server so that the server can send the page data in the form of the character string to a second client, and the second client displays the page according to the page data in the form of the character string;
the apparatus further comprises:
the receiving module is used for receiving the update requirement of the page;
the second determining module is used for determining attribute information of the page object to be updated according to the updating requirement of the page;
the updating module is used for updating the structured page data corresponding to the page according to the attribute information of the page object to be updated;
the second transcoding processing module is used for carrying out transcoding processing on the updated structured page data to obtain page data in the form of updated character strings;
And the second sending module is used for sending the updated page data in the form of the character string to a server so that the server sends the updated page data in the form of the character string to a second client, and the second client displays the updated page according to the updated page data in the form of the character string.
9. A page display device, characterized by being applied to a server, comprising:
the first receiving module is used for receiving page data in a character string form, wherein the page data in the character string form is obtained by transcoding structured page data corresponding to a page by a first client, and the structured page data is obtained by the first client according to attribute information of a page object of the page; receiving a data request of the page, which is sent by a second client;
the first sending module is used for sending the page data in the form of the character string to the second client according to the data request so that the second client displays the page according to the page data in the form of the character string;
the apparatus further comprises:
the second receiving module is used for receiving the page data in the form of the updated character string after receiving the page data in the form of the character string; the updated page data in the form of character strings is obtained by transcoding the updated structured page data corresponding to the page by the first client, and the updated structured page data is obtained by updating the structured page data corresponding to the page by the first client according to the attribute information of the page object to be updated; receiving a data request of a page sent by the second client;
And the second sending module is used for sending the page data in the form of the updated character string to the second client according to the data request, so that the second client displays the updated page according to the page data in the form of the updated character string.
10. A page display device, applied to a second client, comprising:
the first receiving module is used for receiving a page browsing request of a user;
the sending module is used for sending a data request of the page to a server according to the page browsing request;
the second receiving module is used for receiving the page data in the form of the character string of the page, which is sent by the server; the method comprises the steps that page data in the form of character strings are obtained by transcoding structured page data corresponding to a page by a first client, wherein the structured page data are obtained by the first client according to attribute information of a page object of the page;
the transcoding processing module is used for carrying out transcoding processing on the page data in the character string form to obtain the structured page data;
the display module is used for displaying the page according to the structured page data;
The apparatus further comprises:
the sending module is further used for sending a data request of the page to the server;
the second receiving module is further configured to receive updated page data in a character string form sent by the server, where the updated page data in the character string form is obtained by the first client performing transcoding processing on the updated structured page data corresponding to the page, and the updated structured page data is obtained by the first client updating the structured page data corresponding to the page according to attribute information of a page object to be updated;
the transcoding processing module is further used for transcoding the updated page data in the form of the character string to obtain the updated structured page data;
the display module is further configured to display an updated page according to the updated structured page data.
11. A page display system is characterized by comprising a first client, a server and a second client;
the first client determines attribute information of a page object; acquiring structured page data corresponding to the page according to the attribute information of the page object; transcoding the structured page data to obtain page data in the form of character strings; the page data in the form of the character string is sent to a server;
The server receives the page data in the form of the character string; receiving a data request of the page, which is sent by a second client; according to the data request, sending the page data in the form of the character string to a second client;
the second client receives a page browsing request of a user; according to the page browsing request, sending a data request of the page to a server; receiving page data in the form of character strings of the pages, which are sent by the server; transcoding the page data in the character string form to obtain the structured page data; displaying the page according to the structured page data;
the first client receives the update requirement of the page; determining attribute information of a page object to be updated according to the update demand of the page; updating the structured page data corresponding to the page according to the attribute information of the page object to be updated; transcoding the updated structured page data to obtain page data in the form of updated character strings; the updated page data in the form of character strings is sent to a server,
the server receives page data in the form of updated character strings; and a data request of the page sent by the second client; according to the data request, the updated page data in the form of character strings is sent to the second client;
The second client sends a data request of a page to the server; receiving page data in the form of updated character strings sent by the server, and performing transcoding processing on the page data in the form of updated character strings to obtain updated structured page data; and displaying the updated page according to the updated structured page data.
12. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of any one of claims 1 to 4 or the method steps of claim 5 or the method steps of any one of claims 6 to 7 when executing the program stored on the memory.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any one of claims 1-4 or the method steps of claim 5 or the method steps of any one of claims 6-7.
CN201911285348.9A 2019-12-13 2019-12-13 Page display method, device and system, electronic equipment and storage medium Active CN111078219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911285348.9A CN111078219B (en) 2019-12-13 2019-12-13 Page display method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911285348.9A CN111078219B (en) 2019-12-13 2019-12-13 Page display method, device and system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111078219A CN111078219A (en) 2020-04-28
CN111078219B true CN111078219B (en) 2023-10-03

Family

ID=70314485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911285348.9A Active CN111078219B (en) 2019-12-13 2019-12-13 Page display method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111078219B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917603A (en) * 2020-07-22 2020-11-10 广州虎牙信息科技有限公司 Client test method and device, computer equipment and storage medium
CN113254016A (en) * 2021-05-21 2021-08-13 四川金熊猫新媒体有限公司 Interface generation method, interface information processing method, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115068A (en) * 2007-07-19 2008-01-30 潘晓梅 Method and system for adjusting web page display contents on client terminal
CN102508674A (en) * 2011-12-02 2012-06-20 方正国际软件有限公司 Method based on JSON (javascript serialized object notation) for passing object-oriented parameters and system
CN103077185A (en) * 2012-12-18 2013-05-01 厦门雅迅网络股份有限公司 Object-based user-defined information-expanding method
CN104657419A (en) * 2014-12-26 2015-05-27 盈世信息科技(北京)有限公司 Processing method and system for customized letter paper templates
CN104899212A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Webpage display method, server and system
US9274669B1 (en) * 2010-04-19 2016-03-01 Amazon Technologies, Inc. Customizing user interfaces for multiple different clients
CN106487851A (en) * 2015-08-31 2017-03-08 北京国双科技有限公司 Web wrapper information transferring method, apparatus and system
CN107590110A (en) * 2017-09-20 2018-01-16 广州酷狗计算机科技有限公司 Text display method and device
WO2018010364A1 (en) * 2016-07-14 2018-01-18 中兴通讯股份有限公司 Menu character string modification method and apparatus
CN110191093A (en) * 2019-04-26 2019-08-30 视联动力信息技术股份有限公司 A kind of variation of style sheet and view networked system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005327154A (en) * 2004-05-17 2005-11-24 Fujitsu Ltd Html file processing method and program
US8504803B2 (en) * 2010-05-26 2013-08-06 Tethys Solutions LLC System and method for creating and executing portable software
US10698585B2 (en) * 2014-08-29 2020-06-30 Nuance Communications, Inc. Virtual assistant development system
CN108334517A (en) * 2017-01-20 2018-07-27 华为技术有限公司 A kind of webpage rendering intent and relevant device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115068A (en) * 2007-07-19 2008-01-30 潘晓梅 Method and system for adjusting web page display contents on client terminal
US9274669B1 (en) * 2010-04-19 2016-03-01 Amazon Technologies, Inc. Customizing user interfaces for multiple different clients
CN102508674A (en) * 2011-12-02 2012-06-20 方正国际软件有限公司 Method based on JSON (javascript serialized object notation) for passing object-oriented parameters and system
CN103077185A (en) * 2012-12-18 2013-05-01 厦门雅迅网络股份有限公司 Object-based user-defined information-expanding method
CN104899212A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Webpage display method, server and system
CN104657419A (en) * 2014-12-26 2015-05-27 盈世信息科技(北京)有限公司 Processing method and system for customized letter paper templates
CN106487851A (en) * 2015-08-31 2017-03-08 北京国双科技有限公司 Web wrapper information transferring method, apparatus and system
WO2018010364A1 (en) * 2016-07-14 2018-01-18 中兴通讯股份有限公司 Menu character string modification method and apparatus
CN107590110A (en) * 2017-09-20 2018-01-16 广州酷狗计算机科技有限公司 Text display method and device
CN110191093A (en) * 2019-04-26 2019-08-30 视联动力信息技术股份有限公司 A kind of variation of style sheet and view networked system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁振凡 ; .XML技术在网络课件导航菜单改进中的应用.福建电脑.2006,(第07期),全文. *

Also Published As

Publication number Publication date
CN111078219A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN109863527B (en) Method and system for server-side rendering of rendered local content
US8332763B2 (en) Aggregating dynamic visual content
US20120331372A1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN103577597A (en) Keyword searching system based on current browse webpage
CN110471848B (en) Method and device for dynamically returning message
CN103577595A (en) Keyword pushing method and device based on current browse webpage
CN103577392A (en) Keyword pushing method and device based on current browse webpage
CN103577596A (en) Keyword searching method and device based on current browse webpage
CN103873918A (en) Picture processing method, device and terminal
JP5309121B2 (en) Information processing method, program, information processing system
CN109829121B (en) Method and device for reporting click behavior data
CN111078219B (en) Page display method, device and system, electronic equipment and storage medium
US9703820B2 (en) Customized and automated dynamic infographics
WO2023092580A1 (en) Page display method and apparatus, storage medium, and electronic device
CN104699836A (en) Multi-keyword search prompting method and multi-keyword search prompting device
CN104182229A (en) Callback display method and device and callback method and device
CN113761565B (en) Data desensitization method and device
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium
CN111078773B (en) Data processing method and device
CN111367606A (en) Application page display method, device, terminal and medium
US20150193393A1 (en) Dynamic Display of Web Content
CN113220381A (en) Click data display method and device
CN107918552B (en) Light application calling method and device, client device and electronic equipment
CN113656737B (en) Webpage content display method and device, electronic equipment and storage medium
CN115563134A (en) Interaction method, interaction device, electronic equipment and computer readable medium

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