CN116340669A - Page function operation method, page function operation system and storage medium - Google Patents

Page function operation method, page function operation system and storage medium Download PDF

Info

Publication number
CN116340669A
CN116340669A CN202310301671.0A CN202310301671A CN116340669A CN 116340669 A CN116340669 A CN 116340669A CN 202310301671 A CN202310301671 A CN 202310301671A CN 116340669 A CN116340669 A CN 116340669A
Authority
CN
China
Prior art keywords
page function
event
target page
function event
progress
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
CN202310301671.0A
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202310301671.0A priority Critical patent/CN116340669A/en
Publication of CN116340669A publication Critical patent/CN116340669A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses an operation method, an operation system and an operation device of a page function, which are used for the technical field of page functions. The method comprises the following steps: acquiring a target page function event meeting a preset operation time length condition from at least one page function event stored in an event queue, wherein the target page function event corresponds to a post expansion event; operating the target page function event in a background in an asynchronous mode, and displaying the operation progress of the target page function event; and executing the post expansion event corresponding to the target page function event when the operation progress meets the operation ending condition so as to complete the page function corresponding to the target page function event. The target page function event meeting the preset operation time length condition is operated in the background in an asynchronous mode, and the operation progress of the target page function event is displayed, so that a user can intuitively determine whether the page function with longer time consumption is operated.

Description

Page function operation method, page function operation system and storage medium
Technical Field
The embodiment of the application relates to the technical field of page functions, in particular to a page function operation method, a page function operation system and a page function operation device.
Background
web (WorldWideWeb), the global wide area network, also known as the world wide web, is a global, dynamically interactive, cross-platform, distributed graphical information system based on hypertext and HTTP. The network service is established on the Internet, a graphical and easily-accessible visual interface is provided for a browser to search and browse information on the Internet, and documents and hyperlinks organize information nodes on the Internet into a mutually-associated network structure.
However, in the process of executing the page function by clicking the web page in the web page, if the execution of the page function takes a long time, such as time-consuming request function: excel is exported to a plurality of data, so that a user is difficult to determine whether the time-consuming request function is executed, and the user is easy to click repeatedly and repeatedly execute the time-consuming request function.
Disclosure of Invention
The embodiment of the application provides a page function operation method, an operation system and a device thereof, which can enable a user to intuitively determine whether the page function with longer time consumption is operated.
An embodiment of the present application provides a method for operating a page function, including:
acquiring a target page function event meeting a preset operation time length condition from at least one page function event stored in an event queue, wherein the target page function event corresponds to a post expansion event;
operating the target page function event in a background in an asynchronous mode, and displaying the operation progress of the target page function event;
and executing the post expansion event corresponding to the target page function event when the operation progress meets the operation ending condition so as to complete the page function corresponding to the target page function event.
Optionally, the obtaining the target page function event meeting the preset operation time length condition includes:
determining the operation time length of each page function event in the event queue according to a preset time rule;
and acquiring a target page function event with the operation time reaching the preset operation time.
Optionally, after the target page function event meeting the preset operation time length condition is obtained, the method further includes:
and configuring a time-consuming identifier for the target page function event so as to operate the target page function event in a background in an asynchronous mode according to the time-consuming identifier.
Optionally, running the target page function event in the background in an asynchronous manner includes:
determining a pre-expansion event corresponding to the target page function event in the event queue;
and after the front expansion event is operated, operating the target page function event in a background in an asynchronous mode.
Optionally, displaying the running progress of the target page function event includes:
when the target page function event starts to run, a suspension progress control is created;
and displaying the running progress of the target page function event through the suspension progress control.
Optionally, displaying, by the suspension progress control, the running progress of the target page function event includes:
when the operation of the target page function event is completed, controlling the suspension progress control to display a prompt for the completion of the operation of the target page function event;
and after the operation of the target page function event is stopped, controlling the suspension progress control to clear the operation progress of the target page function event.
Optionally, executing the post expansion event corresponding to the target page function event when the running progress meets the running ending condition includes:
callback an operation result to an insertion point of the target page function event in the event queue according to the operation progress;
and if the operation result is that the operation is successful, executing the post expansion event corresponding to the insertion point.
The method according to the first aspect of the present application may be implemented in a specific implementation using the content according to the second aspect of the present application.
A second aspect of the present application provides a system for operating a page function, including:
the system comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring a target page function event meeting the condition of a preset operation duration from at least one page function event stored in an event queue, and the target page function event corresponds to a post expansion event;
the operation unit is used for operating the target page function event in the background in an asynchronous mode;
the display unit is used for displaying the running progress of the target page function event;
and the execution unit is used for executing the post expansion event corresponding to the target page function event when the running progress meets the running ending condition so as to complete the page function corresponding to the target page function event.
A third aspect of the embodiments of the present application provides an electronic device, including:
a central processing unit, a memory and an input/output interface;
the memory is a short-term memory or a persistent memory;
the central processor is configured to communicate with the memory and to execute instruction operations in the memory to perform the method described in the first aspect of the embodiments of the present application or any particular implementation of the first aspect.
A fourth aspect of the embodiments provides a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform a method as described in the first aspect of the embodiments or any specific implementation of the first aspect of the embodiments.
A fifth aspect of the embodiments of the present application provides a computer program product comprising instructions or a computer program which, when run on a computer, causes the computer to perform the method as described in the first aspect of the embodiments of the present application or any specific implementation of the first aspect.
From the above technical solutions, the embodiments of the present application have the following advantages:
the method comprises the following steps: acquiring a target page function event meeting a preset operation time length condition from at least one page function event stored in an event queue, wherein the target page function event corresponds to a post expansion event; operating the target page function event in a background in an asynchronous mode, and displaying the operation progress of the target page function event; and executing the post expansion event corresponding to the target page function event when the operation progress meets the operation ending condition so as to complete the page function corresponding to the target page function event. The target page function event meeting the preset operation time length condition is operated in the background in an asynchronous mode, and the operation progress of the target page function event is displayed, so that a user can intuitively determine whether the page function with longer time consumption is operated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a schematic diagram of an application scenario disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of an operation flow of a page function disclosed in an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an operation flow of another page function disclosed in an embodiment of the present application;
FIG. 4 is a schematic diagram of an operating system of a page function disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the following description, reference is made to "one embodiment" or "one specific example" and the like, which describe a subset of all possible embodiments, but it is to be understood that "one embodiment" or "one specific example" may be the same subset or a different subset of all possible embodiments and may be combined with each other without conflict. In the following description, the term plurality refers to at least two. Some value as referred to herein reaches a threshold value (if any), and in some specific examples may include the former being greater than the latter.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
For ease of understanding and description, application scenarios of the present application will be briefly described before further detailed description of embodiments of the present application. As shown in fig. 1, a user may trigger a page function that needs to be executed by the front end through a page operating system in the page display device 101, the page display device 101 and the data running device 102 may perform data communication to trigger a function running system in the data running device 102 to run the page function, and then the data running device 102 feeds back a running result to the page display device 101. The page display device 101 may be a computer or a mobile phone, which is not limited herein, and the data running device 102 may be a background server or a running host, which is not limited herein. It will be appreciated that the page display device 101 may be communicatively coupled to one or more data manipulation devices 102, and is not limited in this regard. The page display device 101 may run a presentation web page, and the user may execute the page function by clicking the web page, however, if the execution time of the page function is long in the process of executing the page function by clicking the web page, for example, exporting a plurality of data into an excel table file based on a request, it is difficult for the user to determine whether the time-consuming request function is executed, which easily causes the user to repeatedly click and repeatedly execute the time-consuming request function.
In order to at least partially solve the above technical problems, the present application provides a page function operation method, and the method is described in further detail below.
Referring to fig. 2, an embodiment of a method for operating a page function is provided, which includes steps 201-204.
201. And acquiring the target page function event meeting the preset operation time length condition from the event queue.
In the embodiment of the application, the target page function event meeting the preset operation time length condition can be obtained from the event queue. Specifically, a target page function event meeting a preset operation duration condition is obtained from at least one page function event stored in an event queue, wherein the target page function event corresponds to a post expansion event. It can be understood that the page function events in the event queue are arranged in time sequence, and in general, the page function event arranged at the head of the queue will be executed first, and the later the page function event is executed later. The target page function event meeting the preset operation duration condition refers to that the operation duration of the target page function event reaches the preset operation duration, for example, the preset operation duration may be 2 seconds or 3 seconds, which is not limited herein. In the operation of the page function, the feedback of the operation result of the page function is generally faster (in millisecond level), that is, the target page function event meeting the preset operation time length condition is a time-consuming page function event with longer operation time.
202. The target page function event is run in an asynchronous manner in the background.
Specifically, after determining the target page function event meeting the preset operation duration condition, when the event in the event queue is operated to the target page function event in time sequence, the target page function event can be extracted, and the target page function event is operated in an asynchronous mode in the background. The time-consuming page function event is extracted, the time-consuming page function event is changed from synchronous operation to asynchronous operation, the execution of the post expansion event corresponding to the time-consuming page function event is suspended, and the next page function event of the time-consuming page function event in the event queue in time sequence is continuously executed.
203. And displaying the running progress of the target page function event.
Specifically, in the process of running the target page function event in an asynchronous manner in the background, the running progress of the target page function event can be obtained in real time, and the running progress of the target page function event is displayed. The running progress of the target page function event can be displayed on the page operating system through various modes such as a progress window or a progress control, the progress control comprises but is not limited to a suspension progress control, a progress control embedded in a page, and the like, and the specific implementation mode is not limited herein. The user can intuitively obtain the running progress of the target page function event from the page operating system, namely intuitively obtain the running progress of the time-consuming page function event.
It will be appreciated that the above steps 202 and 203 may be performed synchronously, i.e. the background runs the target page function event asynchronously while the running progress of the target page function event is displayed.
204. And executing the post expansion event corresponding to the target page function event according to the running progress.
In the embodiment of the application, the post expansion event corresponding to the target page function event is executed according to the running progress so as to complete the page function corresponding to the target page function event. Specifically, determining to execute or not execute a post expansion event corresponding to the target page function event according to the running progress, wherein the running progress can comprise that running is not started, running is in progress and running is completed, and executing the post expansion event corresponding to the target page function event when the running progress meets the running ending condition; in general, when the running progress of the target page function event is running completion, the post expansion event corresponding to the target page function event is executed, and the page function corresponding to the target page function event is completed.
It can be understood that each page function event has a corresponding post-expansion event, and when the page function event and the corresponding post-expansion event are all running, the page function corresponding to the page function event is calculated to be completed. If the page function is to export an excel table file, the page function event is to generate an excel table file from a plurality of data, and the corresponding post expansion event is to display the excel table file.
In summary, in the embodiment of the present application, from at least one page function event stored in an event queue, a target page function event meeting a preset operation duration condition is obtained, where the target page function event corresponds to a post expansion event; operating the target page function event in a background in an asynchronous mode, and displaying the operation progress of the target page function event; and executing the post expansion event corresponding to the target page function event according to the running progress so as to complete the page function corresponding to the target page function event. The target page function event meeting the preset operation time length condition is operated in the background in an asynchronous mode, and the operation progress of the target page function event is displayed, so that a user can intuitively determine whether the page function with longer time consumption is operated.
With reference to fig. 3, on the basis of the above description, some specific possible implementation examples will be provided below, and in practical applications, implementation contents between these examples may be implemented by combining as needed according to the corresponding functional principles and application logic. The embodiment shown in fig. 3 provides a method for page functions specifically including steps 301-304.
301. And acquiring the target page function event reaching the preset operation time in the event queue according to the preset time rule.
In the embodiment of the application, the target page function event reaching the preset operation time length in the event queue can be obtained according to the preset time rule; specifically, determining the operation time length of each page function event in the event queue according to a preset time rule; and acquiring a target page function event with the operation time reaching the preset operation time. The determining the operation time length of each page function event in the event queue according to the preset time rule may be obtaining the operation time length of the page function event through a background database query operation, or manually configuring the operation time length of the page function event, which is not limited herein.
302. And after the operation of the pre-expansion event is finished, the target page function event is operated in a background in an asynchronous mode.
In the embodiment of the application, after the target page function event is determined, a time-consuming identifier can be configured for the target page function event, so that the target page function event can be operated in a background in an asynchronous mode according to the time-consuming identifier. The time-consuming identifier may be an event name or a method name, and is not limited herein. When the time-consuming identification is configured, the configuration can be manually configured aiming at the target page function event at the framework layer, and the configuration can be started at the designer. It can be understood that after the time-consuming identifier is configured on the target page function event, the target page function event can be independently extracted from the event queue, and the synchronous operation of the post expansion event is changed into asynchronous operation, namely, the post expansion event is packaged into a success callback method and a failure callback method. Whether the background is operated or not and the corresponding callback method can be independently configured for the page-level functions. And after the background execution of the target page function event is finished, finishing a post expansion event corresponding to the target page function event in an event triggering or method callback mode.
When the page function event is triggered to be executed in the event queue, the general execution sequence is as follows: executing the pre-expansion event of the page function event, executing the page function event, and executing the post-expansion event of the page function event. The page function event is generally executed after the corresponding pre-expansion event is executed, namely, the processing of the background asynchronous callback of the page function event is generally executed after the pre-expansion event is executed. Specifically, a pre-expansion event corresponding to a target page function event in an event queue can be determined; and after the front expansion event is operated, operating the target page function event in the background in an asynchronous mode.
303. And displaying the running progress of the target page function event through the suspension progress control.
In the embodiment of the application, the running progress of the target page function event can be displayed through the suspension progress control; when the target page function event starts to run, a suspension progress control is created; the levitation progress control may be a levitation progress ball control or a levitation progress bar control, which is not limited herein. The suspension progress control can acquire the running progress of the target page function event in real time and update the running progress in real time, and the running progress of the target page function event is displayed through the suspension progress control.
It can be understood that, in the running progress process of the floating progress control in displaying the target page function event, after the running of the target page function event is completed, the floating progress control is controlled to display a prompt of completion of the running of the target page function event; and when the operation of the target page function event is stopped, controlling the suspension progress control to clear the operation progress of the target page function event.
304. And executing the post expansion event corresponding to the target page function event according to the operation result corresponding to the operation progress.
And executing the post expansion event corresponding to the target page function event according to the operation result corresponding to the operation progress. Specifically, the operation result can be recalled to the insertion point of the target page function event in the event queue according to the operation progress; the insertion point is typically the location in the event queue where the target page function event is located in time order. If the operation result is that the operation is successful, executing a post expansion event corresponding to the insertion point; if the operation result is operation failure, a prompt of the operation failure can be displayed on the suspension progress control. The method comprises the steps of initializing a progress control and obtaining a progress method callback aiming at an insertion point of a page function event, creating a suspension progress control when the page function event is a time-consuming request function (a target page function event), obtaining a corresponding progress at fixed time and updating in real time by the suspension progress control, triggering a subsequent corresponding operation (a post expansion event) when the request is completed, triggering corresponding processing and clearing the corresponding suspension progress control when the request is stopped.
Therefore, in the embodiment of the application, the background operation processing is uniformly performed on the page function by combining the web event bus mechanism, so that the processing of the suspension ball progress bar on the time-consuming function such as exporting excel is realized, the progress is asynchronously displayed, and when the callback corresponding subsequent method processing is requested to be completed, the visual experience of a user is improved, and the repeated execution of the page function is avoided. Furthermore, for the prior art of time-consuming page function events, progress detail processing is added to the time-consuming page function events independently, so that the code development coupling degree is high; by means of page function configuration, the embodiment of the application can independently start background operation aiming at certain time-consuming operation at page level, optimize experience of time-consuming operation, and call back unified processing progress and display through a preset method. In addition, the embodiment of the application can be independently configured aiming at page level functions, and the controllable granularity is fine; the time-consuming operation experience is optimized, and the processing progress can be intuitively seen; and unified processing progress display is called back through a preset method, so that the code coupling degree is reduced.
Referring to fig. 4, a second aspect of the present application provides a specific example of a page function execution system, which includes:
an obtaining unit 401, configured to obtain a target page function event that meets a preset operation duration condition from at least one page function event stored in an event queue, where the target page function event corresponds to a post expansion event;
an operation unit 402, configured to operate the target page function event in an asynchronous manner in the background;
a display unit 403, configured to display an operation progress of the target page function event;
and the execution unit 404 is configured to execute a post expansion event corresponding to the target page function event according to the running progress, so as to complete a page function corresponding to the target page function event.
Optionally, the obtaining unit 401 is specifically configured to determine an operation duration of each page function event in the event queue according to a preset time rule; and acquiring a target page function event with the operation time reaching the preset operation time.
Optionally, after the target page function event meeting the preset operation time length condition is obtained, the method further includes: the configuration unit is used for configuring the time-consuming identifiers for the target page function events so as to operate the target page function events in a background in an asynchronous mode according to the time-consuming identifiers.
Optionally, the operation unit 402 is specifically configured to determine a pre-expansion event corresponding to the target page function event in the event queue; and after the front expansion event is operated, operating the target page function event in a background in an asynchronous mode.
Optionally, the display unit 403 is configured to create a suspension progress control when the target page function event starts to run; and displaying the running progress of the target page function event through the suspension progress control.
Optionally, the display unit 403 is specifically configured to control the suspension progress control to display a prompt that the operation of the target page function event is completed after the operation of the target page function event is completed; and after the operation of the target page function event is stopped, controlling the suspension progress control to clear the operation progress of the target page function event.
Optionally, the executing unit 404 is specifically configured to call back an operation result to an insertion point of the target page function event in the event queue according to the operation progress; and if the operation result is that the operation is successful, executing the post expansion event corresponding to the insertion point.
Referring to fig. 5, an electronic device 500 according to an embodiment of the present application may include one or more Central Processing Units (CPUs) 501 and a memory 505, where the memory 505 stores one or more application programs or data.
Wherein the memory 505 may be volatile storage or persistent storage. The program stored in the memory 505 may include one or more modules, each of which may include a series of instruction operations in the electronic device. Still further, the central processor 501 may be configured to communicate with the memory 505 and execute a series of instruction operations in the memory 505 on the electronic device 500.
The electronic device 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input/output interfaces 504, and/or one or more operating systems, such as WindowsServerTM, macOSXTM, unixTM, linuxTM, freeBSDTM, etc.
The cpu 501 may perform the operations performed by the foregoing first aspect or any specific method embodiment of the first aspect, which are not described herein.
A computer readable storage medium is provided comprising instructions which, when run on a computer, cause the computer to perform a method as described in the first aspect or any specific implementation of the first aspect.
A computer program product comprising instructions or a computer program is provided which, when run on a computer, causes the computer to perform the method as described above in the first aspect or any one of the specific implementations of the first aspect.
It should be understood that, in various embodiments of the present application, the sequence number of each step does not mean that the execution sequence of each step should be determined by the function and the internal logic, and should not limit the implementation process of the embodiments of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system and apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system or apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art, or in the form of a software product, which is stored in a storage medium (computer program product) and includes several instructions for causing a computer device (which may be a personal computer, a service server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, randomaccess memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (10)

1. A method for operating a page function, comprising:
acquiring a target page function event meeting a preset operation time length condition from at least one page function event stored in an event queue, wherein the target page function event corresponds to a post expansion event;
operating the target page function event in a background in an asynchronous mode, and displaying the operation progress of the target page function event;
and executing the post expansion event corresponding to the target page function event when the operation progress meets the operation ending condition so as to complete the page function corresponding to the target page function event.
2. The method according to claim 1, wherein the obtaining the target page function event satisfying a preset operation duration condition includes:
determining the operation time length of each page function event in the event queue according to a preset time rule;
and acquiring a target page function event with the operation time reaching the preset operation time.
3. The method according to claim 1, wherein after the target page function event satisfying the preset operation duration condition is obtained, further comprising:
and configuring a time-consuming identifier for the target page function event so as to operate the target page function event in a background in an asynchronous mode according to the time-consuming identifier.
4. The method of claim 1, wherein running the target page function event in the background in an asynchronous manner comprises:
determining a pre-expansion event corresponding to the target page function event in the event queue;
and after the front expansion event is operated, operating the target page function event in a background in an asynchronous mode.
5. The method of claim 1, wherein displaying the progress of the target page function event comprises:
when the target page function event starts to run, a suspension progress control is created;
and displaying the running progress of the target page function event through the suspension progress control.
6. The method of claim 5, wherein displaying the progress of the target page function event through the hover progress control comprises:
when the operation of the target page function event is completed, controlling the suspension progress control to display a prompt for the completion of the operation of the target page function event;
and after the operation of the target page function event is stopped, controlling the suspension progress control to clear the operation progress of the target page function event.
7. The operation method according to claim 1, wherein executing the post expansion event corresponding to the target page function event when the operation progress satisfies an operation end condition includes:
callback an operation result to an insertion point of the target page function event in the event queue according to the operation progress;
and if the operation result is that the operation is successful, executing the post expansion event corresponding to the insertion point.
8. A system for operating a page function, comprising:
the system comprises an acquisition unit, a storage unit and a storage unit, wherein the acquisition unit is used for acquiring a target page function event meeting the condition of a preset operation duration from at least one page function event stored in an event queue, and the target page function event corresponds to a post expansion event;
the operation unit is used for operating the target page function event in the background in an asynchronous mode;
the display unit is used for displaying the running progress of the target page function event;
and the execution unit is used for executing the post expansion event corresponding to the target page function event when the running progress meets the running ending condition so as to complete the page function corresponding to the target page function event.
9. An electronic device, comprising:
a central processing unit, a memory and an input/output interface;
the memory is a short-term memory or a persistent memory;
the central processor is configured to communicate with the memory and to execute instruction operations in the memory to perform the method of any of claims 1 to 7.
10. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202310301671.0A 2023-03-13 2023-03-13 Page function operation method, page function operation system and storage medium Pending CN116340669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310301671.0A CN116340669A (en) 2023-03-13 2023-03-13 Page function operation method, page function operation system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310301671.0A CN116340669A (en) 2023-03-13 2023-03-13 Page function operation method, page function operation system and storage medium

Publications (1)

Publication Number Publication Date
CN116340669A true CN116340669A (en) 2023-06-27

Family

ID=86894475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310301671.0A Pending CN116340669A (en) 2023-03-13 2023-03-13 Page function operation method, page function operation system and storage medium

Country Status (1)

Country Link
CN (1) CN116340669A (en)

Similar Documents

Publication Publication Date Title
US11328114B2 (en) Batch-optimized render and fetch architecture
EP3518124A1 (en) Webpage rendering method and related device
US11055085B2 (en) Method, apparatus, and system for hot-deploying application
US20180011720A1 (en) Embedding non-blocking help components in a display page using discovery drawer feature cues
CN110221889B (en) Page display method and device, electronic equipment and storage medium
US20160057220A1 (en) System for cloud computing using web components
CN102449602A (en) System and method for reducing startup cost of a software application
KR101962301B1 (en) Caching pagelets of structured documents
EP3396542B1 (en) Database operating method and device
CN110781067A (en) Method, device, equipment and storage medium for calculating starting time consumption
CN115455058A (en) Cache data processing method and device, computer equipment and storage medium
CN115080016A (en) Extended function implementation method, device, equipment and medium based on UE editor
CN114091672A (en) Distributed model reasoning method and device, electronic device and medium
CN109325199A (en) It is a kind of to reduce the method and electronic equipment that webpage redraws number using programming language
CN1619500A (en) System and methods for synchronizing software execution across data processing systems and platforms
CN113476853A (en) Data processing method and device for interactive tasks, electronic equipment and storage medium
CN116340669A (en) Page function operation method, page function operation system and storage medium
CN113304469A (en) Game player matching method and device and computer equipment
EP3642727B1 (en) Resource pre-fetch using age threshold
KR20150029719A (en) A web browser operation method and system
JP5373710B2 (en) Index update apparatus and method
CN113436604B (en) Method and device for broadcasting content, electronic equipment and storage medium
US20140282477A1 (en) Automatic updating of data in application programs
CN114896061A (en) Training method of computing resource control model, and computing resource control method and device
CN113221041A (en) Page display method, device, equipment and storage medium based on cache mechanism

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