CN116910405A - Page processing method, device, computer equipment and storage medium - Google Patents

Page processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116910405A
CN116910405A CN202310777897.8A CN202310777897A CN116910405A CN 116910405 A CN116910405 A CN 116910405A CN 202310777897 A CN202310777897 A CN 202310777897A CN 116910405 A CN116910405 A CN 116910405A
Authority
CN
China
Prior art keywords
page
target
event
preset
determining
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.)
Pending
Application number
CN202310777897.8A
Other languages
Chinese (zh)
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.)
Zhejiang Hailiang Technology Co ltd
Original Assignee
Zhejiang Hailiang 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 Zhejiang Hailiang Technology Co ltd filed Critical Zhejiang Hailiang Technology Co ltd
Priority to CN202310777897.8A priority Critical patent/CN116910405A/en
Publication of CN116910405A publication Critical patent/CN116910405A/en
Pending legal-status Critical Current

Links

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
    • 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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A page processing method, device, computer equipment and storage medium are provided, which monitor the operation event of the user in the current page in real time; matching the operation event with a preset event pool to determine a target event; matching the target event with a preset page configuration list, and determining a page processing strategy; and executing the page processing strategy on the current page or the associated page corresponding to the current page. According to the page processing method, the target event is determined based on the operation event of the current page of the user obtained through real-time monitoring, the corresponding page processing strategy is determined by utilizing the target event, and the page processing strategy is executed on the current page or the associated page corresponding to the current page, so that different page feedback is rapidly given out on the current page according to different operation events of the user, and the associated page can synchronously realize page feedback, so that the user experience is improved, and meanwhile, the configuration and processing of the page are efficiently realized while the personalized requirement is met.

Description

Page processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of network page management, and in particular, to a page processing method, apparatus, computer device, and storage medium.
Background
With the rapid development of network technology, information acquisition approaches are becoming more and more diversified. When a user browses different pages, due to different requirements of individuation, the operation on the pages is different, and aiming at the management of the pages, in the prior art, an include method for providing keep-alive by a vue functional network can realize the caching of the appointed pages, when the user switches the route, the last page can be destroyed, a new page can be created, the keep-alive can cache a component, namely, when the user switches the route, page data accessed last time still exist and cannot be destroyed, and in addition, the include attribute ensures that the component or the page matched with the name can be cached.
In the current technology, after a user enters a certain page, the display content of the page is fixed, and the page cannot be updated according to the operation habit of the user, so that the page is complicated in operation and the user experience is affected.
Disclosure of Invention
Based on this, it is necessary to provide a page processing method, apparatus, computer device, and storage medium in order to address the above technical problems.
In a first aspect, the present application provides a page processing method, which is characterized in that the method includes:
Monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
In one embodiment, the preset page configuration list includes: the mapping relation among the target event, the current page, the associated page corresponding to the current page and the page processing strategy.
In one embodiment, the matching the operation event with a preset event pool, and determining the target event includes:
acquiring a preset event list corresponding to the preset event pool; the preset event list comprises a list of preset events;
comparing the operation event with each preset event in the preset event list in sequence;
and if the comparison is successful, taking the operation event as a target event.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
Acquiring a preset page configuration list corresponding to a current page;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
determining a first page processing strategy according to the target event and the target page;
and determining a second page processing strategy according to the target event and the target associated page.
In one embodiment, the executing the page processing policy on the current page or the associated page corresponding to the current page includes:
executing the first page processing strategy on the current page;
and executing the second page processing strategy on the associated page.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
the target event includes: at least one of page editing event, page triggering event and page browsing time;
comparing the target event with the preset page configuration list to determine the target page and a target associated page; the target page comprises a current page for monitoring an operation event; the target associated page comprises an associated page of the current page;
Determining a first page processing strategy according to the target event and the target page; the first page processing policy includes: at least one of page refreshing, page buffering updating and page jumping;
determining a second page processing strategy according to the target event and the target associated page; the second page processing policy includes: at least one of page refreshing, page buffering updating and page jumping.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is page browsing time;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the page browsing time and the target page; the target page processing strategy comprises the following steps of; and refreshing the target page data.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is page editing;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
Determining a target page processing strategy according to the editing data of the page editing and the target page; the target page processing strategy comprises the following steps of; refreshing target page data based on the editing data;
determining a target associated page processing strategy according to the editing data of the page editing and the target associated page; the target associated page processing strategy comprises the following steps of; and updating the cache data of the target associated page based on the editing data.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is a page click;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the corresponding click position of the page click and the target page; the target page processing strategy comprises the following steps of; and skipping the page based on the clicking position.
In a second aspect, the present application also provides a page processing apparatus, including:
the monitoring module is used for monitoring the operation event of the user on the current page in real time;
The event matching module is used for matching the operation event with a preset event pool and determining a target event;
the policy matching module is used for matching the target event with a preset page configuration list and determining a page processing policy;
and the execution module is used for executing the page processing strategy on the current page or the associated page corresponding to the current page.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
The page processing method, the page processing device, the computer equipment and the storage medium monitor the operation event of the user on the current page in real time; matching the operation event with a preset event pool to determine a target event; matching the target event with a preset page configuration list, and determining a page processing strategy; and executing the page processing strategy on the current page or the associated page corresponding to the current page. According to the page processing method, the target event is determined based on the operation event of the current page of the user obtained through real-time monitoring, the corresponding page processing strategy is determined by utilizing the target event, and the page processing strategy is executed on the current page or the associated page corresponding to the current page, so that different page feedback can be rapidly given out on the current page according to different use habits of the user, and the associated page can synchronously realize page feedback, so that the user experience is improved to meet personalized requirements, and meanwhile, the configuration and processing of the page are efficiently realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present application, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is an application environment diagram of a page processing method in one embodiment;
FIG. 2 is a flow chart of a page processing method according to an embodiment of the application;
FIG. 3 is a flow chart illustrating an actual implementation of a page processing method according to an embodiment of the present application;
FIG. 4 is a block diagram illustrating a page processing apparatus according to an embodiment of the present application;
fig. 5 is an internal structural diagram of a computer device in one embodiment of the application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Vue is a JavaScript framework for building user interfaces. The method is constructed based on standard HTML, CSS and JavaScript, and provides a set of declarative and componentized programming models, so that efficient development and configuration of a user interface can be realized.
Two core functions of Vue: first, declarative rendering: vue expands a set of template grammars based on standard HTML so that we can declaratively describe the relationship between the final output HTML and JavaScript states. Second, responsiveness: the Vue will automatically track JavaScript status and responsively update the DOM as it changes.
In the prior art, the method of providing keep-alive by vue functional network can realize the caching of the appointed page, when the route is switched, the last page is destroyed, the new page is also created, the keep-alive can cache the component, the component is prevented from being destroyed, that is, when the route is switched, the last accessed page data still exists, the destruction is not carried out, and the include attribute in the page ensures that the component or the page matched with the name can be cached. Based on the above, in the present technology, after a user enters a certain page, the display content of the page is fixed, and the page cannot be updated according to the operation habit of the user, so that the page is complicated to operate, and the user experience is affected.
The page processing method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The user makes a current behavior on the terminal 102, the terminal 102 transmits current behavior data to the server 104, and the server 104 monitors the operation event of the user on the current page in real time; matching the operation event with a preset event pool to determine a target event; matching the target event with a preset page configuration list, and determining a page processing strategy; and executing the page processing strategy on the current page or the associated page corresponding to the current page. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a page processing method is provided, where this embodiment is applied to a terminal to illustrate the method, and it is understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step S201, monitoring operation events of a user on a current page in real time.
Specifically, the user may access the page at different types of user terminals (e.g., cell phone, desktop computer, tablet computer, etc.) using a client such as a browser, APP, and the user may also perform different operation events on the current page based on the user-defined requirements, such as stay for different times on the page, edit information entered or deleted on the page, click on options in the page, complete a special interface request on the page, etc.
Step S202, matching the operation event with a preset event pool, and determining a target event.
Specifically, the target event refers to an operation event which is determined from a plurality of operation events of a user and needs to be focused on based on the requirement of page management of the user; the preset event pool refers to a set of all target events.
Step S203, the target event is matched with a preset page configuration list, and a page processing strategy is determined.
Specifically, the preset page configuration list comprises a target event and a page processing strategy corresponding to the target event, wherein the page processing strategy comprises a page layout processing strategy and a page data processing strategy. And determining the page processing strategy based on the preset page configuration list after the target event is determined.
Specifically, the page layout processing strategy relates to the presentation position of data on a page, and the page color style layout and the like relate to the processing strategy of the page appearance layout; the page data processing strategy relates to the processing strategy of data on a page, such as calculation, addition or deletion, and the like, aiming at the data.
Step S204, executing the page processing strategy on the current page or the associated page corresponding to the current page.
Specifically, the associated page is an associated page of the current page, for example, clicking a certain connection from the a page can jump to the current page, and the a page is the associated page of the current page; clicking a certain connection on the current page to jump to the B page, wherein the B page is the associated page of the current page; and the current page displays a data list, and the C page is a detail page of certain data in the data list, and is an associated page of the current page. That is, the pages associated with the current page on the link or data are all associated pages of the current page. And carrying out corresponding page processing on the current page and the associated page based on the determined page processing strategy.
In the page processing method, the operation event of the user on the current page is monitored in real time; matching the operation event with a preset event pool to determine a target event; matching the target event with a preset page configuration list, and determining a page processing strategy; and executing the page processing strategy on the current page or the associated page corresponding to the current page. Determining a target event based on the operation event of the current page of the user obtained by monitoring in real time, determining a corresponding page processing strategy by utilizing the target event, and executing the page processing strategy on the current page or the associated page corresponding to the current page, wherein different page feedback is rapidly given out on the current page aiming at different operation events of the user, and the associated page can synchronously realize page feedback, so that the configuration and processing of the page are efficiently realized while the user experience is improved to meet the personalized requirement.
In one embodiment, the preset page configuration list includes: the mapping relation among the target event, the current page, the associated page corresponding to the current page and the page processing strategy.
Specifically, there is a one-to-one mapping relationship between target events, pages, and processing policies. The mapping relationship is set based on actual page management requirements. One target event may affect the current page and the associated page of the current page at the same time, so that the same page processing strategy is required to be used for processing the current page and the associated page respectively; processing may also be performed using different page processing policies. One target event may only affect the current page, which is processed with the corresponding page processing policy. One target event may only affect the associated page, which is processed with the corresponding page processing policy. Illustratively, referring to Table 1, table 1 is a schematic table of the default page configuration list,
Target event Page page Page pageProcessing strategies
Target event 1 Current page Page processing policy 1
Target event 1 Associated pages Page processing policy 2
Target event 2 Current page Page processing policy 3
Target event 3 Associated pages Page processing policy 4
Target event 4 Current page Page processing policy 5
Target event 4 Associated pages Page processing policy 5
TABLE 1
In table 1, for example, the target event 1 has a current page and an associated page corresponding to the current page, where the current page may be processed by the page processing policy 1; the associated pages may be processed by page processing policy 2. The target event 2 corresponds to a current page, wherein the current page can be processed through the page processing strategy 3. And the related page with the current page corresponding to the target event 3 can be processed through the page processing strategy 4. The target event 4 is respectively and correspondingly provided with a current page and an associated page, wherein the current page can be processed through a page processing strategy 5; the associated pages may still be processed by the page processing policy 5.
According to the embodiment, the mapping relation among the target event, the current page, the associated page corresponding to the current page and the page processing strategy in the page configuration list is preset, so that the accurate and specific mapping relation improves the order of page configuration management, and the page configuration management is more orderly.
In one embodiment, the matching the operation event with a preset event pool, and determining the target event includes:
acquiring a preset event list corresponding to the preset event pool; the preset event list comprises a list of preset events;
comparing the operation event with each preset event in the preset event list in sequence;
and if the comparison is successful, taking the operation event as a target event.
Specifically, the operation events are compared with each preset event in the preset event list in sequence, and when the comparison is successful, the current operation event can be determined to be positioned in the event pool, so that the operation event which is successfully compared is determined to be a target event.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
acquiring a preset page configuration list corresponding to a current page;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
determining a first page processing strategy according to the target event and the target page;
And determining a second page processing strategy according to the target event and the target associated page.
Specifically, after the target event is acquired, a page to be processed corresponding to the target event needs to be searched in a preset page configuration list. For example, the target event may correspond to both the current page and the associated page of the current page; the target event may also correspond to only the current page; the target event may also correspond to only the associated page.
For example, referring to table 2, table 2 is an association relationship between a target event and a page.
Event type Adapting a target page Adapting target association pages
Target event 5 Current page Associated pages
Target event 6 Current page Without any means for
Target event 7 Without any means for Associated pages
TABLE 2
For example, in table 2, the target event 5 has a current page and an associated page corresponding to each other; the target event 6 corresponds only to the current page; the target event 7 corresponds only to the associated page to which the current page corresponds.
Specifically, after determining the target page, determining a first page processing policy based on the target page, the target event and a preset page configuration list, wherein the first page processing policy is adapted to the target page and is applied to the target page; after determining the target associated page, a second page processing policy may be determined based on the target associated page, the target event and the preset page configuration list, wherein the second page processing policy is adapted to the target associated page and applied to the target associated page.
In the above embodiment, the target page and the target associated page are determined according to the target event and the preset page configuration list, and after the applicable page is determined, the corresponding page processing strategies can be respectively determined based on the applicable page, so that the accuracy of determining the page processing strategies is obviously improved.
In another embodiment, the executing the page processing policy on the current page or the associated page corresponding to the current page includes:
executing the first page processing strategy on the current page;
and executing the second page processing strategy on the associated page.
Specifically, in this embodiment, the current page is the target page, and the first page processing policy is adapted to the target page, that is, the first page processing policy is adapted to the current page, so that the first page processing policy is executed on the current page.
Specifically, in this embodiment, the associated page is the target associated page, and the second page processing policy is adapted to the target associated page, that is, the second page processing policy is adapted to the associated page, so that the second page processing policy is executed on the associated page.
In the embodiment, the corresponding page management policies are respectively executed based on the pages of different types, so that the efficiency of page processing is improved.
In another embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
the target event includes: at least one of page editing event, page triggering event and page browsing time;
comparing the target event with the preset page configuration list to determine the target page and a target associated page; the target page comprises a current page for monitoring an operation event; the target associated page comprises an associated page of the current page;
determining a first page processing strategy according to the target event and the target page; the first page processing policy includes: at least one of page refreshing, page buffering updating and page jumping;
determining a second page processing strategy according to the target event and the target associated page; the second page processing policy includes: at least one of page refreshing, page buffering updating and page jumping.
Specifically, comparing the target event with a preset page configuration list to determine a page (which may be a target page or a target associated page); and after the page is determined, determining a corresponding page processing strategy based on the target event and the target page.
In another embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is page browsing time;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the page browsing time and the target page; the target page processing strategy comprises the following steps of; and refreshing the target page data.
Specifically, when the user browses a page for a long time, there may be some data changes of the current page, for example, an increase in comment content, etc., so that the page needs to be correspondingly refreshed with data.
Specifically, when the target event is the page browsing time, determining a target page in the preset page configuration list based on the target event page browsing time; and determining a corresponding target page processing strategy in a preset page configuration list based on the page browsing time and the target page: and refreshing the target page data. That is, when the page browsing time meets the specification of the page browsing time threshold in the preset page configuration list, the corresponding page processing policy is to refresh the target page data, and typically, the page browsing time threshold in the preset page configuration list is 60 seconds, and when the page browsing time is greater than 60 seconds, the target page data is refreshed. It can be appreciated that the threshold of page browsing time can be set according to actual requirements, for example: 50 seconds, 30 seconds, the embodiment of the present application is not particularly limited.
It can be understood that the relevant page of the target page can be determined according to the target event and the preset page configuration list, and the processing strategy of the relevant page of the target can be determined according to the page browsing time and the relevant page of the target page: the target page data is refreshed, and in other embodiments, other target pages may be determined according to actual requirements, which are not listed here.
According to the embodiment, when the target event is the page browsing time, the target page processing strategy is accurately determined, namely the target page data is refreshed, so that timeliness of page browsing is improved, and user browsing experience is optimized.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is page editing;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the editing data of the page editing and the target page; the target page processing strategy comprises the following steps of; refreshing target page data based on the editing data;
Determining a target associated page processing strategy according to the editing data of the page editing and the target associated page; the target associated page processing strategy comprises the following steps of; and updating the cache data of the target associated page based on the editing data.
Specifically, when the target event is page editing, it is explained that the user changes the page data, so in order to ensure timeliness and accuracy of the page, the target page data needs to be refreshed based on the editing data. At the same time, it is not negligible that the target associated page should also correspondingly adopt a processing policy, where the target associated page processing policy includes; and updating the cache data of the target associated page based on the editing data.
Specifically, when the target event is page editing, determining a target page and a target associated page on the preset page configuration list based on the target event page editing; determining a corresponding target page processing strategy in a preset page configuration list based on the editing data of the page editing and the target page; the target page processing strategy comprises the following steps of; refreshing target page data based on the editing data; then determining a target associated page processing strategy based on the editing data of the page editing and the target associated page; the target associated page processing strategy comprises the following steps of; and updating the cache data of the target associated page based on the editing data.
According to the embodiment, when the target event is page editing, the target page processing strategy is accurately determined, namely the target page data is refreshed, and meanwhile, the target associated page processing strategy is accurately determined, namely the cache data of the target associated page is updated based on the editing data, so that timeliness of page editing is improved, and user experience of page editing is optimized.
In one embodiment, the matching the target event with a preset page configuration list, and determining the page processing policy includes:
if the target event is a page click;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the corresponding click position of the page click and the target page; the target page processing strategy comprises the following steps of; and skipping the page based on the clicking position.
Specifically, when the target event is a page click, it is indicated that a selectable item exists in the page or the page is linked to other pages, so that after the target page is determined based on the target event page click, a corresponding processing strategy is determined in a preset configuration list based on a corresponding click position of the page click and the target page, and it can be understood that the linked page is different because the click position is different, the options are also different, and the target page processing strategy comprises; and skipping the page based on the clicking position.
According to the embodiment, when the target event is the page click, the target page processing strategy is accurately determined, namely, the page is jumped based on the click position, the timeliness of page feedback when the page is clicked is improved, and the user experience is optimized.
In another embodiment, referring to fig. 3, fig. 3 is a schematic flow chart of an actual implementation of the page processing method, and the implementation process is as follows:
1. monitoring various behavior events of a browser page user, and matching an event pool based on the behavior events;
the event pool is provided with preset page events needing to be monitored, and the monitored page events are equivalent to starting events of the preprocessing events.
2. Triggering a preprocessing event when the monitored event corresponds to an event preset in an event pool;
wherein the preprocessing events include page dwell time, button clicks, special interface requests, and the like.
3. After triggering the preprocessing event, notifying each page to carry out corresponding event processing: and receiving and processing the corresponding data of the page change program to complete the closed loop.
Exemplary:
in the first case, the page A is a data display page, and the page management requirement is: and after the editing of the page A is completed, updating page data to realize data synchronization. Therefore, the A page is configured, a preprocessing event (refreshing data) is added, whether the detail page is edited or not is monitored, and when the user triggers editing operation, the preprocessing event (refreshing data) of the A page is executed to complete data updating.
In the second case, the B page is a data large screen display page, and the page management requirement is: after the user has stayed on the current page for 30 seconds, the next large screen data is replaced. Therefore, by adding a time preprocessing event to the B page configuration, the user is triggered after staying for 30 seconds, and the data switching is performed to complete the automatic updating of the page.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a page processing device for realizing the above-mentioned page processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the page processing device provided below may refer to the limitation of the page processing method described above, and will not be repeated here.
In one embodiment, as shown in fig. 4, there is provided a page processing apparatus including: listening module 410, event matching module 420, policy matching module 430, and execution module 440, wherein:
and the monitoring module 410 is configured to monitor an operation event of the user on the current page in real time.
The event matching module 420 is configured to match the operation event with a preset event pool, and determine a target event.
And a policy matching module 430, configured to match the target event with a preset page configuration list, and determine a page processing policy.
The event matching module 420 is further configured to obtain a preset event list corresponding to the preset event pool; the preset event list comprises a list of preset events; comparing the operation event with each preset event in the preset event list in sequence; and if the comparison is successful, taking the operation event as a target event.
The policy matching module 430 is further configured to obtain a preset page configuration list corresponding to the current page; searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event; determining a first page processing strategy according to the target event and the target page; and determining a second page processing strategy according to the target event and the target associated page.
Policy matching module 430 is further configured to, for the target event,: at least one of page editing event, page triggering event and page browsing time; comparing the target event with the preset page configuration list to determine the target page and a target associated page; the target page comprises a current page for monitoring an operation event; the target associated page comprises an associated page of the current page; determining a first page processing strategy according to the target event and the target page; the first page processing policy includes: at least one of page refreshing, page buffering updating and page jumping; determining a second page processing strategy according to the target event and the target associated page; the second page processing policy includes: at least one of page refreshing, page buffering updating and page jumping.
The policy matching module 430 is further configured to, if the target event is a page browsing time; searching the target page corresponding to the target event in the preset page configuration list according to the target event; determining a target page processing strategy according to the page browsing time and the target page; the target page processing strategy comprises the following steps of; and refreshing the target page data.
The policy matching module 430 is further configured to, if the target event is page editing; searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event; determining a target page processing strategy according to the editing data of the page editing and the target page; the target page processing strategy comprises the following steps of; refreshing target page data based on the editing data; determining a target associated page processing strategy according to the editing data of the page editing and the target associated page; the target associated page processing strategy comprises the following steps of; and updating the cache data of the target associated page based on the editing data.
The policy matching module 430 is further configured to, if the target event is a page click; searching the target page corresponding to the target event in the preset page configuration list according to the target event; determining a target page processing strategy according to the corresponding click position of the page click and the target page; the target page processing strategy comprises the following steps of; and skipping the page based on the clicking position.
And the executing module 440 is configured to execute the page processing policy on the current page or an associated page corresponding to the current page.
The executing module 440 is further configured to execute the first page processing policy on the current page; and executing the second page processing strategy on the associated page.
The respective modules in the above-described page processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a page processing apparatus. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory and a processor, where the memory stores a computer program, and the processor implements the page processing method in any of the above embodiments when executing the computer program:
monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the page processing method in any of the above embodiments:
Monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (12)

