CN111475757A - Page updating method and device - Google Patents

Page updating method and device Download PDF

Info

Publication number
CN111475757A
CN111475757A CN202010141142.5A CN202010141142A CN111475757A CN 111475757 A CN111475757 A CN 111475757A CN 202010141142 A CN202010141142 A CN 202010141142A CN 111475757 A CN111475757 A CN 111475757A
Authority
CN
China
Prior art keywords
page
client
information
updating
update
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
CN202010141142.5A
Other languages
Chinese (zh)
Other versions
CN111475757B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010141142.5A priority Critical patent/CN111475757B/en
Publication of CN111475757A publication Critical patent/CN111475757A/en
Application granted granted Critical
Publication of CN111475757B publication Critical patent/CN111475757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

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

Abstract

The application discloses a page updating method and a page updating device, which relate to the technical field of data processing in the technical field of computers, wherein the method comprises the following steps: a client acquires an access request of a page; in response to the access request, the client reads the updating information of the locally stored page; the updating information is pushed to the client side by the server side after the server side obtains the updating information; and the client generates and displays a page according to the updating information. Therefore, when the page is updated, on one hand, the client only needs to display the page according to the read local update information, real-time online editing is not needed, and the display efficiency is high; on the other hand, the pre-stored updating information is directly read from the local, real-time interaction with the server side is not needed, and resource consumption is reduced.

Description

