CN114996605A - Page loading method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114996605A
CN114996605A CN202210580400.9A CN202210580400A CN114996605A CN 114996605 A CN114996605 A CN 114996605A CN 202210580400 A CN202210580400 A CN 202210580400A CN 114996605 A CN114996605 A CN 114996605A
Authority
CN
China
Prior art keywords
task
processing method
command
component
task processing
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
CN202210580400.9A
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202210580400.9A priority Critical patent/CN114996605A/en
Publication of CN114996605A publication Critical patent/CN114996605A/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a page loading method, a page loading device, electronic equipment and a storage medium, wherein the method comprises the following steps: sequentially adding at least one task processing method corresponding to the task loading command to the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in at least one task processing method comprise message names; sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name, so that a subscriber of the issuing command completes the current task processing method according to the issuing command; the subscriber is any functional module or other task component corresponding to the home page component. The problem of frequent logic interaction between the task component and the routing component in the existing page loading method is solved, and the technical effect that no logic interaction is needed between the task component and the routing component is achieved.

Description

Page loading method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of computer programs, in particular to a page loading method and device, electronic equipment and a storage medium.
Background
After a lot of front-end projects enter the home page, some initial loading tasks, such as sequential popup display, sequential call interface, etc., need to be performed in sequence. In the prior art, an initial loading task is usually packaged into a task component, all the task components are placed in a routing component corresponding to a home page component, the task component determines whether to execute the loading task according to a task loading command sent by the home page component, and if the loading task is executed, data interaction is performed with the routing component after the loading task is executed each time. It is understood that when the number of task components is large, placing all the task components in the routing component increases the internal logic complexity of the routing component and the coupling of each task component with the routing component.
In summary, the applicant finds that, in the process of implementing the embodiment of the present invention, the existing page loading method at least has a problem of frequent logical interaction between the task component and the routing component.
Disclosure of Invention
The embodiment of the invention provides a page loading method, which solves the problem that the existing page loading method at least has frequent logic interaction between a task component and a routing component.
In a first aspect, an embodiment of the present invention provides a page loading method, where the method includes:
sequentially adding at least one task processing method corresponding to the task loading command into the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name, so that a subscriber of the issuing command completes the current task processing method according to the issuing command; and the subscriber is any functional module or other task component corresponding to the home page component.
In a second aspect, an embodiment of the present invention further provides a page loading apparatus, where the apparatus includes:
the task adding module is used for sequentially adding at least one task processing method corresponding to the task loading command into the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
the task execution module is used for sequentially executing each task processing method in the task queue and issuing a corresponding issuing command when any task processing method comprises a message name so as to enable a subscriber of the issuing command to complete the current task processing method according to the issuing command; and any functional module or other task component corresponding to the home page component of the subscriber.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the page loading method of any embodiment.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the page loading method according to any of the embodiments.
According to the technical scheme of the page loading method, at least one task processing method corresponding to a task loading command is sequentially added to a created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in at least one task processing method comprise message names; sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name so that a subscriber issuing the command completes the current task processing method according to the issuing command; the subscriber is any functional module or other task component corresponding to the home page component. The task related logic is extracted from the routing component through the self-defined task queue, the task processing method and the subscription-publishing mode, so that the cohesiveness of the task components is improved, the coupling among the task components and between the task components and the routing component, the home page component and the functional module is reduced, the problem backtracking is facilitated, and when a new task is added at a later stage, only the task processing method and the publishing method need to be defined, and the condition that the task processing method is added into the task queue is met, so that the logic is clear, and errors are not easy to occur.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a page loading method according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a page loading apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of another page loading apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In the prior art, a task component directly sends component attribute information to a home page component through a routing component according to the task loading requirement, so that the home page component completes corresponding task loading content according to the component attribute information; and directly sending the execution result of the self to the corresponding functional module or task component through the routing component so as to complete the corresponding task loading by the corresponding functional module or task component. Because the task loading of each task component needs to transmit the execution result of a certain functional module or other task components or component attribute information through the routing component, the task component and the routing component interact frequently in the prior art, and the coupling degree of each task component and the routing component is high.
Components are software entities in a software system that have relatively independent functions, interfaces specified by contracts, and obvious dependencies on context, can be deployed independently, and can be assembled.
The home page component includes various commonly used interface components, such as: tables, trees, linkage drop-down boxes and the like can easily construct a new and unique Web Application interface with RIA (Rich Internet Application, RIA for short) characteristics.
A routing component refers to a component that is rendered directly by a route.
Task components refer to components for implementing specified functions.
The functional module is used for isolating codes belonging to the same function or service to form an independent module which can independently run and is called by an interface.
Component properties are simple visitors of component data.
Fig. 1 is a flowchart of a page loading method according to an embodiment of the present invention. The technical scheme of the embodiment is suitable for the task loading condition of the task component in the first page loading process. The method can be executed by the page loading device provided by the embodiment of the invention, and the device can be realized in a software and/or hardware mode and is configured to be applied in a processor of the electronic equipment. The method specifically comprises the following steps:
s101, sequentially adding at least one task processing method corresponding to a task loading command to a created task queue; the task loading command is obtained by the current task component when the home page component is loaded, and one or more task processing methods in at least one task processing method comprise message names.
In this embodiment, a task queue is predefined in each task component, and the task processing methods of the task components are managed uniformly through the task queue. In one embodiment, the task component adds at least one task processing method corresponding to the task load command to the created task queue through the addtask queue method, and the parameter is an Object type and contains a message name.
It is understood that in the process of loading the home page, the home page component sends task loading commands for representing different loading tasks to the related task components according to different loading conditions. In this embodiment, at least one task processing method corresponding to the current task component is determined according to the task loading command received by the current task component.
In this embodiment, a corresponding relationship between the task loading command and the preset execution condition and a corresponding relationship between the preset execution condition and the task processing method are pre-established, so that when the task component acquires the task loading command, at least one preset execution condition corresponding to the task loading command may be determined, and the task processing method corresponding to the at least one preset execution condition may be screened from the pre-packaged task combination. The task combination comprises at least two task processing methods, and task processing methods which are not screened out in the task combination are directly invalidated.
In one embodiment, each preset execution condition corresponds to at least one parameter in the user account information, for example, at least one of a user grade, a platform currency number of the user, a user gender and a number of consecutive check-in days of the user. Illustratively, the account information corresponding to the task load command includes level 1 users, platform coins of 1000, and 3 consecutive check-ins. If the preset execution condition determination rule is the combination of the user level and the platform currency number interval and the combination of the user level and the continuous check-in days, the preset execution condition corresponding to the account information comprises the following steps: the level 1 users sign in for 3 days continuously, and the level 1 users have platform coins larger than or equal to 1000, so that the task processing method corresponding to the level 1 users sign in for 3 days continuously and the corresponding task processing method corresponding to the level 1 users and the platform coins larger than or equal to 1000 can be screened from the pre-packaged task combination according to the corresponding relation between the preset execution condition and the task processing method by the current task component.
In one embodiment, the various load cases of the home component are traversed and a task combination is set for the task load command received by the current task component at each load case. Therefore, when the task component acquires the task loading command, all task processing methods in the task combination corresponding to the task loading command are added to the created task queue.
S102, sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name so that a subscriber issuing the command completes the current task processing method according to the issuing command; the subscriber is any functional module or other task component corresponding to the home page component.
When each task processing method in the task queue is executed in sequence, the present embodiment generates a current task execution command according to a preset command generation condition; executing a first task processing method in the current task queue according to the current task execution command, and deleting the first task processing method from the current task queue to update the current task queue; if the updated current task queue is not empty, generating a new current task execution command, and returning to execute the step of executing the first task processing method in the current task queue according to the current task execution command; if the current task queue is empty, it indicates that the current task component has completed loading all the set tasks.
In one embodiment, the current task execution command is generated upon detecting that the at least one task processing method is each added to the created task queue. Specifically, the current task component generates a first task execution command when detecting that all of the at least one task processing method are added to the task queue, and executes the first task processing method in the current task queue according to the task execution command. The generation mode of the task execution command enables problem backtracking and software version upgrading to be simpler.
In one embodiment, the current task component generates the current task execution command when detecting that the current task queue contains the unexecuted task processing method, that is, the task component generates the current task execution command when detecting that the first task processing method is put into the task queue, and processes the first task processing method in the current task queue at the first time according to the current task execution command. The task execution command generation mode can shorten the time for emptying the task queue, thereby shortening the task loading time of the task component.
The embodiment is provided with a scheduling unit independent of each task component, and the scheduling unit is used for managing and monitoring the message queue. The scheduling unit sends the monitored issuing command in the message queue to the corresponding subscriber to establish the contact between the task processing method and the corresponding subscriber, namely, the contact between the task processing method and the executive body thereof is established in a manner of issuing and subscribing. Specifically, a current task component extracts a message name in a current task processing method in a current task queue, generates a publishing command carrying the message name, and publishes the publishing command to the message queue, a scheduling unit monitors the message queue in real time, determines a subscriber of the publishing command and pushes the publishing command to the subscriber when the publishing command carrying the message name is monitored, and the subscriber executes the current task processing method according to the publishing command.
It can be understood that the scheduling unit is provided with issuing commands of all task processing methods and a subscriber corresponding to each issuing command, so that the scheduling unit can monitor all issuing commands in a message queue in real time, determine the subscriber of the issuing command when monitoring any issuing command, and send the issuing command to the subscriber, so that the subscriber completes the current task processing method.
It can be understood that, when a subscriber who issues a command corresponding to a current task processing method completes the current task processing method, the issued command is a task loading command thereof, that is, the subscriber will execute the above S101-S102 according to the issued command, so that the page processing logic of this embodiment is: task queue-subscriber (task component) -task queue-subscriber (task component), it can be seen that the page processing logic is a chained processing logic.
In one embodiment, the current task component generates a corresponding issuing command according to the name of the reward message in the current task processing method, and when the scheduling unit monitors the issuing command in the message queue, the scheduling unit sends the issuing command to a corresponding subscriber, namely to the reward module, so that the reward module completes the current task processing method according to the issuing command, for example, rewards 5 platform coins. Specifically, the reward module calls an account module interface and displays 5 platform coins and confirmation prompts in a popup window mode, a user clicks to confirm, the account module updates the number of the platform coins of the user account according to the confirmation operation, and the current task component finishes the current task processing method according to the confirmation operation.
Each task processing method comprises a message name or component attribute information used for carrying out attribute interaction with a routing component. If any task processing method comprises the component attribute information, the component attribute information is forwarded to the home page component through the routing component, and the home page component completes the current task processing method according to the component attribute information.
In one embodiment, a first task processing method in a current task queue is read, the task processing method comprises component attribute information, and the purpose of the task processing method is to realize popup window display of novice guidance information. And the current task component sends the component attribute information in the current task queue to the home page component through the routing component, so that the home page component modifies the home page component attribute according to the component attribute information to control the pop window to display the novice guidance information.
In one embodiment, if the current task component is a direct sub-component of the home page component, the task processing method sends the component attribute information to the home page component through attribute interaction, and if the current task component is not a direct sub-component of the home page component, a subscriber of each task processing method in the task queue is notified in a publish-subscribe manner to complete the corresponding task processing method.
It can be understood that, the task component of this embodiment manages the task processing method through the task queue, so that the execution logic and the completion time of the task processing method are both autonomously controlled inside the task component, the related logic of the task can be extracted from the routing component to the greatest extent, the cohesiveness of the task component is improved, the coupling between the task components and between the task component and the home page component, the routing component and the functional module is reduced, and problem backtracking is facilitated.
According to the technical scheme of the page loading method, at least one task processing method corresponding to a task loading command is sequentially added to a created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in at least one task processing method comprise message names; sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name, so that a subscriber of the issuing command completes the current task processing method according to the issuing command; the subscriber is any functional module or other task component corresponding to the home page component. The task related logic is extracted from the routing component through the self-defined task queue, the task processing method and the publishing-subscribing mode, so that the cohesiveness of the task components is improved, the coupling among the task components and between the task components and the routing component, the home page component and the functional module is reduced, the problem backtracking is facilitated, and when a new task is added in the later period, only the task processing method and the publishing method need to be defined, and the condition that the task processing method is added into the task queue is met, so that the logic is clear, and errors are not easy to occur.
Fig. 2 is a block diagram of a page loading apparatus according to another embodiment of the present invention. The device is used for executing the page loading method provided by any of the above embodiments, and the device can be implemented by software or hardware. The device includes:
the task adding module 11 is configured to sequentially add at least one task processing method corresponding to the task loading command to the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
the task execution module 12 is configured to sequentially execute each task processing method in the task queue, and issue a corresponding issuing command when any task processing method includes a message name, so that a subscriber of the issuing command completes a current task processing method according to the issuing command; and the subscriber is any functional module or other task component corresponding to the home page component.
Optionally, as shown in fig. 3, the apparatus further includes a screening module 10, configured to determine at least one preset execution condition corresponding to the task loading command; and screening out a task processing method corresponding to the at least one preset execution condition from the pre-packaged task combination to serve as the at least one task processing method corresponding to the task loading command.
Optionally, the task execution module 12 includes:
the command generating unit is used for generating a current task execution command according to a preset command generating condition;
the task execution unit is used for executing a first task processing method in the current task queue according to the current task execution command and deleting the first task processing method from the current task queue to update the current task queue;
and the return execution unit is used for generating a new current task execution command if the updated current task queue is not empty, and returning to execute the step of executing the first task processing method in the current task queue according to the current task execution command.
Optionally, the command generating unit is configured to generate a current task execution command when it is detected that the at least one task processing method is sequentially added to the created task queue.
Optionally, the command generating unit is configured to generate a current task execution command when it is detected that the current task queue includes an unexecuted task processing method.
Optionally, the execution module is configured to sequentially execute each task processing method in the task queue, and issue a corresponding issue command when any task processing method includes a message name, so that when the scheduling unit monitors the issue command in the message queue, the scheduling unit notifies a subscriber of the issue command to complete the current task processing method.
Optionally, the execution module is configured to forward, if component attribute information is included in any task processing method, the component attribute information to the top page component through a routing component, so that the top page component completes the current task processing method according to the component attribute information.
According to the technical scheme of the page loading device provided by the embodiment of the invention, at least one task processing method corresponding to a task loading command is sequentially added to a created task queue through a task adding module; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in at least one task processing method comprise message names; sequentially executing each task processing method in the task queue through the task execution module, and issuing a corresponding issuing command when any task processing method comprises a message name so that a subscriber issuing the command completes the current task processing method according to the issuing command; the subscriber is any functional module or other task component corresponding to the home page component. The task related logic is extracted from the routing component through the subscription and release mode and the task component self-defined task queue and the task processing method, so that the cohesiveness of the task components is improved, the coupling between the task components and the routing component, the home page component and the function module are reduced, the problem backtracking is facilitated, and when a new task is added at a later stage, only the task processing method and the release method need to be defined, and the condition that the task processing method is added into the task queue is met, so that the logic is clear, and errors are not easy to occur.
The page loading device provided by the embodiment of the invention can execute the page loading method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of an electronic apparatus according to another embodiment of the present invention, as shown in fig. 4, the electronic apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 4; the processor 201, the memory 202, the input device 203 and the output device 204 in the apparatus may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The memory 202, as a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the task adding module 11 and the task executing module 12) corresponding to the page loading apparatus in the embodiment of the present invention. The processor 201 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 202, i.e., implements the page loading method described above.
The memory 202 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 202 may further include memory located remotely from the processor 201, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the apparatus.
The output device 204 may include a display device such as a display screen, for example, of a user terminal.
Yet another embodiment of the present invention also provides a storage medium containing computer-executable instructions which, when executed by a computer processor, perform a method of page loading, the method comprising:
sequentially adding at least one task processing method corresponding to the task loading command to the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name, so that a subscriber of the issuing command completes the current task processing method according to the issuing command; and the subscriber issues the data to any functional module or other task components corresponding to the home page component according to the subscription requirement of the current task processing method.
Of course, the storage medium provided in the embodiment of the present invention includes computer-executable instructions, where the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the page loading method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute the page loading method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the page loading apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A page loading method is characterized by comprising the following steps:
sequentially adding at least one task processing method corresponding to the task loading command to the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
and sequentially executing each task processing method in the task queue, and issuing a corresponding issuing command when any task processing method comprises a message name so as to enable a subscriber of the issuing command to complete the current task processing method according to the issuing command, wherein the subscriber is any functional module or other task components corresponding to the home page component.
2. The method according to claim 1, wherein before sequentially adding at least one task processing method corresponding to the task load command to the created task queue, the method further comprises:
determining at least one preset execution condition corresponding to the task loading command;
and screening out a task processing method corresponding to the at least one preset execution condition from the pre-packaged task combination to serve as the at least one task processing method corresponding to the task loading command.
3. The method according to claim 1, wherein the sequentially executing the task processing methods in the task queue includes:
generating a current task execution command according to a preset command generation condition;
executing a first task processing method in the current task queue according to the current task execution command, and deleting the first task processing method from the current task queue to update the current task queue;
and if the updated current task queue is not empty, generating a new current task execution command, and returning to execute the step of executing the first task processing method in the current task queue according to the current task execution command.
4. The method according to claim 3, wherein the generating a current task execution command according to a preset command generation condition comprises:
and generating a current task execution command when detecting that the at least one task processing method is sequentially added to the created task queue.
5. The method according to claim 3, wherein the generating a current task execution command according to a preset generation condition comprises:
and when detecting that the current task queue contains the unexecuted task processing method, generating a current task execution command.
6. The method according to any one of claims 1 to 5, wherein the sequentially executing the task processing methods in the task queue and issuing a corresponding issuing command when any one of the task processing methods includes a message name, so that a subscriber of the issuing command completes a current task processing method, includes:
and sequentially executing each task processing method in the task queue, issuing a corresponding issuing command when any task processing method comprises a message name, and informing a subscriber of the issuing command to complete the current task processing method when the scheduling unit monitors the issuing command in the message queue.
7. The method of claim 6, further comprising:
if any task processing method comprises component attribute information, forwarding the component attribute information to the home page component through a routing component, and finishing the current task processing method by the home page component according to the component attribute information.
8. A page loading apparatus, comprising:
the task adding module is used for sequentially adding at least one task processing method corresponding to the task loading command to the created task queue; the task loading command is obtained by a current task component when a home page component is loaded, and one or more task processing methods in the at least one task processing method comprise message names;
the task execution module is used for sequentially executing each task processing method in the task queue and issuing a corresponding issuing command when any task processing method comprises a message name so that a subscriber of the issuing command can complete the current task processing method according to the issuing command; and the subscriber is any functional module or other task component corresponding to the home page component.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the page loading method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the page loading method of any of claims 1-7 when executed by a computer processor.
CN202210580400.9A 2022-05-25 2022-05-25 Page loading method and device, electronic equipment and storage medium Pending CN114996605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210580400.9A CN114996605A (en) 2022-05-25 2022-05-25 Page loading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210580400.9A CN114996605A (en) 2022-05-25 2022-05-25 Page loading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114996605A true CN114996605A (en) 2022-09-02