1. A method of page processing, the method comprising:
monitoring an operation event of a user on a current page in real time;
matching the operation event with a preset event pool to determine a target event;
matching the target event with a preset page configuration list, and determining a page processing strategy;
and executing the page processing strategy on the current page or the associated page corresponding to the current page.
2. The method of claim 1, wherein the preset page configuration list comprises: the mapping relation among the target event, the current page, the associated page corresponding to the current page and the page processing strategy.
3. The method of claim 2, wherein the matching the operational event with a pool of preset events, determining a target event comprises:
acquiring a preset event list corresponding to the preset event pool; the preset event list comprises a list of preset events;
comparing the operation event with each preset event in the preset event list in sequence;
and if the comparison is successful, taking the operation event as a target event.
4. The method of claim 2, wherein the matching the target event with a preset page configuration list, determining a page processing policy comprises:
acquiring a preset page configuration list corresponding to a current page;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
determining a first page processing strategy according to the target event and the target page;
And determining a second page processing strategy according to the target event and the target associated page.
5. The method of claim 4, wherein the executing the page processing policy on the current page or an associated page corresponding to the current page comprises:
executing the first page processing strategy on the current page;
and executing the second page processing strategy on the associated page.
6. The method of claim 4, wherein the matching the target event with a preset page configuration list, determining a page processing policy comprises:
the target event includes: at least one of page editing event, page triggering event and page browsing time;
comparing the target event with the preset page configuration list to determine the target page and a target associated page; the target page comprises a current page for monitoring an operation event; the target associated page comprises an associated page of the current page;
determining a first page processing strategy according to the target event and the target page; the first page processing policy includes: at least one of page refreshing, page buffering updating and page jumping;
Determining a second page processing strategy according to the target event and the target associated page; the second page processing policy includes: at least one of page refreshing, page buffering updating and page jumping.
7. The method of claim 4, wherein the matching the target event with a preset page configuration list, determining a page processing policy comprises:
if the target event is page browsing time;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the page browsing time and the target page; the target page processing strategy comprises the following steps of; and refreshing the target page data.
8. The method of claim 4, wherein the matching the target event with a preset page configuration list, determining a page processing policy comprises:
if the target event is page editing;
searching the target page and a target associated page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the editing data of the page editing and the target page; the target page processing strategy comprises the following steps of; refreshing target page data based on the editing data;
Determining a target associated page processing strategy according to the editing data of the page editing and the target associated page; the target associated page processing strategy comprises the following steps of; and updating the cache data of the target associated page based on the editing data.
9. The method of claim 4, wherein the matching the target event with a preset page configuration list, determining a page processing policy comprises:
if the target event is a page click;
searching the target page corresponding to the target event in the preset page configuration list according to the target event;
determining a target page processing strategy according to the corresponding click position of the page click and the target page; the target page processing strategy comprises the following steps of; and skipping the page based on the clicking position.
10. A page processing apparatus, the apparatus comprising:
the monitoring module is used for monitoring the operation event of the user on the current page in real time;
the event matching module is used for matching the operation event with a preset event pool and determining a target event;
the policy matching module is used for matching the target event with a preset page configuration list and determining a page processing policy;
And the execution module is used for executing the page processing strategy on the current page or the associated page corresponding to the current page.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
CN202310777897.8A 2023-06-28 2023-06-28 Page processing method, device, computer equipment and storage medium Pending CN116910405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310777897.8A CN116910405A (en) 2023-06-28 2023-06-28 Page processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310777897.8A CN116910405A (en) 2023-06-28 2023-06-28 Page processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116910405A true CN116910405A (en) 2023-10-20

Family

ID=88359301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310777897.8A Pending CN116910405A (en) 2023-06-28 2023-06-28 Page processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116910405A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797344A (en) * 2020-07-09 2020-10-20 平安国际智慧城市科技股份有限公司 Page jump display method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797344A (en) * 2020-07-09 2020-10-20 平安国际智慧城市科技股份有限公司 Page jump display method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20180033025A1 (en) Method and system for two-dimensional charting using live queries
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
CN116910405A (en) Page processing method, device, computer equipment and storage medium
CN106257418A (en) For by using assistance application to evaluate the technology of application
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN114329152A (en) Application program generation method, device, equipment and medium based on browser engine
CN115357161A (en) Table adjustment method, device, computer equipment and storage medium
CN115168668A (en) Information recommendation method and device, computer equipment and storage medium
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
US9779387B2 (en) Business-to-business document user interface and integration design
CN112464116B (en) Page display method, page display device, computer equipment and storage medium
CN116700725B (en) Page generation method, page generation device, computer equipment and storage medium
CN116304407A (en) Page rendering method, device, computer equipment and storage medium
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
CN118245160A (en) Tab label updating method, device, computer equipment and storage medium
CN117932186A (en) Page instance management method, device, computer equipment and storage medium
CN117632951A (en) Algorithm flow arranging method, device, computer equipment and storage medium
CN116894044A (en) Data management method, device, computer equipment and storage medium
CN114201707A (en) Page refreshing method and device, computer equipment and storage medium
CN115437935A (en) Test case generation method and device, computer equipment and storage medium
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN115934238A (en) Interface display method and device, computer equipment and storage medium
CN116049588A (en) Page loading method, device, computer equipment and storage medium
CN117369895A (en) Shortcut generation method, shortcut generation device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination