CN111078219A - 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
CN111078219A
CN111078219A CN201911285348.9A CN201911285348A CN111078219A CN 111078219 A CN111078219 A CN 111078219A CN 201911285348 A CN201911285348 A CN 201911285348A CN 111078219 A CN111078219 A CN 111078219A
Authority
CN
China
Prior art keywords
page
character string
page data
data
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911285348.9A
Other languages
Chinese (zh)
Other versions
CN111078219B (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

Images

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 comprises the following steps: determining attribute information of the page object; acquiring structured page data corresponding to a page according to the attribute information of the page object; transcoding the structured page data to obtain page data in a character string form; and sending the page data in the character string form to the server so that the server sends the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form. By the page display method, the page display device, the page display 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 application technologies, and in particular, to a page display method, device, system, electronic device, and storage medium.
Background
In the related art, a common 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 the page data of the page from the server, and the page can be displayed by rendering according to the page data of the page.
When a page needs to be modified, taking a navigation menu page as an example, if a menu item needs to be deleted, added or a new function needs to be added, a client and a server are generally required to develop new service logic codes, and the new service logic codes can be completed only by matching client developers and the server, so that the development cost is increased.
Disclosure of Invention
The embodiment of the invention aims to provide a page display method, a page display device, a page display system, electronic equipment and a storage medium, so that development cost is effectively reduced in a 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 a character string form;
and sending the page data in the character string form to a server so that the server sends the page data in the character string form to a second client, and the second client displays the page according to the page data in the character string form.
Optionally, after the page data in the form of the character string is sent to a server, the method further includes:
receiving the updating requirement of the page;
determining attribute information of a page object to be updated according to the updating requirement 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 updated character string-form page data;
and sending the updated page data in the character string form to a server so that the server sends the updated page data in the character string form to a second client, and the second client displays the updated page according to the updated page data in the character string form.
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 of the attribute information of the page object includes:
receiving object setting information input by a user based on the object setting control;
and extracting the attribute information of the page object set by the user according to the object setting information.
Optionally, the obtaining of 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, applied to a server, including:
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 sent by a second client;
and sending the page data in the character string form to a second client according to the data request so as to enable the second client to display the page according to the page data in the character string form.
Optionally, after receiving the page data in the form of the character string corresponding to the page, the method further includes:
receiving updated page data in a character string form; the updated structural page data corresponding to the page is obtained by the first client side through transcoding processing of the updated structural page data corresponding to the page, and the updated structural page data is obtained by the first client side through updating of the structural page data corresponding to the page according to attribute information of a page object to be updated;
receiving a data request of the page sent by a second client;
and sending the updated page data in the character string form 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 character string form.
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;
sending a data request of the page to a server according to the page browsing request;
receiving page data in a character string form of the page, which is sent by the server; the character string type page data is obtained by transcoding the structured page data corresponding to the page by the first client, wherein the structured page data is obtained by the first client according to the attribute information of the 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 character string form to obtain the structured page data includes:
and transcoding the page data in the character string form in a symmetrical decoding mode to obtain the structured page data, wherein the symmetrical decoding mode corresponds to an encoding mode adopted when transcoding the structured page data to obtain the page data in the character string form.
In a fourth aspect, an embodiment of the present invention provides a page display apparatus, applied to a first client, including:
the first determining module is used for determining the 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 a character string form;
and the sending module is used for sending the page data in the character string form to a server so that the server sends the page data in the character string form to a second client, and the second client displays the page according to the page data in the character string form.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the updating requirement of the page;
the second determining module is used for determining the 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 updated page data in a character string form;
and the second sending module is used for sending the updated page data in the character string form to a server so that the server sends the updated page data in the character string form to a second client, and the second client displays the updated page according to the updated page data in the character string form.
Optionally, the apparatus further comprises:
the providing module is used for providing a page management interface before determining the attribute information of the page object, and 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 the 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 apparatus, 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 sent by a second client;
and the first sending module is used for sending the page data in the character string form to a second client according to the data request so as to enable the second client to display the page according to the page data in the character string form.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving updated page data in the character string form after receiving the page data in the character string form corresponding to the page; the updated structural page data corresponding to the page is obtained by the first client side through transcoding processing of the updated structural page data corresponding to the page, and the updated structural page data is obtained by the first client side through updating of the structural page data corresponding to the page according to attribute information of a page object to be updated; receiving a data request of the page sent by a second client;
and the second sending module is used for sending the updated page data in the character string form to the second client according to the data request so as to enable the second client to display the updated page according to the updated page data in the character string form.
In a sixth aspect, an embodiment of the present invention provides a page display apparatus, 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 which is sent by the server and is in the form of the character string of the page; the character string type page data is obtained by transcoding the structured page data corresponding to the page by the first client, wherein the structured page data is obtained by the first client according to the attribute information of the page object of the page;
the transcoding processing module is used for transcoding 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 character string form in a symmetric decoding manner to obtain the structured page data, where the symmetric decoding manner corresponds to an encoding manner adopted when the transcoding processing is performed on the structured page data to obtain the page data in the character string form.
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 the 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 a character string form; sending the page data in the character string form to a server;
the server receives the page data in the character string form; receiving a data request of the page sent by a second client; according to the data request, sending the page data in the character string form to a second client;
the second client receives a page browsing request of a user; sending a data request of the page to a server according to the page browsing request; receiving page data in a character string form of the page, which is 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 mutual communication 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 of the first aspect when executing the program stored in 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 mutual communication 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 of the second aspect when executing the program stored in 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 mutual communication 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 in the memory.
In an eleventh aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the method in the first aspect.
In a twelfth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the method of the second aspect.
In a thirteenth aspect, the present 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 computer program implements the method steps of the method in the third aspect.
According to the page display method, the page display device, the page display system, the electronic equipment and the storage medium, the first client determines the attribute information of the page object; acquiring structured page data corresponding to a page according to the attribute information of the page object; transcoding the structured page data to obtain page data in a character string form; and sending the page data in the character string form to the server so that the server sends the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form. Therefore, the server only needs to store the character string, only the first client needs to obtain the updated character string again and send the updated character string to the server in the page modification process, the server does not need to change any changes, only needs to store the page data in the character string form and sends the page data in the character string form to the second client, the server does not need to perform other development processes, and therefore development cost can be effectively reduced. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
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 illustrating a page displaying method according to an embodiment of the present invention;
FIG. 4a is a diagram illustrating structured page data according to an embodiment of the present invention;
fig. 4b is a schematic diagram of transcoding the structured page data to obtain page data in a character string form in the embodiment of the present invention;
FIG. 4c is a flowchart illustrating a page displaying method according to another embodiment of the present invention;
FIG. 4d is a diagram illustrating updated structured page data according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a page displaying method according to an embodiment of the present invention;
FIG. 6 is a flow chart of an embodiment of the present invention;
FIG. 7 is a diagram illustrating a page management interface in an embodiment of the invention;
FIG. 8 is a flow chart of an embodiment of the present invention;
FIG. 9 is a flow chart of an embodiment of the present invention;
FIG. 10 is a flow chart of an embodiment of the present invention;
FIG. 11 is a flow chart of an embodiment of the present invention;
FIG. 12 is a diagram illustrating 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 another page display device according to an embodiment of the present invention;
fig. 16 is a schematic structural 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The page display method provided by the embodiment of the invention can be applied to a 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, a page display method provided in an embodiment of the present invention may include:
s101, determining attribute information of a page object;
s102, acquiring structured page data corresponding to a page according to the attribute information of the page object;
s103, transcoding the structured page data to obtain page data in a character string form;
and S104, sending the page data in the character string form to the server so that the server sends the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form.
In the embodiment of the invention, the first client sends the page data in the character string form to the server, so that the server can send the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form. Therefore, in the page modification process, the first client only needs to obtain the updated page data in the character string form and send the updated page data to the server, the server stores the page data in the character string form and sends the page data in the character string form to the second client, the server does not need to be changed, namely, the server does not need to perform other development processes, and development cost can be effectively reduced.
The page display method provided by the embodiment of the present invention may be applied to a server, and as shown in fig. 2, the page display method provided by the embodiment of the present invention may include:
s201, receiving page data in a character string form; the page data in the character string form is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained by the first client according to the attribute information of the page object of the page;
s202, receiving a data request of the page sent by the second client;
s203, according to the data request, the page data in the character string form is sent to the second client side, so that the second client side displays the page according to the page data in the character string form.
In the embodiment of the invention, a server receives page data in a character string form sent by a first client; and after receiving a 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. Therefore, in the page modification process, the server stores the page data in the character string form and sends the page data in the character string form to the second client, other development processes are not required to be carried out by the server, 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. The client may specifically be a browser or the like. As shown in fig. 3, the page display method provided in 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 which is sent by the server and is in the form of a character string of the page; the page data in the character string form is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained by the first client according to the attribute information of the page object of the page;
s304, transcoding the page data in the character string form 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 page data which is sent by the server and is in the form of a character string of the page; transcoding the page data in the character string form to obtain structured page data; and displaying the page according to the structured page data. Therefore, in the page modification process, the server stores the page data in the character string form and sends the page data in the character string form to the second client, other development processes are not required to be carried out by the server, and the development cost can be effectively reduced.
The page display method according to the embodiment of the present invention is described in detail below with reference to fig. 1, 2, and 3.
In the page display method provided by the embodiment of the invention, the first client 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, the page is a navigation menu page and the page objects may include menu options. The navigation menu page is a page including a plurality of menu options for navigation, and a user may enter a sub-page corresponding to a menu option by clicking the menu option in the navigation menu page, or view information corresponding to the menu option, and so on.
The attribute information of the page object may be understood as information about which page object is displayed in the page. For example, description information such as a name of the page object, description information of a Uniform Resource Locator (URL) address corresponding to the page object, display content, display size, display form, display position, and the like of the page object may be included.
In an optional 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 controls may include setup options for individual page objects, such as add, delete, modify, etc. options.
Then, step S101: determining attribute information of the page object may include:
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.
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 and delete the certain page object, and the user may operate an object setting control included in the page management interface according to an actual requirement, and if a page object needs to be added, may click an addition option for the page object, so as to input object setting information for adding the page object based on the object setting control. And after receiving the object setting information input by the user, the first client extracts the attribute information of the page object set by the user according to the object setting information.
S102, acquiring the structured page data corresponding to the page according to the attribute information of the page object.
In an implementation manner of the embodiment of the present invention, structured page data corresponding to attribute information of different page objects may be pre-stored, and when the attribute information of a page object is determined, the structured page data corresponding to the attribute information of the page object is obtained.
In another implementation manner, the 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 using the attribute information of the page object as a parameter, a position where the attribute information of the page object is added may be preset in the preset structured page data template, and after the attribute information of the page object is determined, the attribute information of the page object may be added to the preset structured page data template, so that the 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 "compute", and the description information of the attribute information of the sub-page object "cloud server" included in the structured page data for "compute" and "compute" may specifically be in the following format:
Figure BDA0002317822340000121
Figure BDA0002317822340000131
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 the page data in the character string form.
The transcoding can be performed according to a preset transcoding rule to obtain page data in a character string form, and the page data in the character string form can be understood as page data represented by a character string, namely a character string, such as 'mingchengjisui dizhike'. The preset transcoding rule may be a rule based on different encoding modes. In an optional embodiment of the present invention, the structured page data may be encoded by a symmetric encryption algorithm to obtain the page data in a character string form.
In the above embodiment, the transcoding processing may be performed on the structured data before transcoding to obtain page data in a character string form, and the first client may display the page data in the character string form through one display page, specifically, as shown in fig. 4b, the character string corresponding to the transcoded page data.
And S104, sending the page data in the character string form to the server so that the server sends the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form.
In one implementation, a HyperText Transfer Protocol (HTTP) request carrying the string-form page data may be sent to the server.
In the embodiment of the invention, the first client sends the page data in the character string form to the server, so that the server can send the page data in the character string form to the second client, and the second client displays the page according to the page data in the character string form. Therefore, in the page modification process, the server stores the page data in the character string form and sends the page data in the character string form to the second client, other development processes are not required to be carried out by the server, 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 the page data in the form of the character string is sent to the server, as shown in fig. 4c, the method may further include:
s401, receiving the updating 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 a page object in 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 modifying a display mode and a display position of the page object, and adding display content for the page object, and the like.
In an implementation manner, a user may determine an update requirement of a page according to an actual requirement, and input the update requirement of the page through an object setting control in a page management interface, so that the first client may 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 the page object to be updated according to the updating requirement of the page.
In an implementation manner, 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 a manner of extracting the attribute information of the page object set by the user according to the object setting information.
And S403, updating the structured page data corresponding to the page according to the attribute information of the page object to be updated.
In an implementation manner, 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 a 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 a "NEW" identifier to a "cloud server" of the page object, the newly added identifier information of the attribute information of the page object to be updated may be determined, and on the basis of the corresponding structured data before transcoding in fig. 4a, a piece of data related to 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 forms:
Figure BDA0002317822340000151
the first client may display the updated structured page data through a display page, specifically, as shown in fig. 4d, the updated structured data displayed on the display page.
This allows the "NEW" identifier to be added at the "cloud server" when this data is parsed during the rendering of the structured page data during the display of the page.
S404, transcoding the updated structured page data to obtain updated character string-form page data.
This step is similar to step S103 described above except that the data to be forwarded is different, and may be executed by referring to step S103 described above.
The page data in the form of the updated character string is also a character string, and the difference is only that one or more letters in the character string are added, deleted or modified compared to the page data in the form of the character string before the update.
S405, the updated page data in the character string form is sent to the server, so that the server sends the updated page data in the character string form to the second client side, and the second client side displays the updated page according to the updated page data in the character string form.
This step is similar to the step S104 described above except that the data to be sent to the server is different, and the step S104 may be executed as described above.
In the embodiment of the invention, the page data in the character string form corresponding to the page to be displayed is sent to the server to display the page, the updated page data in the character string form is sent to the server after the page data in the character string form is sent to the server, the server can store the updated page data in the character string form and send the updated page data in the character string form 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, with reference to fig. 2, which may specifically include the following steps:
s201, receiving page data in a character string form.
The page data in the character string form is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained by the first client according to the attribute information of the page object of the page.
In one implementation, an HTTP request carrying page data in the form of a string of characters may be received. 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 character strings, the page data in the form of character strings may be saved, for example, in a database of the server.
S202, receiving a data request of the page 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, according to the page browsing request, sending a data request of the page to the server.
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, the user inputs a web address of a page through the second client and starts a search, and then sends a page browsing request to the second client. The page browsing request may include information such as a page identifier, for example, a page website corresponding to the page. After receiving the page browsing request, the server may send a data request including a page identifier and the like to the server.
S203, according to the data request, the page data in the character string form is sent to the second client side, so that the second client side displays the page according to the page data in the character string form.
In an implementation manner, after receiving the data request, the server parses the data request, may obtain a page identifier corresponding to a page included in the data request, may obtain, through the page identifier, page data in a character string form corresponding to the page, and sends the page data in the character string form to the second client.
Referring to fig. 3, the displaying of the page by the second client according to the page data in the form of the character string may include the steps of:
s303, receiving page data which is sent by the server and is in the form of a character string of the page.
The character string type page data is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained according to the attribute information of the page object of the page.
S304, transcoding the page data in the character string form to obtain structured page data.
The page data in the character string form can be transcoded according to a preset transcoding rule to obtain 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 character string-form page data.
In an implementation manner, the page data in the character string form may be transcoded in a symmetric decoding manner to obtain the structured page data, where the symmetric decoding manner corresponds to an encoding manner adopted when the transcoding processing is performed on the structured page data to obtain the page data in the character string form.
S305, displaying the page according to the structured page data.
In particular, the structured page data may be rendered, i.e., the page may be displayed.
In the embodiment of the invention, the server does not need to store the attribute information of different page objects or the structured page data generated by 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 made by the client, the server does not need to care about the modification, and the client can display the page based on the data in the character string form only by sending the data in the character string form corresponding to the page to the client after receiving the data request corresponding to the page sent by the client. 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 dependence on the server can be reduced.
In an alternative embodiment, after receiving page data in the form of a character string corresponding to a page, as shown in fig. 5, the method may further include:
s501, receiving updated page data in a character string form.
The updated character string type page data 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 sent by the second client.
And S503, sending the updated page data in the character string form 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 character string form.
In the above embodiment, S201 to S203 process the page data in the form of character strings, in the embodiment of the present invention, S501 to S503 process the updated page data in the form of character strings, the processing procedure is similar, in the embodiment, S501 to S503 are similar to S201 to S203 in the above embodiment, and in the embodiment, S501 to S503 are executed by referring to S201 to S203 in the above embodiment.
In the embodiment of the invention, the client can display the updated page based on the updated data in the form of the character string only by sending the updated data in the form of the character string corresponding to the page to the client after the server receives the data request of the updated page corresponding to the page sent by the client. 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 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 may enter a sub-page corresponding to a menu option in the navigation menu page by clicking the menu option, or view information corresponding to the menu option, and the like.
In this embodiment, as shown in fig. 6, the page display method provided in the embodiment of the present invention may include the following steps:
s601, the first client determines the attribute information of the page object.
The page object may include menu options to be displayed in the navigation menu page. The attribute information of the page object may include information about the menu options displayed in the navigation menu page. For example, description information such as a name of the page object, description information of a 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 manner, 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 setup control can be understood as a plurality of navigation menu options. A 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 a 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 a menu on the left side of the console, that is, object setting controls corresponding to menu options, such as "compute", "network", and submenus corresponding to "network", "resilient IP", "load balancing", and "virtual private network". For example, when a corresponding submenu needs to be added to the "calculation" lower layer, the background developer may click the plus sign "+" corresponding to the "calculation", or when a submenu corresponding to the "calculation" lower layer needs to be deleted, the background developer may click the minus sign "-" corresponding to the "calculation", or when a modification needs to be performed with respect to the "calculation", for example, a mark is added to the "calculation", the background developer may click the sign of the pen style corresponding to the "calculation".
Thus, the first client detects different clicks, and determines the 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 the 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-described embodiment, and reference is made to S102 in the above-described embodiment.
S603, the first client side carries out transcoding processing on the structured page data to obtain the page data in the form of character strings.
In this embodiment, this step is similar to S103 in the above-described embodiment, and reference is made to S103 in the above-described embodiment.
S604, the first client sends the page data in the character string form to the server so that the server sends the page data in the character string form to the second client, and the second client displays the navigation menu page according to the page data in the character string form.
In an implementation manner, an HTTP request carrying page data in a character string form corresponding to a navigation menu page may be sent to a server. For example, the background developer clicks a "save" button shown in fig. 7, and when 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 the character string obtained through the transcoding process may be sent to the server.
And after receiving the page data in the character string form, the server stores the page data in the character string form. Because 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 character strings to the server at S604, as shown in fig. 8, the method may further include:
s801, the first client receives the updating requirement of the 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 making modifications to existing menu options, etc.
In an 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 a 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 the attribute information of the page object to be updated according to the updating requirement of the navigation menu page.
And 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 side carries out transcoding processing on the updated structured page data to obtain updated page data in a character string form.
And S805, the first client sends the updated page data in the character string form to the server, so that the server sends the updated page data in the character string form to the second client, and the second client displays the updated navigation menu page according to the updated page data in the character string form.
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, which may specifically include the following steps:
s901, the server receives page data in a character string form corresponding to the navigation menu page.
The page data in the character string form is obtained by transcoding the structured page data corresponding to the navigation menu page by the first client, and the structured page data is obtained by the first client according to the attribute information of the page object of the navigation menu page.
In one implementation, an HTTP request carrying page data in the form of a string of characters may be received. Therefore, the HTTP request can be analyzed to obtain the page data in the character string form corresponding to the navigation menu page.
In an alternative embodiment, after receiving the page data in the form of character strings, the page data in the form of character strings corresponding to the navigation menu page may be stored, for example, the page data in the form of character strings may be stored in a database in the server.
S902, the server receives a data request for navigating the menu page sent by the second client.
Specifically, as shown in fig. 10, the following steps may be included:
and S1001, the second client receives a page browsing request of a user.
And S1002, the second client sends a data request of a navigation 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, the user inputs a web address of a page through the second client and starts a search, and then sends a page browsing request to the second client. The page browsing request may include information such as a page identifier, for example, a page website corresponding to the navigation menu page. After receiving the page browsing request, the server may send a data request including a page identifier and the like to the server.
And S903, the server sends the page data in the character string form 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 character string form.
In an implementation manner, after receiving the data request, the server parses the data request, may obtain a page identifier corresponding to a page included in the data request, may obtain, through the page identifier, page data in a character string form corresponding to the page, 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:
and S1003, the second client receives the page data which is sent by the server and is in the character string form of the navigation menu page.
The page data in the character string form is obtained by transcoding the structured page data corresponding to the navigation menu page by the first client, and the structured page data is obtained according to the attribute information of the page object of the navigation menu page.
And S1004, transcoding the page data in the character string form to obtain structured page data.
The page data in the character string form can be transcoded according to a preset transcoding rule to obtain structured page data. In an implementation manner, the page data in the character string form may be transcoded in a symmetric decoding manner to obtain the structured page data, where the symmetric decoding manner corresponds to an encoding manner adopted when the transcoding processing is performed on the structured page data to obtain the page data in the character string form.
And S1005, displaying the navigation menu page according to the structured page data.
In particular, the structured page data may be rendered, i.e. the 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 made by the client, the server does not need to care about, and only needs to send the data in the character string form 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 character string form. Therefore, the development cost in the process of updating the navigation menu page can be effectively reduced. And the decoupling between the client and the server in the display process of the navigation menu page can be realized, and the dependence on the server can be reduced.
In an alternative embodiment, after receiving page data in the form of a character string corresponding to a navigation menu page, as shown in fig. 11, the method may further include:
s1101, the server receives the updated page data in the form of character strings.
The updated character string type page data 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.
And S1102, receiving a data request for navigating the menu page, which is sent by the second client.
And S1103, sending the updated page data in the character string form to the second client according to the data request, so that the second client displays the updated navigation menu page according to the updated page data in the character string form.
In the above embodiment, S901 to S903 are to process page data in a character string format, in the embodiment of the present invention, S1101 to S1103 are to process updated page data in a character string format, and the processing procedure is similar, in the embodiment, S1101 to S1103 are similar to S901 to S903 in the above embodiment, and in the embodiment, S1101 to S1103 may be executed by referring to S901 to S903 in the above embodiment.
In the embodiment of the invention, the client can display the updated navigation menu page based on the updated data in the character string form only by the server receiving the data request for updating the navigation menu page corresponding to the navigation menu page sent by the client and sending the updated data in the character string form corresponding to the navigation menu page to the client. 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 dependence on the server can be reduced.
In a specific embodiment, the update requirement of the navigation menu page is to add a prompt identifier to a menu option corresponding to a newly developed product. Such as adding a "NEW" identification for the menu option "cloud server".
The background developer may input the object setting information of the "NEW" added 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, where the page management interface may include a navigation menu control corresponding to the menu option "cloud server", so that the first client may 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 updated attribute information of the 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 updated structured page data are transcoded to obtain updated page data in a character string form, the updated page data in the character string form are sent to the server, the server receives the updated page data in the character string form, the updated page data in the character string form are sent to the second client after receiving a data request which is sent by the second client and corresponds to the navigation menu page, the second client receives the page data in the character string form of the navigation menu page and sent by the server, the updated page data in the character string form are transcoded to obtain the updated structured page data, and the updated navigation menu page is displayed 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 present invention, it is only necessary to add, to the determined structured page data, content of whether to add a prompt identifier for the menu option, 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 character string form, and sends the page data in the character string form 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 character string form from the server, decodes the page data in the character string form to obtain corresponding structured page data, and renders the structured page data, so that the navigation menu page including the 'NEW' identifier can be displayed. The page data in the character string form sent to the server is always a character string, so the server does not need to make any change, and the database table structure for storing the page data in the character string form does not need to make any change.
In the related art, in the process of updating a navigation menu page, a client is required to develop aiming at the updating requirement of the navigation menu page, for example, the client corresponding to a 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 updating requirement of the navigation menu page, for example, the server is required to develop corresponding logic codes for the structured page data to store the structured page data. Both the server and the client need to develop new business logic, that is, a developer corresponding to the client needs to cooperate with a developer corresponding to the server. In the related art, the server needs to modify the table structure in the database to store the structured page data corresponding to the update requirements of different navigation menu pages, so that the server is greatly dependent. When the structure of the database table changes, data needs to be cleaned, for example, because the structure of the database table changes, such as a field is added, and the field is not present in the historical data, all the historical data in the database table needs to be supplemented with the value of the newly added field, which is easy to cause bug (bug). 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 a character string form; the page data in the character string form is sent to the server, so that the server stores the page data in the character string form, namely the character string, the server does not need to develop new logic aiming at new structured page data, such as modifying the structure of a database table, and only provides a basic storage function, so that the dependence on the server can be reduced, and 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 apparatus, 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 a page object;
the first transcoding processing module 1303 is configured to transcode the structured page data to obtain page data in a character string form;
the sending module 1304 is configured to send 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.
Optionally, the apparatus further comprises:
a receiving module (not shown in the figure) for receiving the updating 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 updating 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), configured to transcode the updated structured page data to obtain updated page data in a character string form;
and a second sending module (not shown in the figure) configured to send the updated page data in the character string form to the server, so that the server sends the updated page data in the character string form to the second client, and the second client displays the updated page according to the updated page data in the character string form.
Optionally, the apparatus further comprises:
a providing module (not shown in the figure) for providing a page management interface before determining the attribute information of the page object, wherein the page management interface comprises an object setting control;
a first determining module 1301, 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 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.
Corresponding to the above-mentioned page display method applied to the server, an embodiment of the present invention provides a page display apparatus, as shown in fig. 14, applied to the server, which may include:
a first receiving module 1401, configured to receive page data in a character string form; the page data in the character string form is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained by the first client according to the attribute information of the 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 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.
Optionally, the apparatus further comprises:
a second receiving module (not shown in the figure) for receiving the updated page data in the form of the character string after receiving the page data in the form of the character string corresponding to the page; the updated structural page data is obtained by the first client side updating the structural page data corresponding to the page according to the attribute information of the 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) configured to send 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 apparatus, as shown in fig. 15, applied to the second client, 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 the server; the page data in the character string form is obtained by transcoding the structured page data corresponding to the page by the first client, and the structured page data is obtained by the first client according to the attribute information of the page object of the page;
the transcoding processing module 1504 is used for transcoding the page data in the character string form to obtain structured page data;
a display module 1505 is used to display pages based on the structured page data.
Optionally, the transcoding processing module 1504 is specifically configured to perform transcoding processing on the page data in the character string form in a symmetric decoding manner to obtain the structured page data, where the symmetric decoding manner corresponds to an encoding manner adopted when the transcoding processing is performed on the structured page data to obtain the page data in the character string form.
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 suitable for the device and can achieve the same or similar beneficial effects.
An 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; acquiring structured page data corresponding to a page according to the attribute information of the page object; transcoding the structured page data to obtain page data in a character string form; sending page data in the form of character strings to the server 1602;
a server 1602 that receives page data in the form of a character string; receiving a data request of a page sent by the second client 1603; sending the page data in the form of a character string to the second client 1603 according to the data request;
a second client 1603, which receives a page browsing request of a user; sending a data request of the page to the server 1602 according to the page browsing request; receiving page data in a character string form of a page, which is sent by a server 1602; transcoding the page data in the character string form to obtain structured page data; and displaying the page according to the structured page data.
Corresponding to the above-mentioned page display method applied to the first client, the 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 computer programs.
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.
Corresponding to the above-mentioned page display method applied to the server, the 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.
A memory 1803 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.
Corresponding to the above-mentioned page display method applied to the second client, the 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.
A memory 1903 for storing computer programs.
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 in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a 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 processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Corresponding to the above-mentioned page display method applied to the first client, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned method steps applied to the page display method of the first client.
Corresponding to the above-mentioned page display method applied to the server, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the above-mentioned page display method applied to the server.
Corresponding to the above-mentioned page display method applied to the second client, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the above-mentioned page display method applied to the second client.
Corresponding to the above-mentioned page display method applied to the first client, an embodiment of the present invention further provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the above-mentioned method steps applied to the page display method of the first client.
Corresponding to the above-mentioned page display method applied to the server, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the above-mentioned method steps of the page display method applied to the server.
Corresponding to the above-mentioned page display method applied to the second client, an embodiment of the present invention further provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the above-mentioned method steps applied to the page display method of the second client.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, system, electronic device, computer-readable storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A page display method is applied to a first client and comprises the following steps:
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 a character string form;
and sending the page data in the character string form to a server so that the server sends the page data in the character string form to a second client, and the second client displays the page according to the page data in the character string form.
2. The method according to claim 1, wherein after the sending the page data in the form of the character string to a server, the method further comprises:
receiving the updating requirement of the page;
determining attribute information of a page object to be updated according to the updating requirement 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 updated character string-form page data;
and sending the updated page data in the character string form to a server so that the server sends the updated page data in the character string form to a second client, and the second client displays the updated page according to the updated page data in the character string form.
3. 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 of the attribute information of the page object includes:
receiving object setting information input by a user based on the object setting control;
and extracting the attribute information of the page object set by the user according to the object setting information.
4. The method according to claim 1, wherein the obtaining the structured page data corresponding to the page according to the attribute information of the page object comprises:
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.
5. The method of any of claims 1 to 4, wherein the page is a navigation menu page.
6. A page display method is applied to a server and comprises the following steps:
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 sent by a second client;
and sending the page data in the character string form to a second client according to the data request so as to enable the second client to display the page according to the page data in the character string form.
7. The method of claim 6, wherein after receiving page data in a string form corresponding to a page, the method further comprises:
receiving updated page data in a character string form; the updated structural page data corresponding to the page is obtained by the first client side through transcoding processing of the updated structural page data corresponding to the page, and the updated structural page data is obtained by the first client side through updating of the structural page data corresponding to the page according to attribute information of a page object to be updated;
receiving a data request of the page sent by a second client;
and sending the updated page data in the character string form 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 character string form.
8. A page display method is applied to a second client and comprises the following steps:
receiving a page browsing request of a user;
sending a data request of the page to a server according to the page browsing request;
receiving page data in a character string form of the page, which is sent by the server; the character string type page data is obtained by transcoding the structured page data corresponding to the page by the first client, wherein the structured page data is obtained by the first client according to the attribute information of the 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.
9. The method according to claim 8, wherein the 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 in a symmetrical decoding mode to obtain the structured page data, wherein the symmetrical decoding mode corresponds to an encoding mode adopted when transcoding the structured page data to obtain the page data in the character string form.
10. A page display device is applied to a first client and comprises:
the first determining module is used for determining the 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 a character string form;
and the sending module is used for sending the page data in the character string form to a server so that the server sends the page data in the character string form to a second client, and the second client displays the page according to the page data in the character string form.
11. A page display device, applied to a server, includes:
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 sent by a second client;
and the first sending module is used for sending the page data in the character string form to a second client according to the data request so as to enable the second client to display the page according to the page data in the character string form.
12. A page display device applied to a second client comprises:
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 which is sent by the server and is in the form of the character string of the page; the character string type page data is obtained by transcoding the structured page data corresponding to the page by the first client, wherein the structured page data is obtained by the first client according to the attribute information of the page object of the page;
the transcoding processing module is used for transcoding 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.
13. A page display system is characterized by comprising a first client, a server and a second client;
the first client determines the 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 a character string form; sending the page data in the character string form to a server;
the server receives the page data in the character string form; receiving a data request of the page sent by a second client; according to the data request, sending the page data in the character string form to a second client;
the second client receives a page browsing request of a user; sending a data request of the page to a server according to the page browsing request; receiving page data in a character string form of the page, which is 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.
14. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, is configured to perform the method steps of any of the methods of claims 1-5 or any of the methods of claims 6-7 or any of the methods of claims 8-9.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any of the methods of claims 1 to 5 or of any of the methods of claims 6 to 7 or of any of the methods of claims 8 to 9.
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 true CN111078219A (en) 2020-04-28
CN111078219B 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)

