Method and device for static page data processing
A static page and data processing technology, applied in the field of network communication, can solve the problems that the comment function cannot be realized, dynamic data update cannot be realized, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] figure 1 It is a flowchart of a method for processing static page data according to an embodiment of the present invention, such as figure 1 As shown, the method of the present embodiment includes the following steps:
[0035] Step 101, receiving a request message from a user device for accessing static page comment data;
[0036] Step 102: Search the storage module for comment data corresponding to the static page according to the request message, and return the comment data to the user equipment.
[0037] Wherein, the request message for accessing the static page comment data includes user information and a URL (Uniform / Universal Resource Locator, Uniform Resource Locator) of the current page being accessed.
[0038] The embodiment of the present invention solves the problem that static pages cannot be commented and loaded dynamically by building an independent comment system. A piece of code is embedded in the static page. When the user requests the static page, h...
Embodiment 2
[0042] figure 2 It is a flowchart of a method for processing static page data according to an embodiment of the present invention, such as figure 2 As shown, the method of the present embodiment includes the following steps:
[0043] Step 201. After receiving the static page, the user triggers an asynchronous request.
[0044] Static pages are directly fed back to the front-end user browser without being compiled by the server, and the front-end user browser triggers an asynchronous request after receiving the returned static page.
[0045] The content of the asynchronous request includes the current user information and the URL of the current page visited, and is sent to the comment system server.
[0046] In this embodiment, after the user visits the static page, an asynchronous request is triggered to obtain the comment module and corresponding comment data from the comment server. During processing by the comment server, the browser continues to load other elements of ...
Embodiment 3
[0052] The difference between this embodiment and the second embodiment is that: when the comment system returns the comment data to the user, it also returns the comment submission module to the user.
[0053] image 3 It is a flowchart of a method for processing static page data according to an embodiment of the present invention, such as image 3 As shown, the method of the present embodiment includes the following steps:
[0054] Step 301 , when the comment system server returns the comment data to the user, it also includes a comment submission module, in which the user can comment on the page.
[0055] Step 302, after the user makes a comment on the page, the user actively triggers a submission command, and sends the comment data to the comment system server.
[0056] Step 303: After the comment system server receives the user comments, it saves the comments in the local comment data file corresponding to the current page after data processing.
[0057] Regarding the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