Family

ID=83029298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210580400.9A Pending CN114996605A (en) 2022-05-25 2022-05-25 Page loading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114996605A (en)

Similar Documents

Publication Publication Date Title
CN108304201B (en) Object updating method, device and equipment
CN111258565B (en) Method, system, server and storage medium for generating applet
CN111176505B (en) Page display method and device based on third-party task linkage and electronic equipment
CN109905431B (en) Message processing method and system, storage medium and electronic equipment
CN113760324A (en) Method and device for constructing micro front-end application
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN110751458A (en) Business approval method, device and system
CN110955438A (en) Method, device and equipment for monitoring performance of small program and storage medium
CN112787999A (en) Cross-chain calling method, device, system and computer readable storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN110377331B (en) Monitoring method, device, equipment and storage medium for issuing application program
CN115185434A (en) Vehicle application scene processing method, device, equipment and storage medium
CN112835617B (en) Gray release method, device, server and readable medium
CN109683992B (en) Method and apparatus for managing objects
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN114090268B (en) Container management method and container management system
CN114996605A (en) Page loading method and device, electronic equipment and storage medium
CN115714816A (en) Data center resource supply method and device, electronic equipment and storage medium
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN108804088A (en) Protocol processes method and apparatus
CN114610446A (en) Method, device and system for automatically injecting probe
CN111858234A (en) Task execution method, device, equipment and medium
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
CN113741888A (en) Service processing method and device

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