A webpage display method and device, electronic equipment and storage medium
By pre-storing component modules and event information in memory and generating web pages in conjunction with view controllers, the problems of high technical requirements for developers and poor user experience are solved, enabling efficient web page development and rapid display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING TOPSEC NETWORK SECURITY TECH
- Filing Date
- 2022-12-21
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, app page development requires high technical skills from developers, lightweight applications require excessive financial and time investment, dynamic page modification is inefficient, and user experience is poor.
By pre-storing component modules and event information in memory, and requesting configuration information from the server to bind and generate web pages, the amount of data transmission and the learning cost of the development language are reduced, and the speed of web page generation is improved by using view controllers.
It improves development efficiency and user experience, reduces dynamic page generation events, and lowers development costs and waiting time.
Smart Images

Figure CN115964588B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of web page display technology, and more specifically, to a web page display method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, app page development involves two main approaches: some developers use native languages, while others use hybrid frameworks. Both approaches suffer from the following problems: they demand high levels of technical skill from developers. Native developers need to master native syntax and tools, while hybrid framework developers must not only possess the skills required for native development but also the syntax and tools of the hybrid framework. For lightweight applications needed by small and micro-enterprises, the financial and time investment is excessive, resulting in long development cycles. In particular, for dynamic event pages, modifications to events require manual changes by the administrator, reducing development efficiency. Furthermore, each time a user accesses a dynamic page, the entire dynamic webpage needs to be sent to the client, leading to long waiting times and a degraded user experience. Summary of the Invention
[0003] The purpose of this application is to provide a webpage display method, apparatus, electronic device, and storage medium that can reduce the learning time and development time of developers and improve development efficiency.
[0004] This application provides a webpage display method, including:
[0005] Send a first request to the server so that the server returns configuration information based on the first request;
[0006] Receive the configuration information, and retrieve the component modules and event information from memory based on the configuration information;
[0007] The component module and the event information are bound together to obtain the bound component module;
[0008] The event information is used to control the actions performed when the component module is triggered;
[0009] The first webpage is generated and displayed based on the bound component modules.
[0010] In the above implementation, component modules and event information are pre-stored in memory. When a page needs to be displayed, only configuration information needs to be requested from the server. This configuration information includes the component modules and event information required to display the page. After binding the locally stored component modules and configuration information according to the configuration information, the display page can be generated. Since component modules and event information are pre-stored in memory, the server only needs to send the configuration information, reducing data transmission volume and the number of events generated for dynamic pages. When developers need to update dynamic pages, they only need to modify the configuration information on the server, without requiring a large amount of language learning, thus improving development efficiency.
[0011] Furthermore, before the step of receiving the configuration information and obtaining the component module and event information from memory based on the configuration information, the method further includes:
[0012] Generate and display a second webpage based on the component modules.
[0013] In the above implementation, the first webpage is a dynamic page. The component modules within this dynamic page are bound to event information. The corresponding actions controlled by these event information only occur after the user triggers the action. The difference between the first and second webpages lies in whether or not event information is bound to them; their appearance is identical. Users typically view a webpage before clicking or taking other actions. Therefore, the second webpage can be shown first, and the event information can be bound to the component modules while the user is viewing the second webpage, generating the dynamic first webpage. This advances the time when the user obtains information, further improving the user experience.
[0014] Furthermore, prior to the step of sending the first request to the server, the following steps are included:
[0015] In response to a user's request to redirect to a page, load the view controller;
[0016] The first request is sent to the server according to the page redirection request;
[0017] The step of generating and displaying the first webpage based on the bound component modules includes:
[0018] Drive the view controller to generate the first webpage based on the component module;
[0019] Display the first webpage.
[0020] In the above implementation process, the role of the view controller is to parse various component modules and event information to present the webpage that the user finally sees. By loading the view controller when the user triggers a page jump request, the speed of generating the first webpage can be improved.
[0021] Furthermore, the component module includes an event module, and the configuration information includes: the identification information of the event information in memory;
[0022] The step of receiving the configuration information and retrieving component modules and event information from memory based on the configuration information includes:
[0023] Determine whether the configuration information includes the identification information;
[0024] If so, retrieve the component modules and event information from memory based on the configuration information.
[0025] In the above implementation process, if the configuration information includes the identifier information of the event information in memory, it means that the first webpage is a dynamic webpage, and the corresponding event information is obtained according to the configuration information.
[0026] Furthermore, the method further includes: in response to a second request sent by the server, sending a third request to the server, so that the server sends an updated component module according to the third request;
[0027] Receive updated component modules and / or event information sent by the server.
[0028] In the above implementation process, when the server needs to update the component module, it sends a second request to the client, the client sends a third request, and the server starts to send the updated component module and event information to the client. Based on the above implementation method, the local component module and event information can be updated during the user's idle time, and the client does not need to obtain the updated component module from the server when displaying the webpage in the future.
[0029] Furthermore, the configuration information includes: the display attribute values of the component module; the component module includes: default attribute values;
[0030] After the step of receiving the configuration information, the method further includes:
[0031] Modify the default attribute value of the component module according to the display attribute value of the component module.
[0032] In the above implementation process, the configuration information includes the display attributes of the component module in the webpage. By modifying the default attribute values of the component module through the display attribute values in the configuration information, the server can achieve customized display of the component module.
[0033] Furthermore, the component module includes descriptive information about the event; the step of binding the component module and the event information includes:
[0034] The event information is added to the component module as the description information.
[0035] Secondly, embodiments of this application provide a webpage display device, including:
[0036] A request sending module is used to send a first request to the server so that the server returns configuration information according to the first request;
[0037] A receiving module is used to receive the configuration information and retrieve component modules and event information from memory based on the configuration information.
[0038] A binding module is used to bind the component module and the event information to obtain the bound component module. The event information is used to control the action executed when the component module is triggered.
[0039] The display module is used to generate and display the first webpage based on the bound component modules.
[0040] Thirdly, an electronic device provided in this application includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in any of the first aspects.
[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in any of the first aspects.
[0042] Other features and advantages disclosed in this application will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the above-described technology disclosed in this application.
[0043] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0044] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 A flowchart illustrating the webpage display method provided in an embodiment of this application;
[0046] Figure 2 A flowchart illustrating another webpage display method provided in an embodiment of this application;
[0047] Figure 3 This is a schematic diagram of the structure of the webpage display device provided in the embodiments of this application;
[0048] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0049] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0050] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0051] Example 1
[0052] See Figure 1 This application provides a webpage display method, applied to a client, including:
[0053] S101: Send a first request to the server so that the server returns configuration information according to the first request;
[0054] The client can be a mobile phone, tablet computer, or other communication device, and the client and server communicate with each other.
[0055] When a user enters a certain app on the client, the client detects that the app has been launched and sends a first request to the server. This first request includes the configuration information of the app's homepage.
[0056] S102: Receive the configuration information, and obtain the component module and event information from memory according to the configuration information;
[0057] The client determines the component modules and event information to be retrieved in memory based on the configuration information. The component modules are pre-packaged by the developers. These pre-packaged components include various UI components, including but not limited to top navigation bars, bottom navigation bars, lists, buttons, input boxes, and image views. The event information includes but is not limited to: control interaction events, page interaction events, network data requests, and mobile camera / album events. All component modules and event information are pre-stored on storage devices or storage media. When the configuration information is received, the component modules and event information are copied from the storage devices or storage media into the runtime memory.
[0058] S103: Bind the component module and the event information to obtain the bound component module. The event information is used to control the action executed when the component module is triggered.
[0059] Each component module contains corresponding descriptive information, which controls the actions the component module performs when triggered. The steps for binding component modules and event information include:
[0060] Add event information as descriptive information to the component module.
[0061] S104: Generate and display the first webpage based on the bound component modules.
[0062] First, the view controller is loaded into memory. Clients with different operating systems have different view controllers. The view controller generates and displays the first webpage based on the bound component modules.
[0063] In the above implementation, component modules and event information are pre-stored in memory. When a page needs to be displayed, only configuration information needs to be requested from the server. This configuration information includes the component modules and event information required to display the page. After binding the locally stored component modules and configuration information according to the configuration information, the display page can be generated. Since component modules and event information are pre-stored in memory, the server only needs to send the configuration information, reducing data transmission volume and the number of events generated for dynamic pages. When developers need to update dynamic pages, they only need to modify the configuration information on the server, without requiring a large amount of language learning, thus improving development efficiency.
[0064] In one possible implementation, prior to S101, the method further includes: loading a view controller in response to a page navigation request input by a user; sending the first request to the server according to the page navigation request; S104 includes: driving the view controller to generate the first webpage according to the component module; and displaying the first webpage.
[0065] In the above implementation process, the role of the view controller is to parse various component modules and event information to present the webpage that the user finally sees. By loading the view controller when the user triggers a page jump request, the speed of generating the first webpage can be improved.
[0066] Further, the component module includes an event module, and the configuration information includes an identifier for the event information in memory; the step of obtaining the component module and the event information in memory according to the configuration information includes: determining whether the configuration information includes the identifier; if so, obtaining the component module and the event information in memory according to the configuration information.
[0067] If the configuration information includes the identifier information of the event information in memory, it indicates that the first webpage is a dynamic webpage, and the corresponding event information is retrieved based on the configuration information. The method further includes: responding to a second request sent by the server, sending a third request to the server, so that the server sends an updated component module according to the third request; and receiving the updated component module and / or event information sent by the server.
[0068] In the above implementation process, when the server needs to update the component module, it sends a second request to the client, the client sends a third request, and the server starts to send the updated component module and event information to the client. Based on the above implementation method, the local component module and event information can be updated during the user's idle time, and the client does not need to obtain the updated component module from the server when displaying the webpage in the future.
[0069] Example 2
[0070] See Figure 2 This application provides another method for displaying web pages, including:
[0071] S201: Send a first request to the server so that the server returns configuration information according to the first request;
[0072] The first request is the URL of the page to be accessed.
[0073] S202: Receive the configuration information, and retrieve the component modules and event information from memory according to the configuration information;
[0074] S203: Generate and display the second webpage based on the component modules;
[0075] S204: Bind the component module and the event information to obtain the bound component module; the event information is used to control the action executed when the component module is triggered;
[0076] S205: Generate and display the first webpage based on the bound component modules.
[0077] In the above implementation, the first webpage is a dynamic page. The component modules within this dynamic page are bound to event information. The corresponding actions controlled by these event information only occur after the user triggers the action. The difference between the first and second webpages lies in whether or not event information is bound to them; their appearance is identical. Users typically view a webpage before clicking or taking other actions. Therefore, the second webpage can be shown first, and the event information can be bound to the component modules while the user is viewing the second webpage, generating the dynamic first webpage. This advances the time when the user obtains information, further improving the user experience.
[0078] In one possible implementation, the step of sending a first request to the server includes: loading a view controller in response to a page redirection request input by a user; and sending the first request to the server according to the page redirection request. The step of generating and displaying a first webpage based on the bound component module includes: driving the view controller to generate the first webpage according to the component module; and displaying the first webpage. The step of generating and displaying a second webpage based on the component module includes: driving the view controller to generate and display the second webpage according to the component module.
[0079] In one possible implementation, the component module includes an event module and a non-event module, wherein the non-event module is a static module and cannot be bound to event information; the configuration information includes: component module identification information and event information identification information; after S102, the method further includes: determining whether the configuration information includes event information identification information; if the configuration information does not contain event information identification information, then a second webpage can be directly generated. It is not necessary to bind the event module and event information.
[0080] In one possible implementation, before S105, the method further includes: recording the current relative relationship between the second webpage and the screen; S105 includes: generating a first webpage according to the bound event module; and displaying the first webpage according to the relative relationship.
[0081] For example, when generating the second webpage, the relative relationship between the second webpage and the screen is obtained at preset intervals.
[0082] For example, the relative relationship between the current second webpage and the screen can be obtained at a preset time after the process of generating the first webpage begins, or at the same time as the process of generating the first webpage begins.
[0083] In the above example, the relative relationship refers to which part of the first page the image currently displayed on the screen represents. Specifically, it can be based on the coordinates of one or more components on the current screen. That is, the relative relationship includes: the coordinates of the target component on the current screen; the step of recording the relative relationship between the current second webpage and the screen includes: recording the first coordinates of the current target component on the screen; the step of displaying the first webpage according to the relative relationship includes: displaying the first webpage such that the second coordinates of the target component on the screen are the same as the first coordinates.
[0084] In the above implementation process, considering that the only difference between the first webpage and the second webpage is that the components in the first webpage include event information, while the second webpage is a static page and does not include event information, they appear the same to the user. The first webpage only performs different actions when an event is triggered. Therefore, based on the above implementation method, the webpage can be displayed on the client in advance.
[0085] The configuration information includes: the display attribute values of the component module; the component module includes: default attribute values; after receiving the configuration information, the method further includes:
[0086] Modify the default attribute value of the component module according to the display attribute value of the component module.
[0087] In the above implementation process, the configuration information includes the display attributes of the component module in the webpage. By modifying the default attribute values of the component module through the display attribute values in the configuration information, the server can achieve customized display of the component module.
[0088] In one possible implementation, S101 includes: responding to a user's page redirection request, sending a first request according to the page redirection request, so that the server returns the page corresponding to the page redirection request and the redirection page configuration information of the page according to the first request.
[0089] For example, when a user clicks on the homepage, which contains one or more event modules, the user will be redirected to other pages when the event module is triggered. Therefore, the server will send the configuration information of the homepage and other pages to the client at the same time.
[0090] The configuration file only includes event identification information. Therefore, its size is much smaller than the file returned by the server in existing technologies, which includes event modules and event information. Even if the configuration information of the redirected page is sent to the client, the time spent will not increase. Based on this, when a user clicks one or more redirect links consecutively, triggering a redirected page, the client can quickly generate the corresponding page information locally.
[0091] Example 3
[0092] See Figure 3 This application provides a webpage display device, including:
[0093] Request sending module 1 is used to send a first request to the server so that the server returns configuration information according to the first request;
[0094] Receiving module 2 is used to receive the configuration information;
[0095] Acquisition module 3 is used to acquire component modules and event information in memory based on the configuration information;
[0096] Binding module 4 is used to bind the component module and the event information to obtain the bound component module. The event information is used to control the action executed when the component module is triggered.
[0097] Display module 5 is used to generate and display the first webpage based on the bound component module.
[0098] In one possible implementation, the sending module is further configured to load the view controller in response to a page navigation request input by the user; send the first request to the server according to the page navigation request; the display module is further configured to drive the view controller so that the view controller generates the first webpage according to the component module; and display the first webpage.
[0099] In one possible implementation, the component module includes: an event module, and the configuration information includes: identification information of the event information in memory; the acquisition module is further configured to determine whether the configuration information includes the identification information; if so, to acquire the component module and the event information in memory according to the configuration information.
[0100] In one possible implementation, the apparatus further includes: an update module, configured to send a third request to the server in response to a second request sent by the server, so that the server sends an updated component module according to the third request; and to receive the updated component module and / or event information sent by the server.
[0101] In one possible implementation, the configuration information includes: display attribute values of the component module; the component module includes: default attribute values; the update module is further configured to modify the default attribute values of the component module according to the display attribute values of the component module.
[0102] In one possible implementation, the binding module is further configured to add the event information as the description information to the component module.
[0103] This application also provides an electronic device, please refer to [link to application]. Figure 4 , Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of this application. The electronic device may include a processor 41, a communication interface 42, a memory 43, and at least one communication bus 44. The communication bus 44 is used to enable direct communication between these components. In this embodiment, the communication interface 42 of the electronic device is used for signaling or data communication with other node devices. The processor 41 may be an integrated circuit chip with signal processing capabilities.
[0104] The processor 41 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor, or the processor 41 can be any conventional processor.
[0105] The memory 43 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The memory 43 stores computer-readable instructions. When these computer-readable instructions are executed by the processor 41, the electronic device can perform the various steps involved in the above method embodiments.
[0106] Alternatively, the electronic device may also include a storage controller and an input / output unit.
[0107] The memory 43, memory controller, processor 41, peripheral interface, and input / output unit are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses 44. The processor 41 is used to execute executable modules stored in the memory 43, such as software function modules or computer programs included in electronic devices.
[0108] Input / output units are used to enable users to create tasks and set optional start periods or preset execution times for those tasks, facilitating user-server interaction. Input / output units can be, but are not limited to, a mouse and keyboard.
[0109] Understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.
[0110] This application also provides a computer-readable storage medium storing instructions. When the instructions are executed on a computer, the computer program is executed by a processor to implement the method of the method embodiment. To avoid repetition, the details will not be repeated here.
[0111] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0112] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0113] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0114] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0115] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0116] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A webpage display method, characterized in that, include: Send a first request to the server so that the server returns configuration information based on the first request; Receive the configuration information; Based on the configuration information, retrieve component modules and event information from memory; The component module and the event information are bound together to obtain the bound component module. The event information is used to control the actions performed when the component module is triggered; The first webpage is generated and displayed based on the bound component modules; Before the step of binding the component module and the event information to obtain the bound component module, the method includes: generating and displaying a second webpage based on the component module; determining whether the configuration information includes the identifier information of the event information, and if the determination result is no, directly generating the second webpage; and recording the relative relationship between the current second webpage and the screen. The component module includes an event module; the step of generating and displaying the first webpage based on the bound component module includes: generating the first webpage based on the bound event module; and displaying the first webpage based on the relative relationship.
2. The webpage display method according to claim 1, characterized in that, The step of sending the first request to the server includes: In response to a user's request to redirect to a page, load the view controller; The first request is sent to the server according to the page redirection request; The step of generating and displaying the first webpage based on the bound component modules includes: Drive the view controller to generate the first webpage based on the component module; Display the first webpage.
3. The webpage display method according to claim 1, characterized in that, The configuration information includes: the identification information of the event information in memory; The step of receiving the configuration information and retrieving component modules and event information from memory based on the configuration information includes: Determine whether the configuration information includes the identification information; If so, retrieve the component modules and event information from memory based on the configuration information.
4. The webpage display method according to claim 1, characterized in that, The method further includes: in response to a second request sent by the server, sending a third request to the server, so that the server sends an updated component module according to the third request; Receive updated component modules and / or event information sent by the server.
5. The webpage display method according to claim 1, characterized in that, The configuration information includes: the display attribute values of the component module; the component module includes: default attribute values; After the step of receiving the configuration information, the method further includes: Modify the default attribute value of the component module according to the display attribute value of the component module.
6. The webpage display method according to claim 1, characterized in that, The component module includes descriptive information about the event; the step of binding the component module and the event information includes: The event information is added to the component module as the description information.
7. A webpage display device, characterized in that, include: A request sending module is used to send a first request to the server so that the server returns configuration information according to the first request; A receiving module is used to receive the configuration information; The acquisition module is used to acquire component modules and event information in memory based on the configuration information. A binding module is used to bind the component module and the event information to obtain the bound component module. The event information is used to control the action executed when the component module is triggered. A display module is used to generate and display a first webpage based on the bound component modules; The display module is also used to: generate and display a second webpage based on the component module; The device further includes: a recording module, used to determine whether the configuration information includes the identifier information of the event information; if the determination result is no, a second webpage is directly generated; and the relative relationship between the current second webpage and the screen is recorded. The component module includes an event module; the display module is specifically used to: generate a first webpage based on the bound event module; and display the first webpage according to the relative relationship.
8. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-6.