Cited By (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 (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050256836A1 (en) * 2004-05-17 2005-11-17 Fujitsu Limited HTML file processing technique
CN101115068A (en) * 2007-07-19 2008-01-30 潘晓梅 Method and system for adjusting web page display contents on client terminal
US20110296528A1 (en) * 2010-05-26 2011-12-01 Tethy Solutions Llc, Dba Automation Anywhere System and method for creating and executing portable software
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
US20160062604A1 (en) * 2014-08-29 2016-03-03 Nuance Communications, Inc. Virtual assistant development system
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
US20190251143A1 (en) * 2017-01-20 2019-08-15 Huawei Technologies Co., Ltd. Web page rendering method and related device
CN110191093A (en) * 2019-04-26 2019-08-30 视联动力信息技术股份有限公司 A kind of variation of style sheet and view networked system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050256836A1 (en) * 2004-05-17 2005-11-17 Fujitsu Limited HTML file processing technique
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
US20110296528A1 (en) * 2010-05-26 2011-12-01 Tethy Solutions Llc, Dba Automation Anywhere System and method for creating and executing portable software
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
US20160062604A1 (en) * 2014-08-29 2016-03-03 Nuance Communications, Inc. Virtual assistant development 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
US20190251143A1 (en) * 2017-01-20 2019-08-15 Huawei Technologies Co., Ltd. Web page rendering method and related device
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技术在网络课件导航菜单改进中的应用", no. 07 *

Cited By (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

Also Published As

Publication number Publication date
CN111078219B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN109947512B (en) Text adaptive display method, device, server and storage medium
CN102541853B (en) Method and device which are capable of obtaining application information by utilizing browser address bar
TWI590157B (en) Compressed serialization of data for communication from a client-side application
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
CN109194714B (en) File pushing method and device, terminal device and storage medium
CN103873918A (en) Picture processing method, device and terminal
JP5309121B2 (en) Information processing method, program, information processing system
US20140280352A1 (en) Processing semi-structured data
CN107515866B (en) Data operation method, device and system
CN112256772A (en) Data service method, device and readable storage medium
JP5830581B1 (en) Input support server, input support method, and input support program
CN111078219B (en) Page display method, device and system, electronic equipment and storage medium
CN103793495B (en) Application message search method and system and application message acquisition methods and system
WO2017143747A1 (en) Network request method and system for network terminal
CN110865834B (en) Application program interface updating method and device, readable storage medium and terminal equipment
CN103544150A (en) Method and system for providing recommendation information for mobile terminal browser
CN104182229A (en) Callback display method and device and callback method and device
KR101637016B1 (en) Method for providing user reaction web page
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium
CN108255898B (en) Page display method and device
US20150193393A1 (en) Dynamic Display of Web Content
CN111367606A (en) Application page display method, device, terminal and medium
CN103793499A (en) Method and device for obtaining application information through address bar of browser
CN112486482A (en) Page display method and device
KR102023999B1 (en) Method and apparatus for generating web pages

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