CN110704782A - Page response method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN110704782A
CN110704782A CN201910944413.8A CN201910944413A CN110704782A CN 110704782 A CN110704782 A CN 110704782A CN 201910944413 A CN201910944413 A CN 201910944413A CN 110704782 A CN110704782 A CN 110704782A
Authority
CN
China
Prior art keywords
page
target page
page operation
target
execution
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
CN201910944413.8A
Other languages
Chinese (zh)
Inventor
蒋奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910944413.8A priority Critical patent/CN110704782A/en
Publication of CN110704782A publication Critical patent/CN110704782A/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing

Abstract

The embodiment of the disclosure discloses a page response method and device, electronic equipment and a storage medium. The page response method comprises the following steps: the method comprises the steps of receiving a page operation request for a target page, determining a target page operation corresponding to the page operation request, and executing the target page operation if the target page operation meets an immediate execution condition.

Description

Page response method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer application, and in particular relates to a page response method and device, an electronic device and a storage medium.
Background
The smart phone and the wireless network not only solve the problem of two-party or multi-party communication, but also provide more choices for the learning, working, entertainment and the like of the user. Currently, various application software is usually installed in a mobile phone of a user. In order to increase user stickiness, developers of application software may continually optimize the application software.
At present, the common page opening process in application software is as follows: when a page opening request is received, putting the page opening operation into an operation queue, and executing the operation until the event is circularly executed to the page opening operation. Because the operations of requesting page opening and executing page opening are asynchronous operations, the problem of inconsistent request and response states is easy to occur, and the response speed is slow, which affects the user experience.
Disclosure of Invention
The embodiment of the disclosure provides a page response method, a page response device, an electronic device and a storage medium, which are used for solving the technical problems of inconsistent request and response states and long response time caused by asynchronous operation modes of page opening request and opening operation execution, reasonably configuring page response and reducing the time for a user to wait for response.
In a first aspect, an embodiment of the present disclosure provides a page response method, where the method includes:
receiving a page operation request for a target page, and determining a target page operation corresponding to the page operation request;
and if the target page operation meets the immediate execution condition, executing the target page operation.
In a second aspect, an embodiment of the present disclosure provides a page response apparatus, including:
the target page operation determining module is used for receiving a page operation request of a target page and determining target page operation corresponding to the page operation request;
and the target page operation execution module is used for executing the target page operation if the target page operation meets the immediate execution condition.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processing devices;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the page response method according to any embodiment of the disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page response method according to any embodiment of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, the target page operation corresponding to the page operation request is determined by receiving the page operation request of the target page, if the target page operation meets the immediate execution condition, the target page operation is executed, the method is different from a mode that all page operations are put into a queue to be executed in the prior art, and direct execution is tried preferentially, so that the problems that the request and response states are inconsistent and the response speed is slow due to the fact that the operations of requesting page opening and executing page opening are asynchronous operations in the prior art are solved, the purpose that the target page operation meeting the immediate execution condition can be executed immediately without putting into an operation queue is achieved, the effect of improving the execution speed of the target page operation is achieved, and the condition that the response states are inconsistent is avoided.
Drawings
Fig. 1 is a schematic flowchart of a page response method according to a first embodiment of the disclosure;
fig. 2 is a schematic flowchart of a page response method provided in the second embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a page response method provided in the third embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a page response method when an execution subject of a target page operation is a navigation page according to a fourth embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a page response method when the execution subject of the target page operation is paging according to a fourth embodiment of the disclosure;
fig. 6 is a schematic structural diagram of a page response apparatus provided in the fifth embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart of a page response method provided in an embodiment of the present disclosure, and this embodiment is particularly suitable for a case where a target page operation meeting an immediate execution condition is immediately executed when a page operation request is received. As shown in fig. 1, the method of the embodiment may specifically include:
s110, receiving a page operation request of a target page, and determining a target page operation corresponding to the page operation request.
The target page may be understood as a page with which the user can interact, that is, a page displayed to the user for the user to operate. Illustratively, the triggering manner of the page operation request to the target page may be various, for example, triggering a preset functional button, or an operation triggering instruction input in a preset area, etc. It should be noted that the target page operation corresponding to the page operation request may be a single operation or may be a combination of two or more operations. Generally, when a page operation request corresponds to two or more target page operations, each target page operation often has a specific execution sequence.
In the embodiment of the present disclosure, the target page operation may be understood as that the target operation request corresponds to a specific operation content or a specific execution action. For example, the target page operation may be sliding up and down, left and right, switching pages, deleting some content and enlarging a page, reducing a page, opening a page, and closing a page, and so on.
It should be noted that, when the target page includes a child page, the target page operation may be an operation on a parent page or an operation on a child page. Or, when the target page includes at least two page controls, the target page operation may be an operation on a specific page control in the target page.
And S120, if the target page operation meets the immediate execution condition, executing the target page operation.
The immediate execution condition may be understood as a prerequisite that the target page operation does not need to wait for other operations to be executed after the other operations are executed, and can be executed immediately when the page operation request is received. Further, whether the execution subject of the target page operation can be immediately executed under the current condition is determined, and if yes, the target page operation is determined to meet the immediate execution condition.
Illustratively, if the target page request is a single operation, for example, no other operation associated with the target page operation needs to be performed before the target page operation is performed, i.e., the target page operation corresponding to the page operation request is an independent operation, there are no nested operations during execution. At this time, it can be understood that the target page operation satisfies the immediate execution condition, and the target page operation can be preferentially executed.
According to the technical scheme, the target page operation corresponding to the page operation request is determined by receiving the page operation request of the target page, if the target page operation meets the immediate execution condition, the target page operation is executed, the method is different from a mode that all page operations are put into a queue to wait for execution in the prior art, direct execution is tried preferentially, the problems that the request state and the response state are inconsistent and the response speed is slow due to the fact that the operations of requesting page opening and executing page opening are asynchronous operations in the prior art are solved, the purpose that the target page operation meeting the immediate execution condition can be executed immediately without putting into an operation queue is achieved, the execution speed of the target page operation is improved, and the condition that the response states are inconsistent is avoided.
Example two
Fig. 2 is a schematic flow chart of a page response method provided in a second embodiment of the present disclosure, and the present embodiment is further detailed based on various alternatives in the above embodiments. In this embodiment, optionally, the method further includes: if the target page operation does not meet the immediate execution condition, adding the target page operation into an operation queue; and executing the target page operation based on the execution sequence of the operations in the operation queue. As shown in fig. 2, the method of this embodiment may specifically include:
s210, receiving a page operation request for a target page, and determining a target page operation corresponding to the page operation request.
S220, judging whether the target page operation meets an immediate execution condition; if so, executing S250; if not, S230 is performed.
In the embodiment of the present disclosure, whether the target page operation satisfies the immediate execution condition may be determined by at least one of an operation type, an operation object, and an execution subject of the target page operation.
The operation types can be divided into independent operation, nested operation and the like. Alternatively, whether the target page operation satisfies the immediate execution condition may be determined by determining whether the target page operation is a nested operation. That is, if the target page operation is a nested operation, it may be determined that the target page operation does not satisfy the immediate execution condition, and it is necessary to consider an association relationship between the target page operation and another operation, in particular, an operation that needs to be executed before the target page operation. If the target page operation is not a nested operation, it may be determined that the target page operation satisfies an immediate execution condition.
Optionally, whether the target page operation meets the immediate execution condition is determined by an operation object of the target page operation, and whether other page operations are currently executed in the target page corresponding to the target page operation may be determined by determining whether the target page corresponding to the target page operation is the same page as the page corresponding to the target page operation. If the operation is to the same page, the operation needs to be executed by using the queue, and if the operation is to a different page, the target page operation can be tried to be executed immediately.
Alternatively, it may be determined whether the execution subject of the target page operation is in an immediately executable state by determining whether the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation. That is, if the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation, it is determined that the execution subject of the target page operation is not in an immediately executable state, and if the page operation being executed by the execution subject of the target page operation does not conflict with the execution target page operation, that is, the execution subject of the target page operation has a condition for immediately executing the target page operation, it is determined that the execution subject of the target page operation is in an immediately executable state. For example, if the execution subject of the target page operation is executing other page operations of the same page corresponding to the page operation request, it may be confirmed that the target page operation does not satisfy the immediate execution condition.
It is understood that the page operation being executed by the execution subject of the target page operation may be the same operation as the target page operation or may be a different operation.
And S230, adding the target page operation into the operation queue.
And S240, executing the target page operation based on the execution sequence of the operations in the operation queue.
Wherein an operation queue may be understood as a task queue for placing at least one operation in an order of execution. It should be noted that the operations in the operation queue satisfy the first-in first-out principle, that is, the execution order may be understood as that the operation entered into the operation queue first is executed first, and then the operation entered into the operation queue is executed later. Therefore, when the target page operation is the nested operation, the target page operation can be put into the queue and executed according to the execution sequence.
Because the time of the operation request and the mode of responding to each operation request are different in the process of executing each operation, the response speed is improved, and the system can correctly respond to the precondition of each operation request. Therefore, when the target page operation is judged not to meet the immediate execution condition, the target page operation can be added into the operation queue, and then the target page operation is executed based on the execution sequence of each operation in the operation queue, so that the execution sequence of the target page operation is ensured, and the page operation request is ensured to be correctly responded.
And S250, executing the target page operation.
According to the technical scheme provided by the embodiment, whether the target page operation meets the immediate execution condition is judged, if yes, the target page operation is executed, if not, the target page operation is added into the operation queue, and then the target page operation is executed based on the execution sequence of the operations in the operation queue, so that the aim of preferentially and directly operating the target page operation meeting the immediate execution condition can be fulfilled, and for the target page operation not meeting the immediate execution condition, the target page operation is executed based on the execution sequence of the operations in the operation queue, so that the execution sequence of the operations can be fully ensured, and the normal response to the page operation request is further ensured. The effect of integrally improving the execution speed of the target page operation is achieved, and the condition that the response states are inconsistent is avoided.
EXAMPLE III
Fig. 3 is a schematic flow chart of a page response method provided in a third embodiment of the present disclosure, and the present embodiment is further refined based on various alternatives in the above embodiments. In this embodiment, optionally, before the executing the target page operation, the method further includes: and determining whether an execution subject executing the target page operation is in an immediately executable state, and if so, determining that the target page operation meets an immediate execution condition. As shown in fig. 3, the method of this embodiment may specifically include:
s310, receiving a page operation request of a target page, and determining a target page operation corresponding to the page operation request.
S320, judging whether an execution main body for executing the target page operation is in an immediate executable state; if not, S330 is executed, and if yes, S350 is executed.
As described above, it is possible to determine whether the execution subject of the target page operation is in an immediately executable state by determining whether the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation.
The execution subject of the target page operation may be an execution subject capable of responding to the page operation request, and may also be understood as a management page or a control page responsible for managing or controlling at least one page. For example, a navigation page in each application program, which is responsible for page navigation, a split page or other pages, which are responsible for page layout splitting, and the like.
For example, whether the execution subject is a navigation page, a cut page, or the like may be determined in an execution function or an execution method called by the target page operation. For example, if a target page operation corresponding to the page operation request needs to call a push method to execute, it may be considered that an execution subject of the target page operation is a navigation page; if the target page operation corresponding to the page operation request needs to call the add method to execute, it may be considered that the execution subject of the target page operation is the cut page. It should be noted that the above two execution methods are only used for exemplary explanation of the embodiments of the present disclosure, and are not limited to determining the implementation manner of the execution subject.
Taking the execution subject of the target page operation as the navigation page as an example, optionally, if there is an operation request being executed in the navigation page when the target page operation request is received, it is determined that the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation.
The navigation page can be responsible for page navigation and can be used for controlling or managing execution logic corresponding to a plurality of page operations. In general, a navigation page cannot perform two or more operations at the same time. For example, if the navigation page is executing the target page request, the same page operation request cannot be responded to at the same time, that is, the page request cannot be repeatedly executed at the same time, and the page operation being executed by the navigation page may be considered to conflict with the execution of the target page operation. For another example, if the navigation page is executing other page operations, the navigation page may execute the target page operation only after the execution of the executing operation request is completed, and at this time, it may also be considered that the page operation being executed by the navigation page conflicts with the execution of the target page operation.
Taking the execution subject of the target page operation as the split page, optionally, if the split page receives the target page operation request of the target sub-page, and the split page is executing the page operation corresponding to the target sub-page, it is determined that the page operation being executed by the execution subject of the target page operation conflicts with the execution of the target page operation.
Generally, the more services a page bears, the more bloated the code, and therefore, the splitting page may be responsible for splitting the page layout, that is, the splitting page splits the page, and splits the originally bloated code logic according to the function by laying out sub-pages in the page. Illustratively, the splitting of the page layout by the split page may mainly include at least one of adding a sub-page, deleting a sub-page, displaying a sub-page, and hiding a sub-page.
It is understood that the target page may include one, two or more sub-pages. Generally, a split page can simultaneously respond to page operation requests of different sub-pages, but cannot simultaneously respond to two different page operation requests of the same sub-page. Therefore, when a target page operation corresponding to a sub-page is received, if the page operation request corresponding to the sub-page is being executed by the cut page, whether the executing page operation request is the same as the operation request of the target page or not, the page operation being executed by the executing main body of the target page operation is considered to be in conflict with the target page operation. Of course, if a target page operation corresponding to one sub-page is received, if the page operation request corresponding to other sub-pages is being executed by the paging, but any page operation request of the requested sub-page is not executed, the target page operation request can be immediately executed.
For example, if a page operation request of "hide sub-page B in page a", "add sub-page B in page a", or "delete sub-page B in page a" is received while a split page is executing a page operation of "show sub-page B" in page a ", it is considered that the page operation being executed by the split page conflicts with the target page operation, and a program crash may occur at this time; of course, if a page operation request of "add sub-page C in page a", "hide sub-page C in page a", "display sub-page C in page a", or "delete sub-page C in page a" is received while the split page is performing the page operation of "display sub-page B in page a", the operation of "display sub-page B in page a" can be immediately performed.
For another example, the page a distributes the content of the upper half screen to the sub-page a for creation, and distributes the content of the lower half screen to the sub-page b for creation, the page a adds the sub-page a, and in the process of creating the sub-page a, the sub-page a calls the interface of the page a to operate the sub-page b, so that the page a can immediately operate the sub-page b at this time, but at this time, if the sub-page a calls the interface of the page a to operate the sub-page a, that is, if it is necessary to call itself to perform another operation when one operation is performed, the program may crash, cannot be immediately performed, and it may be considered that the page operation being performed by the page cutting is in conflict with the target page operation.
And S330, adding the target page operation into the operation queue.
And S340, executing the target page operation based on the execution sequence of the operations in the operation queue.
Similarly, if there is a conflicting executing page operation when executing the target page operation, the target page operation needs to be added to the operation queue, and based on the first-in first-out principle of the operation queue, the target page operation is executed after the executing page operation is completed.
And S350, determining that the target page operation meets the immediate execution condition, and executing the target page operation.
The above-described process is exemplarily explained in conjunction with fig. 4 and 5.
Fig. 4 is a schematic flowchart of a page response method when an execution subject of a target page operation is a navigation page, as shown in fig. 4, when a new page is to be opened by the navigation page, that is, when the target page operation to be executed is an opening operation of the new page, a background needs to determine whether there is a currently executed page operation in the current navigation page, such as a page opening operation or a page splitting operation, and if not, it indicates that the target page operation meets an immediate execution condition, and the operation of opening the new navigation page can be directly executed, so that a new page is displayed on a foreground for a user to view; if the current navigation page has the executing page operation and the like, the target page operation does not meet the immediate execution condition, the opening operation of the new page needs to be put into an execution operation queue, the new page is queued and executed according to the execution sequence of each operation in the current operation queue, and after the opening operation of the new page is executed, the new page is displayed on the foreground for the user to check.
It should be noted that, if the new page needs to call the navigation page to open another page in the process of opening the new page by the navigation page, the page opening operation of this time belongs to the nested operation, that is, the target page operation is the nested operation, it is determined that the target page operation does not satisfy the immediate execution condition, and is necessarily put into the operation queue to be executed.
Fig. 5 is a schematic flowchart of a page response method when an execution subject of a target page operation is a cut page, and as shown in fig. 5, when a sub-page is added to a cut page, that is, when a target page operation for adding a sub-page needs to be executed to the cut page, a background needs to judge whether the cut page is currently operating the sub-page, if not, it indicates that an immediate execution condition is met, the added sub-page is directly operated, and a new page is displayed in a foreground for a user to check; if it is detected that the cut page is operating on the sub-page, the daemon crashes.
Similarly, although the cutting of pages does not allow the nested operation to be performed on the same sub-page, in the process of adding a new page, if the new page calls a navigation page again to open another page, the page opening operation is necessarily put into an operation queue to be performed.
According to the technical scheme provided by the embodiment of the disclosure, the page navigation is divided into the navigation page and the segmentation page, when the page operation being executed by the navigation page or the segmentation page is not in conflict with the execution target page operation, the immediate execution condition is met, the target page operation is immediately executed, and if the conflict occurs, the target page operation is added into the operation queue for execution, so that the purpose of preferentially executing the target page operation which is not in conflict with the executing page operation can be achieved, the effect of integrally improving the execution speed of the target page operation is achieved, and the condition that the response states are inconsistent is avoided.
Example four
Fig. 6 is a schematic structural diagram of a page response apparatus provided in an embodiment of the present disclosure, and as shown in fig. 6, the page response apparatus of the embodiment includes: a target page operation determination module 61 and a target page operation execution module 62.
The target page operation determining module 61 is configured to receive a page operation request for a target page, and determine a target page operation corresponding to the page operation request; and a target page operation executing module 62, configured to execute the target page operation if the target page operation satisfies the immediate execution condition.
The disclosed embodiment provides a page response device, which determines a target page operation corresponding to a page operation request by receiving the page operation request to a target page, executes the target page operation if the target page operation meets an immediate execution condition, and is different from a mode of putting all page operations into a queue for waiting for execution in the prior art, and preferentially tries to directly execute.
On the basis of the above technical solutions, the apparatus further includes: an adding module and a sequential execution module;
the adding module is used for adding the target page operation into the operation queue if the target page operation does not meet the immediate execution condition; and the sequence execution module is used for executing the target page operation based on the execution sequence of each operation in the operation queue.
On the basis of the above technical solutions, the apparatus further includes: a first execution condition determination module; the execution condition determining module is used for determining that the target page operation does not meet the immediate execution condition if the target page operation is the nested operation.
On the basis of the above technical solutions, the apparatus further includes: a second execution condition determination module; the second execution condition determining module is used for determining whether an execution subject executing the target page operation is in an immediately executable state, and if so, determining that the target page operation meets an immediate execution condition.
On the basis of the above technical solutions, the apparatus further includes: the status determination module may be executed immediately; the immediate executable state determination module is used for determining that the execution subject of the target page operation is not in an immediate executable state if the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation.
On the basis of the above technical solutions, the immediately executable state determining module is specifically configured to determine that the page operation being executed by the execution subject of the target page operation conflicts with the execution target page operation if the navigation page has an operation request being executed when the target page operation request is received.
On the basis of the above technical solutions, the immediately executable state determining module is specifically configured to determine that a page operation being executed by an execution subject of a target page operation conflicts with an execution target page operation if the split page is executing the page operation corresponding to the target sub-page when the target page operation request of the target sub-page is received.
The page response device can execute the page response method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the page response method.
EXAMPLE five
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile electronic devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle electronic devices (e.g., in-vehicle navigation electronic devices), and the like, and stationary electronic devices such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
EXAMPLE six
Embodiments of the present disclosure also provide a storage medium containing computer-executable instructions for performing a page response method when executed by a computer processor.
Of course, the storage medium provided by the embodiments of the present disclosure contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the page response method provided by any embodiment of the present disclosure. It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a page operation request for a target page, and determining a target page operation corresponding to the page operation request; executing the target page operation if the target page operation satisfies the immediate execution condition
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and units do not limit the modules or units in some cases.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a page response method, the method comprising:
receiving a page operation request for a target page, and determining a target page operation corresponding to the page operation request;
and executing the target page operation if the target page operation meets the immediate execution condition.
According to one or more embodiments of the present disclosure, [ example two ] there is provided a page response method, further comprising:
if the target page operation does not meet the immediate execution condition, adding the target page operation into an operation queue;
according to one or more embodiments of the present disclosure, [ example three ] there is provided a page response method, further comprising, before the adding the target page operation to an operation queue:
and if the target page operation is a nested operation, determining that the target page operation does not meet an immediate execution condition.
According to one or more embodiments of the present disclosure, [ example four ] there is provided a page response method, further comprising, before the performing the target page operation:
and determining whether an execution subject executing the target page operation is in an immediately executable state, and if so, determining that the target page operation meets an immediate execution condition.
According to one or more embodiments of the present disclosure, [ example five ] there is provided a page response method, further comprising, before the adding the target page operation to an operation queue:
and if the page operation being executed by the execution subject of the target page operation conflicts with the execution of the target page operation, determining that the execution subject of the target page operation is not in an immediately executable state.
According to one or more embodiments of the present disclosure, [ example six ] there is provided a page response method, further comprising, before the adding the target page operation to an operation queue:
and if the navigation page has the executing operation request when the target page operation request is received, determining that the page operation executed by the executing main body of the target page operation conflicts with the target page operation.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided a page response method, further comprising, before the adding the target page operation to an operation queue:
if the splitting page executes the page operation corresponding to the target sub-page when the target page operation request of the target sub-page is received, determining that the page operation executed by the execution main body of the target page operation conflicts with the execution of the target page operation.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A page response method, comprising:
receiving a page operation request for a target page, and determining a target page operation corresponding to the page operation request;
and if the target page operation meets the immediate execution condition, executing the target page operation.
2. The method of claim 1, further comprising:
if the target page operation does not meet the immediate execution condition, adding the target page operation into an operation queue;
and executing the target page operation based on the execution sequence of the operations in the operation queue.
3. The method of claim 2, prior to said adding said target page operation to an operation queue, further comprising:
and if the target page operation is a nested operation, determining that the target page operation does not meet an immediate execution condition.
4. The method of claim 2, prior to said performing said target page operation, further comprising:
and determining whether an execution subject executing the target page operation is in an immediately executable state, and if so, determining that the target page operation meets an immediate execution condition.
5. The method of claim 4, prior to said adding said target page operation to an operation queue, further comprising:
and if the page operation being executed by the execution subject of the target page operation conflicts with the execution of the target page operation, determining that the execution subject of the target page operation is not in an immediately executable state.
6. The method of claim 5, further comprising, prior to said adding said target page operation to an operation queue:
and if the navigation page has the executing operation request when the target page operation request is received, determining that the page operation executed by the executing main body of the target page operation conflicts with the target page operation.
7. The method of claim 5, further comprising, prior to said adding said target page operation to an operation queue:
if the splitting page executes the page operation corresponding to the target sub-page when the target page operation request of the target sub-page is received, determining that the page operation executed by the execution main body of the target page operation conflicts with the execution of the target page operation.
8. A page response apparatus, comprising:
the target page operation determining module is used for receiving a page operation request of a target page and determining target page operation corresponding to the page operation request;
and the target page operation execution module is used for executing the target page operation if the target page operation meets the immediate execution condition.
9. An electronic device, comprising:
one or more processing devices;
a memory for storing one or more programs;
when executed by the one or more processing devices, cause the one or more page response devices to implement the page response method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the page response method according to any one of claims 1 to 7.
CN201910944413.8A 2019-09-30 2019-09-30 Page response method and device, electronic equipment and storage medium Pending CN110704782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944413.8A CN110704782A (en) 2019-09-30 2019-09-30 Page response method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944413.8A CN110704782A (en) 2019-09-30 2019-09-30 Page response method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110704782A true CN110704782A (en) 2020-01-17

Family

ID=69197749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944413.8A Pending CN110704782A (en) 2019-09-30 2019-09-30 Page response method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110704782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312119A (en) * 2021-06-04 2021-08-27 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692209A (en) * 1995-03-31 1997-11-25 International Business Machines Corporation System resource conflict resolution apparatus
GB2393802A (en) * 2002-10-01 2004-04-07 Hewlett Packard Co Establishment of network connections
JP2006202228A (en) * 2005-01-24 2006-08-03 Nec Corp Web content synchronization system, terminal thereof, and web content synchronization method
US7725643B1 (en) * 2004-05-04 2010-05-25 Oracle America, Inc. Methods and systems for detecting and avoiding an address dependency between tasks
US20120066586A1 (en) * 2010-09-07 2012-03-15 Yaniv Shemesh Systems and methods for accelerating web page loading
US20120110433A1 (en) * 2010-10-28 2012-05-03 Microsoft Corporation Parallel web page processing
CN103034532A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Method for implementing process multiplexing in IE (Internet Explorer) browser and browser
CN104572004A (en) * 2015-02-02 2015-04-29 联想(北京)有限公司 Information processing method and electronic device
US20150269111A1 (en) * 2014-03-21 2015-09-24 Microsoft Corporation Asynchronously prefetching sharable memory pages
US20150347327A1 (en) * 2014-05-30 2015-12-03 Apple Inc. I/o scheduling
CN106470169A (en) * 2015-08-19 2017-03-01 阿里巴巴集团控股有限公司 A kind of service request method of adjustment and equipment
CN108268386A (en) * 2016-12-30 2018-07-10 英特尔公司 Memory order in accelerating hardware
CN108334400A (en) * 2017-01-18 2018-07-27 英特尔公司 Memory is managed for Secure Enclave
US20190171604A1 (en) * 2017-10-31 2019-06-06 Micron Technology, Inc. System Having a Hybrid Threading Processor, a Hybrid Threading Fabric Having Configurable Computing Elements, and a Hybrid Interconnection Network
CN110069308A (en) * 2019-04-22 2019-07-30 北京字节跳动网络技术有限公司 The page starts method, apparatus, electronic equipment and storage medium
CN110069693A (en) * 2019-04-29 2019-07-30 百度在线网络技术(北京)有限公司 Method and apparatus for determining target pages

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692209A (en) * 1995-03-31 1997-11-25 International Business Machines Corporation System resource conflict resolution apparatus
GB2393802A (en) * 2002-10-01 2004-04-07 Hewlett Packard Co Establishment of network connections
US7725643B1 (en) * 2004-05-04 2010-05-25 Oracle America, Inc. Methods and systems for detecting and avoiding an address dependency between tasks
JP2006202228A (en) * 2005-01-24 2006-08-03 Nec Corp Web content synchronization system, terminal thereof, and web content synchronization method
US20120066586A1 (en) * 2010-09-07 2012-03-15 Yaniv Shemesh Systems and methods for accelerating web page loading
US20120110433A1 (en) * 2010-10-28 2012-05-03 Microsoft Corporation Parallel web page processing
CN103034532A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 Method for implementing process multiplexing in IE (Internet Explorer) browser and browser
US20150269111A1 (en) * 2014-03-21 2015-09-24 Microsoft Corporation Asynchronously prefetching sharable memory pages
US20150347327A1 (en) * 2014-05-30 2015-12-03 Apple Inc. I/o scheduling
CN104572004A (en) * 2015-02-02 2015-04-29 联想(北京)有限公司 Information processing method and electronic device
CN106470169A (en) * 2015-08-19 2017-03-01 阿里巴巴集团控股有限公司 A kind of service request method of adjustment and equipment
CN108268386A (en) * 2016-12-30 2018-07-10 英特尔公司 Memory order in accelerating hardware
CN108334400A (en) * 2017-01-18 2018-07-27 英特尔公司 Memory is managed for Secure Enclave
US20190171604A1 (en) * 2017-10-31 2019-06-06 Micron Technology, Inc. System Having a Hybrid Threading Processor, a Hybrid Threading Fabric Having Configurable Computing Elements, and a Hybrid Interconnection Network
CN110069308A (en) * 2019-04-22 2019-07-30 北京字节跳动网络技术有限公司 The page starts method, apparatus, electronic equipment and storage medium
CN110069693A (en) * 2019-04-29 2019-07-30 百度在线网络技术(北京)有限公司 Method and apparatus for determining target pages

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
乔淑夷: "基于MVC模式的Web前端框架关键技术研究与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
张迪: "基于Ajax框架和MVC设计模式的Web应用研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312119A (en) * 2021-06-04 2021-08-27 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment
CN113312119B (en) * 2021-06-04 2024-03-15 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN113938456B (en) Session message overhead processing method and device
CN110300328B (en) Video playing control method and device and readable storage medium
US9070120B2 (en) Identifying and displaying a set of high priority contacts on a display device
CN110457109B (en) Multi-window parallel method and device, terminal and storage medium
CN111291244B (en) House source information display method, device, terminal and storage medium
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
WO2022218251A1 (en) Electronic document processing method and apparatus, terminal and storage medium
CN113301157A (en) Cloud mobile phone group control method, equipment and storage medium based on android system
CN111240834B (en) Task execution method, device, electronic equipment and storage medium
CN110611847B (en) Video preview method and device, storage medium and electronic equipment
CN110704782A (en) Page response method and device, electronic equipment and storage medium
WO2023231851A1 (en) Information processing methods and apparatuses, and electronic device
CN113157439B (en) Resource statistics method, device and terminal
US11782579B2 (en) Desktop display control by intelligently nesting one object in another object
CN113779281B (en) Information processing method, device and equipment
CN111857915B (en) Application page display method and device
CN115525371A (en) Image semantic alignment method and device, electronic equipment and storage medium
CN113609419A (en) Information display method and device, electronic equipment and computer readable medium
CN110427135B (en) Method, device, terminal and storage medium for determining application call
CN110221892B (en) Method, device, medium and electronic equipment for scrolling window information
US11432303B2 (en) Method and apparatus for maximizing a number of connections that can be executed from a mobile application
CN111240758A (en) Material display method and device, electronic equipment and storage medium
CN115114051B (en) Node communication method, device, equipment and storage medium
CN110704767B (en) Page opening method and device, electronic equipment and storage medium
CN111258777B (en) Method, device, system, equipment and storage medium for transmitting voice data

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication