CN115203618A - Page processing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN115203618A
CN115203618A CN202211107209.9A CN202211107209A CN115203618A CN 115203618 A CN115203618 A CN 115203618A CN 202211107209 A CN202211107209 A CN 202211107209A CN 115203618 A CN115203618 A CN 115203618A
Authority
CN
China
Prior art keywords
page
attribute value
target
state attribute
visible
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211107209.9A
Other languages
Chinese (zh)
Other versions
CN115203618B (en
Inventor
刘卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211107209.9A priority Critical patent/CN115203618B/en
Publication of CN115203618A publication Critical patent/CN115203618A/en
Application granted granted Critical
Publication of CN115203618B publication Critical patent/CN115203618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a page processing method, a page processing device, an electronic device and a storage medium, wherein the method comprises the following steps: monitoring a current application program and a target page opened in the current application program through a pre-constructed hook function, wherein the target page is different from the page of the current application program; determining a page processing mode based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of a current application program or the target event of a target page, and the page processing mode comprises a display processing mode or a hidden processing mode; and performing page processing through a page processor indicated by the page processing mode, wherein the page processor comprises a display page processor or a hidden page processor. By adopting the method and the device, the problems of repeated development and code data redundancy can be relieved, the page frame is light and simple, the page optimization is realized, the workload of developers can be reduced, and the development efficiency can be effectively improved.

Description

Page processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a page processing method and apparatus, an electronic device, and a storage medium.
Background
In a scenario of opening an H5 (HyperText Markup Language 5, 5 th generation internet HyperText Markup Language) page inside an application, since elements such as animation, sound, game, ticker, and the like often appear on the H5 page, and such elements often consume browser performance, it is necessary to destroy some elements occupying a memory at a time of leaving, destroying, or hiding the page, and to re-execute an H5 page initialization logic when the page is reproduced.
The display and hiding of the H5 page may be triggered in a variety of scenarios, such as: and (4) closing scenes such as application programs, application program execution front-to-back switching, application program end-to-end page and H5 page switching, jumping between H5 pages, returning between H5 pages and the like.
In the related art, developers are often required to individually develop corresponding page processing logic for various scenes of each page to perform display or hiding processing of the page, and such a processing manner causes repeated development, which results in a bulky page frame, redundant code data and low development efficiency.
Disclosure of Invention
The disclosure provides a page processing method and device, an electronic device and a storage medium, which are used for at least solving the problems of bloated page frame, redundant code data and low development efficiency caused by repeated development in related technologies. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a page processing method, including:
monitoring a current application program and a target page opened in the current application program through a pre-constructed hook function, wherein the target page is different from the page of the current application program;
determining a page processing mode based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of the current application program or the target event of the target page, and the page processing mode comprises a display processing mode or a hidden processing mode;
and performing page processing through the page processor indicated by the page processing mode, wherein the page processor comprises a display page processor or a hidden page processor.
In one embodiment, the determining a page processing manner based on the target event includes:
determining a visible state attribute value and a hidden state attribute value based on the target event;
determining a page processing mode corresponding to the target event according to the visible state attribute value and the hidden state attribute value;
the visible state attribute value comprises a first visible attribute value or a second visible attribute value, the hidden state attribute value comprises a first Boolean value or a second Boolean value, the first visible attribute value is used for representing that the page is visible to a user, the second visible attribute value is used for representing that the page is invisible to the user, the first Boolean value is used for representing that the page is displayed, and the second Boolean value is used for representing that the page is hidden.
In one embodiment, the determining, according to the visible state attribute value and the hidden state attribute value, a page processing manner corresponding to the target event includes:
determining that a page processing mode corresponding to the target event is a display processing mode under the condition that the visible state attribute value is a first visible state attribute value and the hidden state attribute value is the first Boolean value; alternatively, the first and second electrodes may be,
and determining that the page processing mode corresponding to the target event is a hidden processing mode under the condition that the visible state attribute value is a second visible state attribute value and the hidden state attribute value is the second Boolean value.
In one embodiment, the determining the visible state attribute value and the hidden state attribute value based on the target event includes:
determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first boolean value if the target event includes a local foreground event and a local return event of the current application; alternatively, the first and second electrodes may be,
determining the visible state attribute value as the second visible attribute value and determining the hidden state attribute value as the second Boolean value if the target event includes a local background event and a local away event of the current application.
In one embodiment, the determining the visible state attribute value and the hidden state attribute value based on the target event includes:
under the condition that the target event comprises a page visibility change event of the target page, acquiring a document visibility state and a document hiding state of the target page;
and determining a visible state attribute value according to the document visible state, and determining the hidden state attribute value according to the document hidden state.
In one embodiment, the determining the visible state attribute value and the hidden state attribute value based on the target event includes:
and under the condition that the target event comprises a page display event of the target page, if a page is required to be loaded from a cache at present, determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first Boolean value.
In one embodiment, the listening to the current application program and the target page opened in the current application program includes:
determining the device type of the terminal device for starting the current application program;
determining a target event to be monitored aiming at a current application program and a target page opened in the current application program according to the equipment type of the terminal equipment;
and monitoring the target event.
In one embodiment, the performing, by the page processor indicated by the page processing mode, page processing includes:
executing page display processing by the display page processor under the condition that the page processing mode is the display processing mode; alternatively, the first and second electrodes may be,
and under the condition that the page processing mode is the hiding processing mode, executing page hiding processing through the hidden page processor.
In one embodiment, the performing, by the page processor indicated by the page processing mode, page processing includes:
and sending the processing parameters corresponding to the page processing mode to the current application program or the target page so as to enable the current application program or the target page to perform page processing through a page processor corresponding to the processing parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided a page processing apparatus including:
the monitoring unit is configured to monitor a current application program and a target page opened in the current application program through a pre-constructed hook function, wherein the target page is different from a page of the current application program;
the determining unit is configured to determine a page processing mode based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of the current application program or the target event of the target page, and the page processing mode comprises a display processing mode or a hiding processing mode;
and the processing unit is configured to execute the page processor indicated by the page processing mode to perform page processing, and the page processor comprises a display page processor or a hidden page processor.
In one embodiment, the determining unit is further configured to perform:
determining a visible state attribute value and a hidden state attribute value based on the target event;
determining a page processing mode corresponding to the target event according to the visible state attribute value and the hidden state attribute value;
the visible state attribute value comprises a first visible attribute value or a second visible attribute value, the hidden state attribute value comprises a first Boolean value or a second Boolean value, the first visible attribute value is used for representing that the page is visible to a user, the second visible attribute value is used for representing that the page is invisible to the user, the first Boolean value is used for representing that the page is displayed, and the second Boolean value is used for representing that the page is hidden.
In one embodiment, the determining unit is further configured to perform:
determining that a page processing mode corresponding to the target event is a display processing mode under the condition that the visible state attribute value is a first visible state attribute value and the hidden state attribute value is the first Boolean value; alternatively, the first and second electrodes may be,
and determining that the page processing mode corresponding to the target event is a hidden processing mode under the condition that the visible state attribute value is a second visible state attribute value and the hidden state attribute value is the second Boolean value.
In one embodiment, the determining unit is further configured to perform:
determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first boolean value if the target event includes a local foreground event and a local return event of the current application; alternatively, the first and second electrodes may be,
determining the visible state attribute value as the second visible attribute value and determining the hidden state attribute value as the second Boolean value if the target event includes a local background event and a local away event of the current application.
In one embodiment, the determining unit is further configured to perform:
acquiring a document visibility state and a document hiding state of the H5 page under the condition that the target event comprises a page visibility change event of the target page;
and determining a visible state attribute value according to the document visible state, and determining the hidden state attribute value according to the document hidden state.
In one embodiment, the determining unit is further configured to perform:
and under the condition that the target event comprises a page display event of the target page, if a page is required to be loaded from a cache at present, determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first Boolean value.
In one embodiment, the listening unit is further configured to perform:
determining the device type of the terminal device for starting the current application program;
determining a target event to be monitored aiming at a current application program and a target page opened in the current application program according to the equipment type of the terminal equipment;
and monitoring the target event.
In one embodiment, the processing unit is further configured to perform:
executing page display processing by the display page processor under the condition that the page processing mode is the display processing mode; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the page processing mode is the hiding processing mode, executing page hiding processing through the hidden page processor.
In one embodiment, the processing unit is further configured to perform:
and sending the processing parameters corresponding to the page processing mode to the current application program or the target page, so that the current application program or the target page carries out page processing through a page processor corresponding to the processing parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the page processing methods provided in the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the page processing methods provided in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which includes instructions that, when executed by a processor of an electronic device, enable the electronic device to perform any one of the page processing methods provided in the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the page processing method, the device, the electronic device and the storage medium provided by the embodiments of the present disclosure can monitor a current application program and a target page opened in the current application program through a pre-configured hook function, where the target page is different from a page of the current application program, and determine a page processing mode based on a target event when the target event is monitored, where the target event includes the target event of the current application program or the target event of the target page, and the page processing mode includes a display processing mode or a hide processing mode. Further, the corresponding page processing can be performed through the page processor indicated by the page processing mode, wherein the page processor includes a display page processor or a hidden page processor. Based on the page processing method, the page processing device, the electronic device and the storage medium provided by the embodiment of the application, the monitoring of the target event on the application program and the target page can be executed through the pre-constructed hook function, so that under the condition that the target event is monitored, the page display or page hiding processing can be performed based on the page processing mode indicated by the page processing mode corresponding to the target event, namely, the logic aggregation processing aiming at the display or hiding of the target page of various scenes is realized, the code development of the page display and hiding logic under various scenes is not required to be performed on each page, the problems of repeated development and code data redundancy can be relieved, the page frame is light and simple, the page optimization is realized, the workload of a developer can be reduced, and the development efficiency can be effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method of page processing according to an exemplary embodiment.
FIG. 2 is a flowchart illustrating a page processing method according to an exemplary embodiment.
FIG. 3 is a flowchart illustrating a page processing method according to an example embodiment.
FIG. 4 is a flowchart illustrating a page processing method according to an example embodiment.
FIG. 5 is a diagram illustrating a page processing method according to an example embodiment.
FIG. 6 is a diagram illustrating a page processing method according to an example embodiment.
Fig. 7 is a block diagram illustrating a page configuring apparatus according to an example embodiment.
FIG. 8 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
Fig. 1 is a flowchart illustrating a page processing method according to an exemplary embodiment, where this embodiment is illustrated by applying the method to a terminal, it may be 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 is implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
in step 102, a current application program and a target page opened in the current application program are monitored through a pre-constructed hook function, wherein the target page is different from a page of the current application program.
In the embodiment of the application, a hook function (hereinafter, referred to as a hook function) may be constructed in advance, and page display logic or page hiding logic of a target page in various scenes may be integrated through the hook function. The target page is different from the page of the current application program, that is, the target page is opened by the current application program and is different from the page of the current application program, for example: the target page may be an H5 page opened by the current application.
Illustratively, the hook function performs listening to the current application program and a target page opened in the current application program, such as: and monitoring the event triggered by the current application program and the event triggered by the target page opened in the current application program. The current application program is an application program which is started and operated currently by the terminal equipment, and the target page which is opened in the current application program is a page which is triggered and loaded and displayed in the current application program.
In step 104, in a case that a target event is monitored, a page processing manner is determined based on the target event, where the target event includes a target event of a current application program or a target event of a target page, and the page processing manner includes a display processing manner or a hide processing manner.
In the embodiment of the application, the hook function may determine a corresponding page processing mode based on a target event when a target event triggered by a current application or a target event triggered by a target page is monitored. The target event may be an event associated with a page display or page hiding operation to be currently executed, and in different scenarios, the application program or the target page may trigger the display or the hiding of the page through different events.
In the case of monitoring the target event, it may be determined whether to perform display processing or hiding processing on the page currently based on the target event, and then determine a corresponding page processing manner, for example: the page processing mode is determined to be the display processing mode in the case where it is determined to execute the display processing for the page based on the target event, or determined to be the hide processing mode in the case where it is determined to execute the hide processing for the page based on the target event.
In step 106, the page processing is performed through the page processor indicated by the page processing mode, where the page processor includes a display page processor or a hidden page processor.
In this embodiment, different page processing modes may indicate that different page processors are used to perform corresponding page processing. For example: when the page processing mode is the display processing mode, the page processor indicated by the page processing mode is a display page processor, and the display page processor is used for executing display processing aiming at the page, such as executing page initialization processing logic; or, when the page processing mode is the hidden processing mode, the page processor indicated by the page processing mode is a hidden page processor, and the hidden page processor is configured to execute hidden processing for a page, for example, execute page destruction logic. The page processor refers to the related technology for the page processing process of the page, and details of the page processing process are not described herein in this embodiment of the present application.
According to the page processing method provided by the embodiment of the application, a current application program and a target page opened in the current application program can be monitored through a preset hook function, wherein the target page is different from the page of the current application program, and a page processing mode is determined based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of the current application program or the target event of the target page, and the page processing mode comprises a display processing mode or a hidden processing mode. Further, the corresponding page processing can be performed through the page processor indicated by the page processing mode, wherein the page processor includes a display page processor or a hidden page processor. According to the page processing method provided by the embodiment of the application, the monitoring of the target event of the application program and the target page can be executed through the pre-constructed hook function, and under the condition that the target event is monitored, the processing of page display or page hiding can be performed based on the page processing mode indicated by the page processing mode corresponding to the target event, namely, the logic aggregation processing aiming at the target page display or hiding under various scenes is realized, the code development of page display and hidden logic under various scenes is not required to be performed on each page, the problems of repeated development and code data redundancy can be solved, the page frame is light and simple, the page optimization is realized, the workload of a developer can be reduced, the development efficiency can be effectively improved, the condition that the developer omits part of scenes is avoided, and the page stability can be improved.
In an exemplary embodiment, referring to fig. 2, in step 104, determining the page processing manner based on the target event may be implemented by:
in step 202, based on the target event, determining a visible state attribute value and a hidden state attribute value;
in step 204, determining a page processing mode corresponding to the target event according to the visible state attribute value and the hidden state attribute value;
the visible state attribute value (e.g. visibleState) is used for representing whether the page is visible to the user, and comprises a first visible attribute value or a second visible attribute value, wherein the first visible attribute value is used for representing that the page is visible to the user, and the second visible attribute value is used for representing that the page is not visible to the user. For example, the first visible state attribute value may be denoted as "visible" and the second visible state attribute value may be denoted as "hidden".
The page hidden state attribute value (e.g., hidden) is used to represent whether to hide the page, and may specifically include a first boolean value and a second boolean value, where the first boolean value is used to represent that the page is displayed, and the second boolean value is used to represent that the page is hidden. Illustratively, the first boolean value may be denoted as "false" and the second boolean value may be denoted as "true".
In the process of executing page processing for a page, the page processing is often implemented by a visible state attribute value and a hidden state attribute value. For example: under the condition that the visible state attribute value is 'visible' and the hidden state attribute value is 'false', determining that page display processing needs to be carried out on a page, and further determining that a page processing mode is a display processing mode; when the visible state attribute value is "hidden" and the hidden state attribute value is "true", it may be determined that page hiding processing needs to be performed on the page, and thus it may be determined that the page processing manner is a hiding processing manner.
According to the page processing method provided by the embodiment of the application, under the condition that the target event is monitored, the visible state attribute value and the hidden state attribute value can be determined according to the target event, the page processing mode is further determined based on the visible state attribute value and the hidden state attribute value, code development of page explicit and implicit logic under various scenes is not needed for each page, the problems of repeated development and code data redundancy can be relieved, a page frame is light and simple, and development efficiency can be effectively improved.
In an exemplary embodiment, in step 204, the page processing manner corresponding to the target event is determined according to the visible state attribute value and the hidden state attribute value, and the following steps are implemented:
determining a page processing mode corresponding to the target event as a display processing mode under the condition that the visible state attribute value is a first visible state attribute value and the hidden state attribute value is a first Boolean value; alternatively, the first and second electrodes may be,
and under the condition that the visible state attribute value is a second visible state attribute value and the hidden state attribute value is a second Boolean value, determining that the page processing mode corresponding to the target event is a hidden processing mode.
In the embodiment of the application, the first visible state attribute value is used for representing that the page is visible to a user, the first boolean value is used for representing that the page is displayed, and under the condition that the visible state attribute value is the first visible state attribute value and the hidden state attribute value is the first boolean value, the current page is not only visible to the user, but also needs to be displayed at present, so that the page processing mode corresponding to the current target event can be determined to be the display processing mode.
Or, since the second visible state attribute value is used for representing that the page is invisible to the user, and the first boolean value is used for representing that the page is hidden, when the visible state attribute value is the second visible state attribute value and the hidden state attribute value is the second boolean value, it indicates that the current page is not only invisible to the user, but also needs to be hidden, and thus it can be determined that the page processing mode corresponding to the current target event is a hiding processing mode.
After determining the page processing mode corresponding to the target event, corresponding page processing may be performed according to the page processor indicated by the page processing mode, for example: displaying a page or hiding a page, and the like.
According to the page processing method provided by the embodiment of the application, the page processing mode can be determined according to the specific values corresponding to the visible state attribute value and the hidden state attribute value, page processing is achieved, code development of page explicit and implicit logic under various scenes is not needed for each page, the problems of repeated development and code data redundancy can be relieved, a page frame is light and concise, and development efficiency can be effectively improved.
In an exemplary embodiment, in step 202, based on the target event, the visible state attribute value and the hidden state attribute value are determined, which may specifically be implemented by the following steps:
under the condition that the target event comprises a local foreground event and a local return event of the current application program, determining the attribute value of the visible state as a first visible attribute value and determining the attribute value of the hidden state as a first Boolean value; alternatively, the first and second electrodes may be,
and under the condition that the target event comprises a local background event and a local leaving event of the current application program, determining the visible state attribute value as a second visible attribute value and determining the hidden state attribute value as a second Boolean value.
In the embodiment of the present application, when switching between a target page and a current application interface (intra-end H5 switching) is performed, or switching between a front end and a background of a current application is performed, events triggered by the current application may include a local foreground (for example, native _ formed) event and a local return (for example, native _ return) event, a local background (for example, native _ background) event, and a local leave (for example, native _ leave) event.
Under the condition that a local foreground event and a local return event are monitored, the operation of background switching of a currently executed APP (Application) to a front end or page switching in the front end to a target page can be determined, namely the current target page is visible for a user and needs to be displayed, and then a display page processor logic is executed, namely the visible state attribute value is determined to be a first visible attribute value, and the hidden state attribute value is determined to be a first Boolean value. Illustratively, the visibleState value may be determined to be "visible" and the hidden value may be determined to be "false".
Or, under the condition that a local background event and a local leave event are monitored, it may be determined that an operation of switching a currently executed APP front end to a background or switching a target page to an intra-end page (intra-end H5 switching) is performed, that is, the current target page is invisible to a user and needs to be hidden, and then a hidden page processor logic is performed, that is, it is determined that the visible state attribute value is the second visible attribute value and that the hidden state attribute value is the second boolean value. Illustratively, the visibleState value may be determined to be "hide" and the hide value may be determined to be "true".
The page processing method provided by the embodiment of the application can monitor the local foreground event and the local return event of the current application program, and the local background event and the local leave event, so as to execute the display processing or the hiding processing of the target page when the corresponding events are monitored, and can realize the page display processing or the page hiding processing aiming at the scene of switching between the target page and the current application program interface or switching between the front end and the background of the current application program.
In an exemplary embodiment, referring to fig. 3, in step 202, based on the target event, the visible state attribute value and the hidden state attribute value are determined, which may specifically be implemented by the following steps:
in step 302, in case that the target event includes a page visibility change event of the target page, obtaining a document visibility state and a document hiding state of the target page;
in step 304, a visible state attribute value is determined based on the document visibility state and the hidden state attribute value is determined based on the document hidden state.
In the embodiment of the application, when jumping and returning between target pages are executed, the event triggered by the target pages is a page visibility change (e.g. visibility change) event. In case of monitoring the page visibility change event, the document visibility state (e.g. document.visibility state) and the document hiding state (e.g. document.hidden) of the current target page can be obtained.
Further, the document visibility state may be assigned as a visible state attribute value, and the document hidden state may be assigned as a hidden state attribute value, where possible values of the document visibility state include visible, hidden, and the like, and the document hidden state may include "false" and "true". That is, in the case of listening to the page visibility change event, the page display processing or the page hiding processing may be performed according to the document visibility state and the document hiding state, for example: the page hiding process is executed in a case where the document hiding state is "true", or the page displaying process is executed in a case where the document hiding state is "false".
The page processing method provided by the embodiment of the application can monitor the page visibility change event of the target page, and when the page visibility change event is monitored, the display processing or the hiding processing of the target page is executed according to the document visibility state and the document hiding state, so that the page display processing or the page hiding processing under the scene of switching and returning between the target pages can be realized.
In an exemplary embodiment, the determining the visible state attribute value and the hidden state attribute value in step 202 based on the target event includes:
and under the condition that the target event comprises a page display event of the target page, if the page is required to be loaded from the cache at present, determining the visible state attribute value as a first visible attribute value and determining the hidden state attribute value as a first Boolean value.
In the embodiment of the present application, since the page refresh processing is not executed when the target page on the iOS device is returned, so that the page initialization logic is not re-executed, special processing is required for the return of the target page on the iOS device in the embodiment of the present application. For example: because the iOS page triggers a page display (pageshow) event when the target page returns, and further, in the case of monitoring the page display event, it may be determined whether the page needs to be loaded from the cache at present (for example, it may be determined whether the page needs to be loaded from the cache by a value fed back by persistent).
The page processing method provided by the embodiment of the application is directed to the iOS device, and may monitor a page display event of a target page, so that when the page display event is monitored, if a page needs to be loaded from a cache, a visible state attribute value is determined as a first visible attribute value, and a hidden state attribute value is determined as a first boolean value, so as to execute page display processing according to the first visible attribute value and the first boolean value, and page display processing in a scenario where the target page of the iOS device is returned can be implemented.
In an exemplary embodiment, referring to fig. 4, in step 102, monitoring the current application program and an H5 page opened in the current application program may specifically be implemented by the following steps:
in step 402, determining the device type of the terminal device which starts the current application program;
in step 404, determining a target event to be monitored for a current application program and a target page opened in the current application program according to the device type of the terminal device;
in step 406, the target event is snooped.
In this embodiment of the present application, for different types of terminal devices, events triggered in the same scenario may be different, so before monitoring a current application program and a target page opened in the current application program, the device type of the current terminal device needs to be determined, and then a target event to be monitored for the current application program and the target page opened in the current application program is determined according to the type of the terminal device, so as to monitor the determined target event, and in a case that the target event is monitored, page display processing and page hiding processing are performed according to the target event (for a specific process, reference may be made to the related description of the foregoing embodiment, which is not described again in this embodiment of the present application).
For example, the device types of the terminal device may include an android device type and an iOS device type, and for the android device type, at the time of H5 page switching in the execution end, the triggered applications are a local foreground (e.g., native _ forward) event and a local return (e.g., native _ return) event, a local background (e.g., native _ background) event and a local leave (e.g., native _ leave) event, that is, the target objects to be monitored are the applications and are the local foreground (e.g., native _ forward) event and the local return (e.g., native _ return) event, the local background (e.g., native _ background) event and the local leave (e.g., native _ leave) event; for the iOS device type, under the condition that an intra-terminal H5 page returns, a page display event of the H5 page is triggered, that is, a target object to be monitored is the page display event. Therefore, for the iOS device, the corresponding target event may include: the pageshow event, visibilichange event, and the like, for the android device, the corresponding target event may include: native _ formed) event and local return (e.g.: native _ entry) event, local context (e.g.: native _ background) event and local departure (e.g.: native _ leave) event, visibiliychange event, etc.
The android device and the iOS device have performance inconsistency in page processing, and by adopting the page processing method provided by the embodiment of the application, the target event to be monitored for different device types can be determined according to the device type of the terminal device, so that page display and page hiding processing on the terminal devices of different device types can be realized, the performance inconsistency of the android device and the iOS device can be processed, a developer does not need to spend time on checking page problems caused by different device types, and the page stability and the development efficiency can be improved.
In an exemplary embodiment, in step 106, the page processing is performed by the page processor indicated by the page processing mode, which may specifically include the following steps:
executing page display processing through a display page processor under the condition that the page processing mode is a display processing mode; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the page processing mode is a hidden processing mode, executing page hiding processing through a hidden page processor.
In the embodiment of the present application, when the page processing mode is the display processing mode, the page display processing may be executed by the display page processor, or when the page processing mode is the hide processing mode, the page hide processing may be executed by the hide page processor.
It should be noted that, in the embodiment of the present application, the execution end of the page display processor and the execution end of the page hiding processor are not specifically limited, for example: the page display processing and the page hiding processing may be executed by a hook function, or the hook function may also transmit the visible state attribute parameter and the hidden state attribute value to the current application program or the target page, and the current application program or the target page determines a page processing mode for the page based on the visible state attribute parameter and the hidden state attribute value to execute the corresponding page display processing and the corresponding page hiding processing.
According to the page processing method provided by the embodiment of the application, display and hiding processing under various scenes for each target page can be realized through a hook function, code development of page display and hiding logic under various scenes is not needed for each page, the problems of repeated development and code data redundancy can be relieved, a page frame is light and simple, and development efficiency can be effectively improved.
In an exemplary embodiment, in the step 106, the page processing is performed by the page processor indicated by the page processing mode, and the method may specifically be implemented by the following steps:
and sending the processing parameters corresponding to the page processing mode to the current application program or the target page so that the current application program or the target page carries out page processing through the page processor corresponding to the processing parameters.
In the embodiment of the application, when the hook function is predefined, a key parameter of the hook function may be defined as an object, where two optional processing parameters may be included, which are 'visibleHandler' and 'hiddenHandler', and which may represent a page visible processor and a page invisible processor, respectively.
After the page processing mode for the target page is determined, the corresponding page processor can be determined based on the page processing mode, and then the processing parameters corresponding to the page processor are transmitted to the current application program or the target page, so that the current application program or the target page performs page processing through the page processor corresponding to the processing parameters, and corresponding page display processing or page hiding processing is executed.
According to the page processing method provided by the embodiment of the application, display and hiding processing under various scenes for each target page can be realized through a hook function, code development of page display and hiding logic under various scenes is not needed for each page, the problems of repeated development and code data redundancy can be relieved, a page frame is light and simple, and development efficiency can be effectively improved.
In order to make the embodiments of the present application better understood by those skilled in the art, the embodiments of the present application are described below by specific examples.
Referring to fig. 5, in the embodiment of the present application, based on the vue2.X + composition API technology as a premise, a Hook means is used to perform centralized processing on various scenes such as page switching or page returning, and a developer may also process explicit and implicit logic by itself according to a key variable returned by a Hook function.
As shown in fig. 6, the key parameter of the hook function may be predefined as an object, and includes two optional processing parameters, namely, 'visibleHandler' and 'hiddenHandler', which represent a page visible processor and a page invisible processor, respectively. Inside the hook function, a key variable 'visible state' is defined, the values of which are enumerated values hidden, visible, prerender, unloaded, etc., and the value type of which is boolean.
For various scenes, a page display processor and a page hiding processor can be executed in a centralized manner, and key variables are assigned, as an example: aiming at scenes of switching between a foreground and a background of an application program and switching between a native page and a target page, under the condition that 'native _ formed' and 'native _ entry' events in the application program are monitored, executing page visible processor logic, setting a 'visible' value as 'visible' and setting a hidden value as 'false'; after monitoring the events of ' native _ background ' and ' native _ leave ', executing page invisible processor logic, and setting the value of ' visibleState ' as ' hidden ' and the value of hidden ' as ' true '; and when the page is unloaded, unloading the native event handler.
For the jump and return in the target page, monitoring a 'visibility change' event of the H5 page, assigning document.visibility State to a visible state variable, assigning document.hidden to hidden, executing a hidden page processor for true according to the value of document.hidden, and executing a display page processor for false in the event callback.
For the target page, returning the H5 page in the IOS device side, when the detecting device detects that the device is running in the IOS device, if a pageshow event of the target page is monitored and it is determined that the page is loaded from the cache, setting a value of 'visible state' to 'visible', setting a value of 'hidden' to 'false', and executing the visible processor.
According to the page processing method provided by the embodiment of the application, a hook function is constructed in advance, the problem that under multiple scenes that an end H5 page is inconsistent in front and background switching, the end H5 page and the H5 page are switched, H5 page jumping and H5 page returning in an iOS device and an android device end and the like of the end H5 page is needed to be repeatedly and independently used for processing pain points of initialization or elements such as components and objects in the page in different scenes is solved, a scheme which is comprehensive in consideration and simple in use is provided, convenience is brought to a developer to use, the developer does not need to consider various scenes, a processor which transmits initialization and destruction of the page is directly called, development cost and manpower are saved, development efficiency is improved, meanwhile, the problem that the developer does not consider that bug is not fully generated due to consideration is avoided, page stability is improved, automatic destruction of explicit logic is achieved to a certain degree, and a convenient and optimized space is provided for logic development of the end H5 page, the components and the like.
It should be understood that although the various steps in the flowcharts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
It is understood that the same/similar parts among the various embodiments of the method described above in this specification can be referred to each other, and each embodiment focuses on the differences from the other embodiments, and where relevant, reference may be made to the description of the other method embodiments.
FIG. 7 is a block diagram illustrating a page processing apparatus according to an example embodiment. Referring to fig. 7, the page processing apparatus 700 includes a listening unit 702, a determining unit 704, and a processing unit 706, wherein,
a monitoring unit 702 configured to perform monitoring on a current application program and a target page opened in the current application program through a pre-configured hook function, wherein the target page is different from a page of the current application program;
a determining unit 704, configured to determine a page processing manner based on a target event when the target event is monitored, where the target event includes a target event of the current application or a target event of the target page, and the page processing manner includes a display processing manner or a hidden processing manner;
and the processing unit 706 is configured to execute the page processor indicated by the page processing mode to perform page processing, where the page processor includes a display page processor or a hidden page processor.
According to the page processing device provided by the embodiment of the application, monitoring of the target event can be performed on the application program and the target page through the pre-constructed hook function, and under the condition that the target event is monitored, the page display or page hiding processing can be performed based on the page processing mode indicated by the page processing mode corresponding to the target event, so that the logic aggregation processing aiming at the display or hiding of the target page in various scenes is realized, code development of page display and hiding logic under various scenes is not required for each page, the problems of repeated development and code data redundancy can be relieved, a page frame is light and simple, page optimization is realized, the workload of a developer can be reduced, and the development efficiency can be effectively improved.
In one embodiment, the determining unit 704 is further configured to perform:
determining a visible state attribute value and a hidden state attribute value based on the target event;
determining a page processing mode corresponding to the target event according to the visible state attribute value and the hidden state attribute value;
the visible state attribute value comprises a first visible attribute value or a second visible attribute value, the hidden state attribute value comprises a first Boolean value or a second Boolean value, the first visible attribute value is used for representing that the page is visible to a user, the second visible attribute value is used for representing that the page is invisible to the user, the first Boolean value is used for representing that the page is displayed, and the second Boolean value is used for representing that the page is hidden.
In one embodiment, the determining unit 704 is further configured to perform:
determining that a page processing mode corresponding to the target event is a display processing mode under the condition that the visible state attribute value is a first visible state attribute value and the hidden state attribute value is the first Boolean value; alternatively, the first and second electrodes may be,
and determining that the page processing mode corresponding to the target event is a hidden processing mode under the condition that the visible state attribute value is a second visible state attribute value and the hidden state attribute value is the second Boolean value.
In one embodiment, the determining unit 704 is further configured to perform:
determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first boolean value if the target event includes a local foreground event and a local return event of the current application; alternatively, the first and second electrodes may be,
determining the visible state attribute value as the second visible attribute value and determining the hidden state attribute value as the second Boolean value if the target event includes a local background event and a local away event of the current application.
In one embodiment, the determining unit 704 is further configured to perform:
under the condition that the target event comprises a page visibility change event of the target page, acquiring a document visibility state and a document hiding state of the target page;
and determining a visible state attribute value according to the document visible state, and determining the hidden state attribute value according to the document hidden state.
In one embodiment, the determining unit 704 is further configured to perform:
and under the condition that the target event comprises a page display event of the target page, if a page is required to be loaded from a cache at present, determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first Boolean value.
In one embodiment, the listening unit 702 is further configured to perform:
determining the device type of the terminal device for starting the current application program;
determining a target event to be monitored aiming at a current application program and a target page opened in the current application program according to the equipment type of the terminal equipment;
and monitoring the target event.
In one embodiment, the processing unit 706 is further configured to perform:
executing page display processing by the display page processor under the condition that the page processing mode is the display processing mode; alternatively, the first and second electrodes may be,
and under the condition that the page processing mode is the hiding processing mode, executing page hiding processing through the hidden page processor.
In one embodiment, the processing unit 706 is further configured to perform:
and sending the processing parameters corresponding to the page processing mode to the current application program or the target page so as to enable the current application program or the target page to perform page processing through a page processor corresponding to the processing parameters.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating an electronic device 900 for a page processing method according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 8, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or components of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes instructions executable by the processor 820 of the electronic device 800 to perform the above-described method.
It should be noted that the descriptions of the above-mentioned apparatus, the electronic device, the computer-readable storage medium, the computer program product, and the like according to the method embodiments may also include other embodiments, and specific implementations may refer to the descriptions of the related method embodiments, which are not described in detail herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A page processing method is characterized by comprising the following steps:
monitoring a current application program and a target page opened in the current application program through a pre-constructed hook function, wherein the target page is different from the page of the current application program;
determining a page processing mode based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of the current application program or the target event of the target page, and the page processing mode comprises a display processing mode or a hidden processing mode;
and performing page processing through the page processor indicated by the page processing mode, wherein the page processor comprises a display page processor or a hidden page processor.
2. The method of claim 1, wherein determining a page handling mode based on the target event comprises:
determining a visible state attribute value and a hidden state attribute value based on the target event;
determining a page processing mode corresponding to the target event according to the visible state attribute value and the hidden state attribute value;
the visible state attribute value comprises a first visible attribute value or a second visible attribute value, the hidden state attribute value comprises a first Boolean value or a second Boolean value, the first visible attribute value is used for representing that the page is visible to a user, the second visible attribute value is used for representing that the page is invisible to the user, the first Boolean value is used for representing that the page is displayed, and the second Boolean value is used for representing that the page is hidden.
3. The method according to claim 2, wherein the determining a page processing manner corresponding to the target event according to the visible state attribute value and the hidden state attribute value comprises:
determining that a page processing mode corresponding to the target event is a display processing mode under the condition that the visible state attribute value is a first visible state attribute value and the hidden state attribute value is the first Boolean value; alternatively, the first and second electrodes may be,
and determining that the page processing mode corresponding to the target event is a hidden processing mode under the condition that the visible state attribute value is a second visible state attribute value and the hidden state attribute value is the second Boolean value.
4. The method of claim 2, wherein determining a visible state attribute value and a hidden state attribute value based on the target event comprises:
determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first boolean value if the target event includes a local foreground event and a local return event of the current application; alternatively, the first and second electrodes may be,
determining the visible state attribute value as the second visible attribute value and determining the hidden state attribute value as the second Boolean value if the target event includes a local context event and a local away event of the current application.
5. The method of claim 2, wherein determining a visible state attribute value and a hidden state attribute value based on the target event comprises:
under the condition that the target event comprises a page visibility change event of the target page, acquiring a document visibility state and a document hiding state of the target page;
and determining a visible state attribute value according to the document visible state, and determining the hidden state attribute value according to the document hidden state.
6. The method of claim 2, wherein determining a visible state attribute value and a hidden state attribute value based on the target event comprises:
and under the condition that the target event comprises a page display event of the target page, if a page is required to be loaded from a cache at present, determining the visible state attribute value as the first visible attribute value and determining the hidden state attribute value as the first Boolean value.
7. The method according to any one of claims 1 to 6, wherein the listening of the current application and the target page opened in the current application comprises:
determining the device type of the terminal device for starting the current application program;
determining a target event to be monitored aiming at a current application program and a target page opened in the current application program according to the equipment type of the terminal equipment;
and monitoring the target event.
8. The method according to any one of claims 1 to 6, wherein the performing, by the page handler indicated by the page handling mode, page handling includes:
executing page display processing by the display page processor under the condition that the page processing mode is the display processing mode; alternatively, the first and second electrodes may be,
and under the condition that the page processing mode is the hiding processing mode, executing page hiding processing through the hidden page processor.
9. The method according to any one of claims 1 to 6, wherein the performing, by the page handler indicated by the page handling mode, page handling includes:
and sending the processing parameters corresponding to the page processing mode to the current application program or the target page so as to enable the current application program or the target page to perform page processing through a page processor corresponding to the processing parameters.
10. A page processing apparatus, comprising:
the monitoring unit is configured to monitor a current application program and a target page opened in the current application program through a pre-constructed hook function, wherein the target page is different from a page of the current application program;
the determining unit is configured to determine a page processing mode based on a target event under the condition that the target event is monitored, wherein the target event comprises the target event of the current application program or the target event of the target page, and the page processing mode comprises a display processing mode or a hiding processing mode;
and the processing unit is configured to execute the page processor indicated by the page processing mode to perform page processing, and the page processor comprises a display page processor or a hidden page processor.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page processing method of any of claims 1 to 9.
12. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the page processing method of any of claims 1 to 9.
CN202211107209.9A 2022-09-13 2022-09-13 Page processing method and device, electronic equipment and storage medium Active CN115203618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211107209.9A CN115203618B (en) 2022-09-13 2022-09-13 Page processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211107209.9A CN115203618B (en) 2022-09-13 2022-09-13 Page processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115203618A true CN115203618A (en) 2022-10-18
CN115203618B CN115203618B (en) 2023-01-20

