CN111475757B - Page updating method and device - Google Patents
Page updating method and device Download PDFInfo
- Publication number
- CN111475757B CN111475757B CN202010141142.5A CN202010141142A CN111475757B CN 111475757 B CN111475757 B CN 111475757B CN 202010141142 A CN202010141142 A CN 202010141142A CN 111475757 B CN111475757 B CN 111475757B
- Authority
- CN
- China
- Prior art keywords
- page
- client
- updating
- information
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access 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 without real-time online editing, 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 a server end is not needed, and the consumption of resources is reduced.
Description
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 performing online deployment 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 server side acquires the update information and then pushes the update information to the client side; 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 stored locally in each client, so that when the access request of the page is acquired, 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, where the computer program is executed by a processor to implement the page updating method described in the above first aspect or 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 to be considered limiting of 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 to assist in understanding, 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, and the method includes:
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, or the like.
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 part 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 manner of determining the page type of the current page is different, and as a possible implementation manner, when responding to a page access request, a URL address of the page is provided, where the URL 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 an address of accessing a server document is www.baijiaha.baidu.com/docs, where docs points to index.html file in a docs folder at the server end, and if the address changes to www.baijiaha.baidu.com/docs/abc, the abc file in the docs folder is searched, even if a common address corresponds to the file mapping path, the pointed access path at the server end is used for communicating with the server.
In the application, a contact is used for an address connected to a server, the contact has a front-end route, so as to generate a URL of a corresponding user, information carried by the URL address of the user is used for indicating a page type and the like, and an access path is not located to the server.
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 URL 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:
Specifically, because the composition of the paged pages is complex, in an embodiment of the present application, different directory structures are constructed in advance for the paged 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 then the client analyzes the update information by using a paged analysis policy to obtain the update directory and the page contents of multiple pages.
In this embodiment, the client may obtain a URL address of the page from the access request, where the URL 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 paging type according to the page type recorded in the URL address, and further obtains an analysis policy corresponding to the paging type.
In this embodiment, the URL 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, according to the corresponding relationship, the page update information is searched, for example, the corresponding relationship is stored locally, and according to the corresponding relationship, update information of a corresponding page is obtained.
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 update 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:
Specifically, the page type may be determined to be a single page type according to the identification information of the page type in the URL address.
Specifically, the single-page type analysis policy is obtained, the correspondence between the page type and the analysis policy may be stored in advance, and the corresponding analysis policy may be determined according to the correspondence.
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 information of the user login account.
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, analyzing the address, if the analysis is failed, performing error processing, such as sending an error report, and if the analysis is successful, entering a corresponding analysis mode, acquiring related information of the page, and the like.
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 is made focusing 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:
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 data of a directory hierarchy of the page selection paging template, and the sequence number of the parent directory 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 in a paging type, a directory structure is generated according to the hierarchical relationship among a plurality of pages 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, is transmitted to a server end in a rich text string template mode, is stored in the server to obtain a link of a content address, and then the content address and a theme sequence number or a catalog sequence number are written into a version table by the server end for retrieval and use during reading, and meanwhile operators who operate the above operations are written into a record 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 updated according to the directory information, and thus, the update information further includes the update directory, in this embodiment, if the page is of the page type including multiple pages, the directory structure of the page is read from the directory table to query the level in the directory structure for the page with the enabled-state version, and the update directory of the page is generated 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.
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 without real-time online editing, 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 a server end is not needed, and the consumption of resources 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 is similar, and is not described herein again.
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 of a page updating method according to an 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 an array of servers, 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 the 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.
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 the computer apparatus, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
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.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. 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 (PLDs)) 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 term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
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 components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
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 are not limited herein as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on 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 (15)
1. A page updating method, characterized in that the method comprises:
a client acquires an access request of a page;
responding to the access request, and reading the updating information of the locally stored page by the client; the update information is pushed to the client side by the server side after the server side acquires the update information;
the client generates and displays the page according to the updating information;
wherein, the page is of a paging type and comprises 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.
2. The page updating method according to claim 1, wherein before the client analyzes the update information by using the paged analysis policy to obtain an update directory and a plurality of paged page contents, the method further comprises:
the client acquires the URL 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 URL address;
and the client acquires the analysis strategy corresponding to the paging type.
3. The page updating method according to claim 2, wherein after the client obtains the URL 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 theme recorded in the URL address.
4. The page updating method according to claim 2, wherein after the client obtains the URL 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 URL 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.
5. The page updating method according to claim 3, wherein before the client queries and obtains the updating information of the page according to the page topic recorded in the URL address, the method further comprises:
and checking to determine that the login user has the authority to access the page according to the information of the login user carried in the access request.
6. A page updating method is characterized in that the method is executed by a server side, and the method comprises the following steps:
acquiring the updating information of the 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;
wherein, the update information comprises page content and an update catalog; 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; generating a file of page content according to the rich text content;
after the generating the version table in response to the user editing operation on the page, the method further includes: 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 updating 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.
7. The page updating method according to claim 6, wherein the pushing the update information to each client includes:
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.
8. The page updating method according to claim 6, wherein generating a version table in response to a user editing operation on the page comprises:
determining a page subject 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.
9. The page updating method according to claim 8, wherein after writing the page theme into a theme table, 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.
10. The page updating method according to claim 8, 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.
11. The page updating method according to claim 8, wherein generating a version table corresponding to the page theme in the theme table according to the enabled status version comprises:
coding the enabling 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.
12. 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;
the processing module is used for generating and displaying the page according to the updating information;
wherein, the page is of a paging type and comprises a plurality of pages; the processing module is specifically configured to: the client analyzes the updating information by adopting the paging type analysis strategy to obtain an updating catalog 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.
13. 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 in each client locally, so that when the access request of the page is obtained, the page is generated and displayed according to the updating information;
wherein, the update information comprises page content and an update directory; the second obtaining module is specifically configured to: 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; generating a file of page content according to the rich text content;
after determining that the page is 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.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the page update method as claimed in any one of claims 1 to 5 or implementing the page update method as claimed in any one of claims 6 to 11.
15. 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 5 or implementing the page update method according to any one of claims 6 to 11.
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 CN111475757A (en) | 2020-07-31 |
CN111475757B true 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) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035722B (en) * | 2020-08-04 | 2023-10-13 | 北京启明星辰信息安全技术有限公司 | Method, device and computer readable storage medium for extracting dynamic webpage information |
CN112286545B (en) * | 2020-09-21 | 2023-05-05 | 长沙市到家悠享网络科技有限公司 | Data updating method, device, equipment and storage medium |
CN112185522A (en) * | 2020-09-27 | 2021-01-05 | 上海联影医疗科技股份有限公司 | Information processing method and device and terminal |
CN112214671B (en) * | 2020-10-09 | 2024-09-10 | 百度国际科技(深圳)有限公司 | Front-end page generation method, target user determination device and medium |
CN112306972B (en) * | 2020-11-02 | 2024-06-25 | 招投研究院(广州)有限公司 | 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 |
CN113010224B (en) * | 2021-03-03 | 2024-01-30 | 南方电网数字平台科技(广东)有限公司 | Front-end micro-servitization method, front-end micro-servitization device, computer equipment and storage medium |
CN112905944B (en) * | 2021-04-06 | 2023-06-20 | 成都新希望金融信息有限公司 | 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 |
CN113268261B (en) * | 2021-07-16 | 2022-05-10 | 北京乐学帮网络技术有限公司 | Page content display method and device and electronic equipment |
CN113672225B (en) * | 2021-08-24 | 2023-08-22 | 网易(杭州)网络有限公司 | User interface processing method, device, equipment and storage medium |
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 |
CN114781347B (en) * | 2022-06-21 | 2022-09-20 | 飞狐信息技术(天津)有限公司 | File processing method and system |
CN115776516B (en) * | 2023-02-13 | 2023-04-14 | 天翼云科技有限公司 | Page refreshing method and device and electronic equipment |
CN117075900B (en) * | 2023-08-21 | 2024-05-14 | 北京饼干科技有限公司 | Method and system for generating h5 page content based on AI |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140237387A1 (en) * | 2013-02-21 | 2014-08-21 | Atlassian Pty Ltd | Integrated notifications in a collaborative electronic information system |
-
2020
- 2020-03-03 CN CN202010141142.5A patent/CN111475757B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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)
Title |
---|
基于Java-Web的分页技术研究;张少应等;《辽宁农业职业技术学院学报》;20170115;第第19卷卷(第01期);第62-64页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111475757A (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111475757B (en) | Page updating method and device | |
US10592487B2 (en) | Third party files in an on-demand database service | |
US9026733B1 (en) | Content-based caching using a content identifier at a point in time | |
JP6797290B2 (en) | Content management capabilities for messaging services | |
US8516366B2 (en) | Extensible content service for attributing user-generated content to authored content providers | |
US9514235B2 (en) | Web page authoring tool for structured documents | |
US7840648B1 (en) | Web-page authoring tool for automatic enrollment in advertising program | |
US7933871B2 (en) | Discovering and updating templates | |
KR20060048375A (en) | Contextual action publishing | |
CN112632919B (en) | Document editing method and device, computer equipment and storage medium | |
AU2012225130A1 (en) | System and methods for facilitating the synchronization of data | |
CA2869699A1 (en) | System and method for generating digital content | |
KR20130126901A (en) | Synchronizing online document edits | |
EP2972827B1 (en) | Collaborative editing | |
CN107710202B (en) | Cloud-native documents integrated with legacy tools | |
CN107710189B (en) | Multimodal sharing of content between documents | |
US20140245257A1 (en) | Context-switching mechanism for facilitating content creation and software development | |
RU2691834C1 (en) | Method of managing web site data | |
US9798773B2 (en) | Generation of mapping definitions for content management system | |
CN113705193A (en) | Rendering content using decoupled rendering resources | |
JP5224839B2 (en) | Document management system, document management apparatus, document management method, and program | |
US9858250B2 (en) | Optimized read/write access to a document object model | |
US20030217334A1 (en) | Physical data blending system for updating live presentation documents | |
Reisinger et al. | Evaluation of Content Management Systems | |
Rahmel | Administering Joomla! |
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 |