Page updating method and device
Technical Field
The present application relates to the field of page display technologies in data processing technologies, and in particular, to a page updating method and apparatus.
Background
With the development of computer technology, various network platforms are layered endlessly, and each network platform generally provides a large number of description pages, such as description pages of service agreements, interface documents, rights and interests descriptions, common problems, legal agreements, activity rules and the like, on the network platform in order to instruct the user to operate.
In the related art, when a page is updated, there are two ways, the first way is: the replacement of the updated content is completed by modifying the code content and deploying online at the front end each time, and the second mode is as follows: all contents of the page are stored in the database by the server, and when a user clicks the page each time, the front end initiates a network request to the server to acquire the contents of the page, and the contents are rendered and displayed after the dynamic data are acquired.
However, in the first of the two ways, the updating of the page content is completely completed by the front-end research and development and online, the page needing to be updated for many times cannot be maintained in time, the front-end research and development manpower is continuously occupied, and the cost of online for many times is high. In the second mode, the user can increase additional network overhead and loading rendering time once when accessing the page, and the updating frequency of the document description page is generally about the level of days, so that the document description page is not suitable for acquiring data from the server side every time of accessing, and machine resources are wasted.
Disclosure of Invention
A first objective of the present application is to provide a page updating method.
A second objective of the present application is to provide a page updating method.
A third objective of the present application is to provide a page update apparatus.
A fourth object of the present application is to provide a page updating apparatus.
A fifth object of the present application is to propose a computer device.
A sixth object of the present application is to propose a non-transitory computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present application provides a page updating method, including: a client acquires an access request of a page; in response to the access request, the client reads the locally stored update information of the page; the update information is pushed to the client side by the server side after the server side acquires the update information; and the client generates and displays the page according to the updating information.
In order to achieve the above object, an embodiment of a second aspect of the present application provides a page updating method, including: acquiring updating information of a page; pushing the update information to each client; the updating information is used for being stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
To achieve the above object, a third aspect of the present application provides a page updating apparatus, including: the first acquisition module is used for acquiring an access request of a page; the reading module is used for responding to the access request and reading the locally stored updating information of the page; the update information is pushed to the client side by the server side after the server side acquires the update information; and the processing module is used for generating and displaying the page according to the updating information.
To achieve the above object, a fourth aspect of the present application provides a page updating apparatus, including: the second acquisition module is used for acquiring the updating information of the page; the pushing module is used for pushing the updating information to each client; the updating information is used for being stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
To achieve the above object, an embodiment of a fifth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the page updating method as described in the first aspect or the second aspect.
To achieve the above object, a fourth aspect of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the page updating method described in the above first aspect or the second aspect.
One embodiment in the above application has the following advantages or benefits:
the method comprises the steps that after update information of a page is obtained, a server side pushes the update information to each client side, then the client sides store the update information in the local, after the client sides obtain access requests of the page, the client sides respond to the access requests, read the update information of the locally stored page, and then the client sides generate and display the page according to the update information. Therefore, when the page is updated, on one hand, the client only needs to display the page according to the read local update information, real-time online editing is not needed, and the display efficiency is high; on the other hand, the pre-stored updating information is directly read from the local, real-time interaction with the server side is not needed, and resource consumption is reduced.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flow diagram of a page update method according to one embodiment of the present application;
FIG. 2 is a flow diagram of a page update method according to another embodiment of the present application;
FIG. 3 is a flow diagram of a page update method according to yet another embodiment of the present application;
FIG. 4 is a flow diagram of a page update method according to yet another embodiment of the present application;
FIG. 5 is a flow diagram of a page update method according to yet another embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a process flow of a page update process at a server according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a server-side processing logic relationship, according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a page update apparatus according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a page update apparatus according to another embodiment of the present application; and
FIG. 10 is a block diagram of a computer device for implementing the page generation method of the embodiments of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The page updating method and apparatus according to the embodiments of the present application are described below with reference to the drawings. The page in the embodiment of the present application includes an explanatory page and the like, which mainly includes contents with more pure characters and needs to be updated regularly or irregularly.
In order to solve the technical problems mentioned in the background art, the application provides an optimized page updating method, and in the method, a new page updating mode is established under the condition that a plurality of document description pages exist in a network platform with service properties, so that the research and development labor cost is reduced, and the maintenance efficiency of the pages is improved.
The optimization of the method is embodied on both the client side and the server side, and in order to more fully describe the page updating method according to the embodiment of the present application, the following description is first focused on the client side.
Specifically, as shown in fig. 1, a flowchart of a page updating method according to an embodiment of the present application is shown in fig. 1, where the method includes:
step 101, a client acquires an access request of a page.
The client may be any computer device with a page display screen, and the page access request may be triggered by a user clicking a corresponding page entry, or by the user inputting a corresponding operation track, etc.
Step 102, in response to an access request, a client reads update information of a locally stored page; the update information is pushed to the client by the server after the server acquires the update information.
It can be understood that, in the application, the server side pushes the update information to the client side in advance, and the client side stores the update information of the corresponding page locally, so that the client side and the server side do not need to perform real-time information interaction when the subsequent page is displayed.
In an embodiment of the application, before responding to an access request of a user, login verification may be performed on the access request of the user, for example, a camera is opened, face information of the user is collected, whether the user is an owner user is determined, or login account information of the user is acquired, and whether the login account information of the user has a right to open a corresponding page is determined. And only after the user passes the login authentication, responding to the access request of the user.
And 103, generating and displaying a page by the client according to the updating information.
Specifically, the client generates and displays the page directly according to the stored update information, so that data interaction with the server is avoided when the client accesses the server every time, and the page display efficiency is improved. The update information of the page may include an update portion of the corresponding page, or may include whole information after the corresponding page is updated. When the update information includes the updated portion of the corresponding page, the updated information may be highlighted, such as being bolded or yellow-marked, when the page is displayed.
In an actual implementation process, the types of the page may include multiple types, for example, the types may include a paging type and a single-page type, where the paging type refers to that the corresponding page includes multiple pages, the multiple pages can be page-turned and read, and the single-page type refers to that the corresponding page only includes one page, and in order to improve the display efficiency of the page, the manner of displaying different page types is different, which is specifically described as follows:
it should be noted that, in different application scenarios, the page types of the current page are determined in different ways, and as a possible implementation manner, when responding to a page access request, a UR L address of the page is provided, where the UR L address records identification information of a corresponding page type, where it is emphasized that the front end needs to use hash routing to process a conflict with a file mapping path, for example, if the address of accessing a server document is www.baijiahao.baidu.com/docs, where docs points to index.
In the application, acts are used for an address connected to a server side, and the acts have a front-end route, so that a UR L of a corresponding user is generated, information carried by the UR L address of the user is used for indicating a page type and the like, and an access path is not located to the server side.
Of course, in an embodiment of the present application, because a part of pages have a reading right, if there is no legal identity, the user may also check the access right before accessing the corresponding UR L address, specifically, according to the information of the login user carried in the access request, check to determine that the login user has the right to access the page, where the information of the login user may be a login account of the user, and the like, and if the login account of the user matches a pre-stored legal account, the user is considered to have the right to access the page.
For example, if the page is a paging type, and includes multiple pages, as shown in fig. 2, the step 103 includes:
step 201, the client analyzes the update information by using a paging type analysis strategy to obtain an update directory and a plurality of paged page contents.
Specifically, because the composition of the paging type pages is relatively complex, in an embodiment of the present application, different directory structures are constructed in advance for the paging type pages, the directory structures are divided into multiple levels of directories according to a hierarchical relationship, each level has at least one display page, and further, the client analyzes the update information by using a paging type analysis policy to obtain the update directory and the page contents of multiple pages.
In this embodiment, the client may obtain the UR L address of the page from the access request, where the UR L address includes identification information of a page type (which may be a numeric code or a letter), and the client determines that the page is a paged type according to the page type recorded in the UR L address, and further obtains a resolution policy corresponding to the paged type.
In this embodiment, the UR L address may further include a recorded page topic, where the page topic may be a name of a page, and the page topic corresponds to the page uniquely, where a corresponding relationship between the page topic and page update information may be pre-constructed, and then the page update information is searched according to the corresponding relationship, for example, the corresponding relationship is stored locally, and the corresponding page update information is obtained according to the corresponding relationship.
In step 202, the client generates each page meeting the hierarchical relationship according to the hierarchical relationship indicated by the updated directory.
Specifically, the client generates each page conforming to the hierarchical relationship according to the hierarchical relationship indicated by the updated directory. The page content can be provided with a hierarchy identifier to which the page content belongs, the content of each hierarchy is divided according to the hierarchy identifier, and then each page is generated according to the hierarchy contained in each page and the page content corresponding to the hierarchy.
In step 203, the client loads and displays the corresponding page content in each page.
Specifically, the client loads the corresponding page content in each page for display, wherein in order to further improve the viewing experience of the user, the page content of the pages may be sequentially loaded, and after the page content of the first page is loaded, the corresponding page content is displayed, and the page content of the second page is loaded at the same time, thereby improving the page display efficiency.
In the second example, if the page is a single-page type, as shown in fig. 3, the step 103 includes:
step 301, the client determines that the page is a single page type according to the page type recorded in the UR L address.
Specifically, the page type may be determined to be a single page type according to the identification information of the page type in the UR L address.
Step 302, obtaining a single-page type corresponding analysis strategy.
Specifically, the single-page analysis policy is obtained, a corresponding relationship between the page type and the analysis policy may be stored in advance, and the corresponding analysis policy is determined according to the corresponding relationship.
And step 303, analyzing the updated information by using an analysis strategy corresponding to the single page type to obtain the page content of the single page.
And step 304, generating and displaying the page according to the page content of the single page.
Specifically, after the analysis strategy corresponding to the single page type is obtained, the update information is analyzed to obtain the page content of the single page, and then the page is generated and displayed according to the page content of the single page.
Different from the multi-page, the single-page has less content, so that the updated content in the single-page can be directly acquired without acquiring the page structure of the directory, the page position corresponding to the updated content is determined, and the content in the page position is updated in the single-page web page model to generate the page content of the single-page. After the updated content is obtained, the formatted adaptation processing can be performed on the updated information according to the display requirement of the current page, and then the corresponding information is injected into the template.
For more detailed description of the page updating method according to the embodiment of the present application, the following description is made in conjunction with a specific application scenario:
in the scene, the identity of the page access is verified for the user according to the login account information of the user.
As shown in fig. 4, after acquiring a page access request, first determining whether a page type of a page that a user wants to access requires user login for authentication, if so, performing login authentication, jumping to the login page for login, if the authentication is successful, acquiring an address of an explanatory page of a document, parsing the address, if the parsing is failed, performing error processing, such as sending an error report, and if the parsing is successful, entering a corresponding parsing mode, acquiring related information of the page, and the like, and certainly, when acquiring the related information, in order to avoid illegal terminal tampering with the content, checking the related information, such as checking whether the corresponding page type is a predetermined number of bits, and the like, and whether the page type is a predetermined expression, and the like, and after the checking is successful, determining the page type according to the related information, and if the page type is a predetermined type, acquiring corresponding updating information.
And if the page type does not need to be logged in by the user, directly acquiring the update information to render the page.
The following description focuses on the server side.
Fig. 5 is a flowchart of a page updating method according to still another embodiment of the present application, as shown in fig. 5, the method includes:
step 401, obtaining the update information of the page.
Specifically, the update information of the page may be updated by a related technician when the product service changes, and the related technician may input the update information of the page in an editing interface of a server or the like.
In order to facilitate management, a server provides a document platform for inputting update information of a page, and with reference to a processing flow of the document platform shown in fig. 6 (a document in fig. 6 is corresponding page content), the document platform can manage the page in a form of a relational data table, and the document platform includes a theme table, a directory table, a version table and a record table, wherein the theme table is responsible for recording information of different pages, a template number represents a page template selected by operating in a background, and a start-up state represents an online state of the page; the directory table is used for recording directory hierarchy data of the page selection paging template, and the parent directory sequence number represents the affiliated relationship of the multilevel directory; the version table is used for recording the document content of each modified version of each single page description page, the content address is a file link for storing rich text content, and the enabled state represents the effective state of the content version; the record table is responsible for recording operation records of the operator on each theme in the background, including creation/modification/activation/deletion and the like.
Based on this, when the update information includes the page content, and when the update information of the page is obtained, a version table may be generated in response to a user editing operation of the page, where the version table is used to indicate that the page is in the enabled state version, and download the rich text content according to an address of the rich text content included in the enabled state version, and further generate a file of the update information of the page according to the rich text content.
In an embodiment of the application, a page theme of a page is determined according to a title input by a user editing operation, wherein the page theme corresponds to the title one to one, the title can be a letter or a number, and the like, and further, the page theme is written into a theme table, a page template selected by the user editing operation is written into the theme table, and an editing interface is displayed. After the theme table is generated according to the page theme, if the page template selected by the user editing operation is of a paging type, a directory structure is generated according to the hierarchical relationship among a plurality of pagings selected by the user editing operation, and the directory structure and the sequence number of the page theme in the theme table are recorded in the directory table.
For example, if a paging template is selected, a directory structure needs to be created, and the server side writes the subject sequence number and the parent directory sequence number into a directory table together for retrieval during reading. And after a single-page template is selected or the catalog is created, the page with the created version can be entered, according to the template sequence number selected by the corresponding theme, the document platform management end can provide a markdown editor to facilitate operation and filling, and provide the same analytic style as that of the display end for a user to synchronously preview the final effect.
The method comprises the steps of obtaining an enabled state version according to content input in an editing interface, and generating a version table corresponding to page topics in a topic table according to the enabled state version. The edited updating information is subjected to front-end formatting analysis, transmitted to a server in the form of a rich text string template, stored in the server to obtain a link of a content address, and then written into a version table by the server for retrieval during reading and written into a record table by operators who operate the version table. And then, the server side can realize the uplink and push of the updated information.
In this embodiment, the record table may also be generated according to the user information for performing the user editing operation and the sequence number of the page theme in the theme table.
In another embodiment of the present application, the enabling status version may also be encoded to obtain rich text content, the rich text content is stored in the resource server to obtain a storage address on the resource server, and the version table is generated according to the storage address on the resource server and the sequence number of the page theme in the theme table.
As mentioned above, when the page is of the multi-page type, the update is performed according to the directory information, and therefore, the update information further includes the update directory, in this embodiment, if the page is of the paging type including multiple pages, the directory structure of the page is read from the directory table, so as to query the level in the directory structure for the page with the enabled version, and generate the update directory of the page according to the queried level; the updating directory is used for indicating that the hierarchical relation between the paging with the enabled state version exists, and for the file for recording the file and the page content of the updating directory, the storage address of the corresponding file is written into the distribution table.
As shown in fig. 6 and 7, the relational data table for data distribution dependency corresponding to the document platform includes the above-mentioned distribution table, and the distribution table is responsible for recording a file directory to be pushed by a single distribution task.
Step 402, pushing update information to each client; the updating information is stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
Specifically, the update information is pushed to a client; the updating information is stored locally in each client, so that when an access request of the page is obtained, the page is generated and displayed according to the updating information, and once the page is updated, the corresponding updating information is allocated to the local storage of the client, so that when the page is requested, the local updating information can be directly read for display, data interaction with a server is not needed, and the page displaying efficiency is improved.
As mentioned above, the server may perform data distribution according to the distribution table, and when the distribution table is executed specifically, when there is written update information in the distribution table, the server invokes the distribution script, executes the distribution script to traverse the clients recorded in the task table, and sequentially executes a pre-command and a post-command in the task table for each client, where the pre-command is used to create a temporary directory and store the update information in the temporary directory, and the post-command is used to copy the update information in the temporary directory to a target location; the target location is an instance and/or directory agreed with each client.
It can also be understood that when the delivery table monitors that new data is created, the delivery script is called, the delivery script traverses the machine list under the corresponding task number, the prepositive command is executed to create a temporary directory for receiving the delivered files, then the files delivered this time are deployed into the directory, the postpositive command is executed to copy the files to directory positions appointed by each instance and the front end, and the temporary directory is deleted.
Therefore, the static description page is realized through the solution of version control and distribution, only an operator needs to complete the maintenance work of the document, the work of front-end research and development is effectively reduced, the time cost and the labor cost of multiple online operations are reduced, the updating of the document content can be completed at the minute level, meanwhile, due to the adoption of the mode of loading the local file rendering, the time consumed by a user for accessing the page to the network is reduced, the content which the user wants to read can be displayed at a higher loading speed, the user experience is better improved, and the tile is added for the modeling of brand images.
To sum up, according to the page updating method of the embodiment of the application, after the update information of the page is acquired, the server side pushes the update information to each client side, then the client side stores the update information locally, after the client side acquires the access request of the page, the client side responds to the access request, reads the update information of the locally stored page, and then the client side generates and displays the page according to the update information. Therefore, when the page is updated, on one hand, the client only needs to display the page according to the read local update information, real-time online editing is not needed, and the display efficiency is high; on the other hand, the pre-stored updating information is directly read from the local, real-time interaction with the server side is not needed, and resource consumption is reduced.
In order to implement the foregoing embodiment, the present application further provides a page generating apparatus, fig. 8 is a schematic structural diagram of a page updating apparatus according to an embodiment of the present application, and as shown in fig. 8, the page updating apparatus includes: the device comprises a first obtaining module 110, a reading module 120 and a processing module 130, wherein the first obtaining module 110 is used for obtaining an access request of a page;
a reading module 120, configured to read update information of a locally stored page in response to an access request; the updating information is pushed to the client side by the server side after the server side obtains the updating information;
and the processing module 130 is configured to generate and display a page according to the update information.
In order to implement the foregoing embodiment, the present application further provides a page generating apparatus, fig. 9 is a schematic structural diagram of a page updating apparatus according to an embodiment of the present application, and as shown in fig. 9, the page updating apparatus includes: a second obtaining module 210, a pushing module 220, wherein,
a second obtaining module 210, configured to obtain update information of a page;
the pushing module 220 is configured to push update information to each client; the updating information is stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
It should be noted that the foregoing explanation of the page updating method is also applicable to the page updating apparatus in the embodiment of the present application, and the implementation principle thereof is similar, and is not repeated herein.
According to an embodiment of the present application, a computer device and a readable storage medium are also provided.
Fig. 10 is a block diagram of a computer device according to the page updating method of the embodiment of the present application. Computer devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The computer device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 10, the computer apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the computer device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple computer devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 10 illustrates an example of a processor 701.
The memory 702 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the methods provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the page update method provided herein.
Memory 702, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the page update methods in embodiments of the present application. The processor 701 executes various functional applications of the server and data processing, i.e., a method of implementing page update in the above-described method embodiments, by executing non-transitory software programs, instructions, and modules stored in the memory 702.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to a computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The computer device performing the page update method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 10 illustrates an example of a connection by a bus.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of a computer device, such as a touch screen, keypad, mouse, track pad, touch pad, pointing stick, one or more mouse buttons, track ball, joystick, etc. the output device 704 may include a display device, auxiliary lighting (e.g., L ED), and tactile feedback (e.g., vibration motor), etc.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable logic devices (P L D)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal.
The systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or L CD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer for providing interaction with the user.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., AN application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with AN implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
In order to implement the above embodiments, the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the page update method as described in the foregoing embodiments.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (18)

1. A page updating method, characterized in that the method comprises:
a client acquires an access request of a page;
in response to the access request, the client reads the locally stored update information of the page; the update information is pushed to the client side by the server side after the server side acquires the update information;
and the client generates and displays the page according to the updating information.
2. The page updating method according to claim 1, wherein the page is of a paged type including a plurality of pages; the client generates and displays the page according to the update information, and the method comprises the following steps:
the client analyzes the updating information by adopting the paging type analysis strategy to obtain an updating directory and a plurality of paged page contents;
the client generates each page according with the hierarchical relationship indicated by the updated directory according to the hierarchical relationship;
and the client loads and displays the corresponding page content in each page.
3. The page updating method according to claim 2, wherein before the client analyzes the update information by using the paging-type analysis policy to obtain the update directory and the page content, the method further comprises:
the client acquires the UR L address of the page from the access request;
the client determines that the page is a paging type according to the page type recorded in the UR L address;
and the client acquires the analysis strategy corresponding to the paging type.
4. The page updating method according to claim 3, wherein after the client obtains the UR L address of the page from the access request, the method further comprises:
and the client side inquires and obtains the update information of the page according to the page subject recorded in the UR L address.
5. The page updating method according to claim 3, wherein after the client obtains the UR L address of the page from the access request, the method further comprises:
the client determines that the page is a single page type according to the page type recorded in the UR L address;
acquiring the single-page type corresponding analysis strategy;
analyzing the updated information by adopting an analysis strategy corresponding to the single page type to obtain the page content of the single page;
and generating and displaying the page according to the page content of the single page.
6. The page updating method according to claim 4, wherein before the client queries the page subject recorded in the UR L address to obtain the update information of the page, the method further comprises:
and checking to determine that the login user has the right to access the page according to the information of the login user carried in the access request.
7. A page updating method is characterized in that the method is executed by a server side, and the method comprises the following steps:
acquiring updating information of a page;
pushing the update information to each client; the updating information is used for being stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
8. The page updating method according to claim 7, wherein the update information includes page content; the acquiring of the update information of the page includes:
responding to the user editing operation on the page, and generating a version table; the version table is used for indicating that the page is in an enabled state version;
downloading the rich text content according to the address of the rich text content contained in the version in the enabled state;
and generating a file of page content according to the rich text content.
9. The page updating method according to claim 8, wherein the update information further includes an update directory; after the page is determined to be in the enabled state version in response to the update operation on the page, the method further comprises:
if the page is a paging type comprising a plurality of pages, reading a directory structure of the page from a directory table to inquire the level of the page in the directory structure for the page with an enabled state version;
generating an update catalog of the page according to the inquired hierarchy; wherein the update directory is used for indicating that a hierarchical relationship between the pages with enabled state versions exists;
and writing the storage address of the corresponding file into a distribution table for the file for recording the updated directory and the page content.
10. The page updating method according to claim 9, wherein the pushing the update information to each client comprises:
when the written update information exists in the distribution table, a distribution script is called;
executing the distribution script to traverse the clients recorded in the task table, and sequentially executing the preposed command and the postpositional command in the task table for each client;
the prepositive command is used for creating a temporary directory and storing the updating information into the temporary directory;
the post command is used for copying the update information under the temporary directory to a target position; the target location is an instance and/or a directory agreed with each client.
11. The page updating method according to claim 8, wherein generating a version table in response to a user editing operation on the page comprises:
determining a page theme of the page according to the title input by the user editing operation;
writing the page theme into a theme table;
displaying an editing interface according to the page template selected by the user editing operation;
obtaining an enabled state version according to the content input in the editing interface;
and generating a version table corresponding to the page theme in the theme table according to the enabled state version.
12. The page updating method according to claim 11, wherein after generating a topic table according to the page topic, the method further comprises:
if the page template selected by the user editing operation is of a paging type, generating a directory structure according to the hierarchical relation among a plurality of pages selected by the user editing operation;
and recording the sequence numbers of the directory structure and the page topics in the topic table to a directory table.
13. The page updating method according to claim 11, wherein after determining a page subject of the page according to the title input by the user editing operation, the method further comprises:
and generating a record table according to the user information for executing the user editing operation and the sequence number of the page theme in the theme table.
14. The page updating method according to claim 11, wherein generating a version table corresponding to the page theme in the theme table according to the enabled status version comprises:
coding the enabled state version to obtain rich text content;
storing the rich text content to a resource server to obtain a storage address on the resource server;
and generating the version table according to the storage address on the resource server and the sequence number of the page theme in the theme table.
15. A page update apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring an access request of a page;
the reading module is used for responding to the access request and reading the locally stored updating information of the page; the update information is pushed to the client side by the server side after the server side acquires the update information;
and the processing module is used for generating and displaying the page according to the updating information.
16. A page update apparatus, characterized in that the apparatus comprises:
the second acquisition module is used for acquiring the updating information of the page;
the pushing module is used for pushing the updating information to each client; the updating information is used for being stored locally in each client, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the page update method as claimed in any one of claims 1 to 6 or implementing the page update method as claimed in any one of claims 7 to 14 when executing the program.
18. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the page update method according to any one of claims 1 to 6 or implementing the page update method according to any one of claims 7 to 14.
CN202010141142.5A 2020-03-03 2020-03-03 Page updating method and device Active CN111475757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010141142.5A CN111475757B (en) 2020-03-03 2020-03-03 Page updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010141142.5A CN111475757B (en) 2020-03-03 2020-03-03 Page updating method and device

Publications (2)

Publication Number Publication Date
CN111475757A true CN111475757A (en) 2020-07-31
CN111475757B CN111475757B (en) 2023-04-07

Family

ID=71747568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010141142.5A Active CN111475757B (en) 2020-03-03 2020-03-03 Page updating method and device

Country Status (1)

Country Link
CN (1) CN111475757B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035722A (en) * 2020-08-04 2020-12-04 北京启明星辰信息安全技术有限公司 Method and device for extracting dynamic webpage information and computer readable storage medium
CN112185522A (en) * 2020-09-27 2021-01-05 上海联影医疗科技股份有限公司 Information processing method and device and terminal
CN112214671A (en) * 2020-10-09 2021-01-12 百度国际科技(深圳)有限公司 Front-end page generation method, target user determination method, device and medium
CN112286545A (en) * 2020-09-21 2021-01-29 长沙市到家悠享网络科技有限公司 Data updating method, device, equipment and storage medium
CN112306972A (en) * 2020-11-02 2021-02-02 西安博康硕达网络科技有限公司 File generation method and device based on cloud storage
CN112799663A (en) * 2021-01-22 2021-05-14 京东方科技集团股份有限公司 Page display method and device, computer readable storage medium and electronic equipment
CN112905944A (en) * 2021-04-06 2021-06-04 成都新希望金融信息有限公司 Page online dynamic generation method and device, electronic equipment and readable storage medium
CN113010224A (en) * 2021-03-03 2021-06-22 南方电网数字电网研究院有限公司 Front-end micro-service method, device, computer equipment and storage medium
CN113221045A (en) * 2021-06-07 2021-08-06 京东科技控股股份有限公司 Display method, display system and storage medium for credit card application webpage
CN113268261A (en) * 2021-07-16 2021-08-17 北京乐学帮网络技术有限公司 Page content display method and device and electronic equipment
CN113590913A (en) * 2021-06-17 2021-11-02 青岛海尔科技有限公司 Data resource display method and device, storage medium and electronic device
CN113672225A (en) * 2021-08-24 2021-11-19 网易(杭州)网络有限公司 User interface processing method, device, equipment and storage medium
CN113766031A (en) * 2021-09-13 2021-12-07 杭州安恒信息技术股份有限公司 Method and device for storing note resources and related equipment
CN114781347A (en) * 2022-06-21 2022-07-22 飞狐信息技术(天津)有限公司 File processing method and system
CN115277455A (en) * 2022-05-26 2022-11-01 深圳市世强元件网络有限公司 Method and device for guiding update of application component
CN117075900A (en) * 2023-08-21 2023-11-17 北京饼干科技有限公司 Method and system for generating h5 page content based on AI

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237350A1 (en) * 2013-02-21 2014-08-21 Atlassian Pty Ltd Automatically generating column layouts in electronic documents
US9953011B1 (en) * 2013-09-26 2018-04-24 Amazon Technologies, Inc. Dynamically paginated user interface
CN109634493A (en) * 2018-12-12 2019-04-16 北京微播视界科技有限公司 Display processing method, device and the electronic equipment of the paging page
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237350A1 (en) * 2013-02-21 2014-08-21 Atlassian Pty Ltd Automatically generating column layouts in electronic documents
US9953011B1 (en) * 2013-09-26 2018-04-24 Amazon Technologies, Inc. Dynamically paginated user interface
CN109634493A (en) * 2018-12-12 2019-04-16 北京微播视界科技有限公司 Display processing method, device and the electronic equipment of the paging page
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张少应等: "基于Java-Web的分页技术研究", 《辽宁农业职业技术学院学报》 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035722A (en) * 2020-08-04 2020-12-04 北京启明星辰信息安全技术有限公司 Method and device for extracting dynamic webpage information and computer readable storage medium
CN112035722B (en) * 2020-08-04 2023-10-13 北京启明星辰信息安全技术有限公司 Method, device and computer readable storage medium for extracting dynamic webpage information
CN112286545A (en) * 2020-09-21 2021-01-29 长沙市到家悠享网络科技有限公司 Data updating method, device, equipment and storage medium
CN112185522A (en) * 2020-09-27 2021-01-05 上海联影医疗科技股份有限公司 Information processing method and device and terminal
CN112214671A (en) * 2020-10-09 2021-01-12 百度国际科技(深圳)有限公司 Front-end page generation method, target user determination method, device and medium
CN112306972A (en) * 2020-11-02 2021-02-02 西安博康硕达网络科技有限公司 File generation method and device based on cloud storage
CN112799663A (en) * 2021-01-22 2021-05-14 京东方科技集团股份有限公司 Page display method and device, computer readable storage medium and electronic equipment
CN113010224A (en) * 2021-03-03 2021-06-22 南方电网数字电网研究院有限公司 Front-end micro-service method, device, computer equipment and storage medium
CN113010224B (en) * 2021-03-03 2024-01-30 南方电网数字平台科技(广东)有限公司 Front-end micro-servitization method, front-end micro-servitization device, computer equipment and storage medium
CN112905944A (en) * 2021-04-06 2021-06-04 成都新希望金融信息有限公司 Page online dynamic generation method and device, electronic equipment and readable storage medium
CN113221045A (en) * 2021-06-07 2021-08-06 京东科技控股股份有限公司 Display method, display system and storage medium for credit card application webpage
CN113590913B (en) * 2021-06-17 2023-06-16 青岛海尔科技有限公司 Data resource display method and device, storage medium and electronic device
CN113590913A (en) * 2021-06-17 2021-11-02 青岛海尔科技有限公司 Data resource display method and device, storage medium and electronic device
CN113268261B (en) * 2021-07-16 2022-05-10 北京乐学帮网络技术有限公司 Page content display method and device and electronic equipment
CN113268261A (en) * 2021-07-16 2021-08-17 北京乐学帮网络技术有限公司 Page content display method and device and electronic equipment
CN113672225A (en) * 2021-08-24 2021-11-19 网易(杭州)网络有限公司 User interface processing method, device, equipment and storage medium
CN113672225B (en) * 2021-08-24 2023-08-22 网易(杭州)网络有限公司 User interface processing method, device, equipment and storage medium
CN113766031A (en) * 2021-09-13 2021-12-07 杭州安恒信息技术股份有限公司 Method and device for storing note resources and related equipment
CN113766031B (en) * 2021-09-13 2023-04-28 杭州安恒信息技术股份有限公司 Method and device for storing note resources and related equipment
CN115277455A (en) * 2022-05-26 2022-11-01 深圳市世强元件网络有限公司 Method and device for guiding update of application component
CN114781347A (en) * 2022-06-21 2022-07-22 飞狐信息技术(天津)有限公司 File processing method and system
CN114781347B (en) * 2022-06-21 2022-09-20 飞狐信息技术(天津)有限公司 File processing method and system
CN117075900A (en) * 2023-08-21 2023-11-17 北京饼干科技有限公司 Method and system for generating h5 page content based on AI
CN117075900B (en) * 2023-08-21 2024-05-14 北京饼干科技有限公司 Method and system for generating h5 page content based on AI

Also Published As

Publication number Publication date
CN111475757B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111475757B (en) Page updating method and device
US10225363B2 (en) Methods and systems for providing a consistent profile to overlapping user sessions
CA2802739C (en) System and method for syndicating dynamic content for online publication
US8516366B2 (en) Extensible content service for attributing user-generated content to authored content providers
US20150120661A1 (en) System and Method for Generating Digital Content
US20120226776A1 (en) System and Methods for Facilitating the Synchronization of Data
CN112632919B (en) Document editing method and device, computer equipment and storage medium
JP2014532950A (en) Document collaboration
EP2972827B1 (en) Collaborative editing
US20090031004A1 (en) Techniques for sharing content between portals
CN107710189B (en) Multimodal sharing of content between documents
US20190073424A1 (en) Cloud-native documents integrated with legacy tools
RU2691834C1 (en) Method of managing web site data
US9778919B2 (en) Dual context interaction with a content object for facilitating content creation and software development
US20080052412A1 (en) Distributed portel system, content page creation server and recording medium
US11526367B1 (en) Systems and methods for translation of a digital document to an equivalent interactive user interface
Kohler Atlassian confluence 5 essentials
KR100846204B1 (en) Web memo management system
US20030217334A1 (en) Physical data blending system for updating live presentation documents
CN116382596B (en) Space-time big data storage method and system based on distributed technology
CN113535094A (en) Cross-platform client implementation method based on distributed storage
KR20220102896A (en) Method and device for ai image management solution convergence
Reisinger et al. Evaluation of Content Management Systems
WO2014074104A1 (en) Supporting scalable fonts

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