Family

ID=83572023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211107209.9A Active CN115203618B (en) 2022-09-13 2022-09-13 Page processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115203618B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654831A (en) * 2011-03-04 2012-09-05 百度在线网络技术(北京)有限公司 Device and method for intensively controlling WEB page event and state
CN103376977A (en) * 2012-04-23 2013-10-30 腾讯科技(深圳)有限公司 Display method and display device for browser
WO2014067442A1 (en) * 2012-11-02 2014-05-08 Tencent Technology (Shenzhen) Company Limited Page browsing method and browser
CN110162730A (en) * 2019-04-30 2019-08-23 北京梧桐车联科技有限责任公司 Information processing method, device, computer equipment and storage medium
CN110781425A (en) * 2019-10-25 2020-02-11 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN113609417A (en) * 2021-07-26 2021-11-05 珠海格力电器股份有限公司 Method, device, equipment and medium for processing mobile terminal page

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654831A (en) * 2011-03-04 2012-09-05 百度在线网络技术(北京)有限公司 Device and method for intensively controlling WEB page event and state
CN103376977A (en) * 2012-04-23 2013-10-30 腾讯科技(深圳)有限公司 Display method and display device for browser
WO2014067442A1 (en) * 2012-11-02 2014-05-08 Tencent Technology (Shenzhen) Company Limited Page browsing method and browser
CN110162730A (en) * 2019-04-30 2019-08-23 北京梧桐车联科技有限责任公司 Information processing method, device, computer equipment and storage medium
CN110781425A (en) * 2019-10-25 2020-02-11 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN113609417A (en) * 2021-07-26 2021-11-05 珠海格力电器股份有限公司 Method, device, equipment and medium for processing mobile terminal page

Also Published As

Publication number Publication date
CN115203618B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
WO2016041312A1 (en) Application program running method and device
CN106354504B (en) Message display method and device
CN111970561B (en) Video cover generation method, system, device, electronic equipment and storage medium
CN105912204B (en) Method and device for starting application interface
CN107463372B (en) Data-driven page updating method and device
CN106708967B (en) Page display method and device
CN108984098B (en) Information display control method and device based on social software
US11397596B2 (en) Method and device for controlling pop-up window, electronic device, and storage medium
US20190012299A1 (en) Displaying page
CN109521923B (en) Floating window control method and device and storage medium
CN110809036A (en) Resource updating method and device
CN115203618B (en) Page processing method and device, electronic equipment and storage medium
CN113778687B (en) Memory allocation information processing method and device, electronic equipment and storage medium
CN111596980B (en) Information processing method and device
CN114443160A (en) Message pushing method and device, electronic equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN107391128B (en) Method and device for monitoring virtual file object model vdom
CN111597106A (en) Point burying management method and device
CN106126246B (en) Item display method and device
CN113360341B (en) Front-end application maintenance and loading method and device
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN115373763B (en) Plug-in loading method and device, electronic equipment and storage medium
CN112506628B (en) Agent program management method, device, computer equipment and storage medium
CN110347394B (en) Software code analysis method and device
CN111596949B (en) Method and device for developing application program

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