CN114117278A - Skipping method, device, equipment and storage medium - Google Patents

Skipping method, device, equipment and storage medium Download PDF

Info

Publication number
CN114117278A
CN114117278A CN202111431054.XA CN202111431054A CN114117278A CN 114117278 A CN114117278 A CN 114117278A CN 202111431054 A CN202111431054 A CN 202111431054A CN 114117278 A CN114117278 A CN 114117278A
Authority
CN
China
Prior art keywords
scene
container
identification information
resource address
jump
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
CN202111431054.XA
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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202111431054.XA priority Critical patent/CN114117278A/en
Publication of CN114117278A publication Critical patent/CN114117278A/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
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a skipping method, a skipping device, skipping equipment and a storage medium. The method is executed by a route manager, and comprises the following steps: detecting a touch operation of a user on an inter-scene skip button, and acquiring a scene identifier corresponding to the inter-scene skip button; searching a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address; newly building a target container; and loading corresponding resources to the target container according to the target resource address. According to the technical scheme, the routing stack can be managed through the routing manager, the unique identifier and the resource address of the scene are managed through the configuration file, the consistency of the routing jump method among different service scenes is achieved, the jump smoothness is guaranteed, and the operation experience of a user is improved.

Description

Skipping method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a skipping method, a skipping device, skipping equipment and a storage medium.
Background
Nowadays, high-speed iteration is required for mobile phone application services, and front-end applications are also developed from original single applications to the existing micro front-end architecture. In the micro-front-end framework, the front-end application can be broken down into a set of independently deployable, loosely coupled applications, which are then combined together to create a user-oriented application. Therefore, in the case of a micro front end, the front end is not limited to a single technology stack, and a specific technology stack can be used according to the characteristics of different applicable service scenarios. For example, a home page with extremely high requirement on response speed adopts an RN (read native) technology stack; for the out-link page, the embeddability of the page is promoted by adopting the h5 technology stack.
Currently, there are several mainstream micro front end routing systems: a master route distributor + Multi-page Application (MPA), Single-SPA-based (SPA) mode, base SPA, and traditional SPA + componentized + private npm (Node Package Manager) sources.
Based on the mode of the general route distributor and the multi-page application, due to the fact that the applications are completely isolated, multiplexing is difficult, in addition, the loading time of each SPA application is prolonged, the white screen phenomenon can occur, and user experience is influenced. Based on the Single-SPA model, the sub-applications need to implement hook functions such as mount and uninstall in the code, and have intrusion to the code, which also causes global pollution and resource competition. Based on the base type SPA model, the base is strongly frame-dependent, any modification of the base will affect the implementation of the sub-applications, the loading of common resources is also a pain point of the model, and a set of strong specifications is required to develop each sub-application. Based on the traditional SPA + componentization + private npm source mode, as the number of components in the service is increased explosively, the component granularity communication and the maintenance cost of the components are increased sharply, and the real independent development, test and deployment cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a skipping method, a skipping device, skipping equipment and a storage medium, and aims to realize the skipping.
In a first aspect, an embodiment of the present invention provides a forwarding method, which is executed by a route manager, and the method includes:
detecting a touch operation of a user on an inter-scene skip button, and acquiring a scene identifier corresponding to the inter-scene skip button;
searching a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address;
newly building a target container;
and loading corresponding resources to the target container according to the target resource address.
In a second aspect, an embodiment of the present invention further provides a jump apparatus, where the apparatus includes:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a scene identifier corresponding to an inter-scene skip button when detecting the touch operation of a user on the inter-scene skip button;
the first searching module is used for searching a configuration file according to the scene identifier corresponding to the inter-scene jump button to obtain a target resource address;
the first newly-built module is used for newly building a target container;
and the first loading module is used for loading the corresponding resources to the target container according to the target resource address.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the jump method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the jump method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the scene identification corresponding to the scene jump button is obtained by detecting the touch operation of the user on the scene jump button, the configuration file is searched according to the scene identification to obtain the target resource address, and the corresponding resource is loaded to the newly-built target container according to the target resource address. According to the technical scheme, the routing stack can be managed through the routing manager, the unique identifier and the resource address of the scene are managed through the configuration file, the consistency of the routing jump method among different service scenes is achieved, the jump smoothness is guaranteed, and the operation experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a jump method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a jumping device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The term "include" and variations thereof as used herein are intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment".
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a jump method provided in an embodiment of the present invention, where this embodiment is applicable to a jump situation, and the method may be executed by a jump apparatus in an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s101, when the touch operation of a user on the inter-scene jump button is detected, a scene identifier corresponding to the inter-scene jump button is obtained.
It is to be explained that a scene means an atomic flow unit. A segment of a business process can be divided into several functional modules, which are relatively independent and have no logical coupling, and each module implements a basic and atomic function, which can be multiplexed by different business processes, even can appear many times in different states in the same segment of the business process. In the present embodiment, these modules are defined as "scenes". The definition of the scenario is not limited to the project and the project, and the same project may be divided into a plurality of scenarios according to the difference of the implementation function and the service link entry. Each scene carries a scene identifier, and the scene corresponding to the scene identifier can be searched and determined according to the scene identifier.
In this embodiment, the skip button may be understood as a button for initiating a scene skip. And when the user triggers the jump button, the scene jump request is considered to be initiated, and the target scene which is appointed to jump to by the user is jumped to from the current scene according to the jump request. The touch operation refers to an operation in which the user triggers the skip button.
Specifically, when detecting that a user triggers an inter-scene skip button, an APP (Application) obtains a scene identifier corresponding to the inter-scene skip button after receiving a skip request. If the scene is skipped, a single-page application mode SPA in the background art is adopted, and the specific method and flow are the same as those in the prior art, and are not described in detail herein.
S102, searching a configuration file according to the scene identification corresponding to the inter-scene jump button to obtain a target resource address.
The configuration file is a file for recording scene information, and is divided into a central repository table and an item routing information table. The central warehouse table is used for registering front-end projects of the access route, and the front-end projects comprise full-amount registered front-end projects, and specific contents comprise front-end project English names, project Chinese names, route information table addresses corresponding to the projects, jump domain names, route version information and the like. The project routing information table records specific scenes of front-end project registration, including scene names, loading containers, loading paths, authentication information and the like.
It should be noted that the target resource address refers to a resource address corresponding to a target scene when jumping from a current scene to the target scene.
In the actual operation process, the configuration file is obtained when the APP is started, when the touch operation of a user on the scene jump button is detected, the route manager receives the jump request, obtains the scene identification corresponding to the scene jump button, and searches the configuration file according to the scene identification corresponding to the scene jump button to obtain the target resource address.
S103, newly building a target container.
It should be noted that the container mainly refers to a native control for loading the scene code. The IOS (iPhone Operation System) end uniformly adopts a newly opened Viewcontroller to jump. At present, the mainstream android container mode is a multiple activity mode and a single activity and multiple fragment mode, and the multiple activity mode is suitable for a scene with complex business logic, deep page level and high required iteration speed, while the single activity and multiple fragment mode is more suitable for a scene with multiple parallel pages, so the multiple activity mode is adopted in the embodiment of the invention.
For example, in this embodiment, the target container may be a new tab page used to load the resource corresponding to the target resource address.
Specifically, a target container is newly created for loading the resource corresponding to the target resource address.
And S104, loading the corresponding resources to the target container according to the target resource address.
It should be noted that the corresponding resource refers to a rendering resource corresponding to a target scene to be skipped to. In this embodiment, the corresponding resource may be a preset rendering resource.
In the actual operation process, the APP sends a resource loading request to the remote server according to the target resource address, and the remote server sends the corresponding resource to the target container for downloading and displaying according to the target resource address.
In addition, the embodiment also provides a hook function related to the life cycle of the container (the essence of the hook is a program for processing system messages, and the hook can be hung in the system through a system call), and the loading of the page can be determined through the page display hook function and the page disappearance hook function.
An APP has a plurality of sub-applications (a sub-application refers to all components on a page), and a page or a string of pages is realized by one sub-application. In order to ensure the loading speed among the sub-applications, the APP carries out container preloading design, and the container initialization speed is increased when the container is newly opened. And aiming at the white screen phenomenon generated during page initialization, performing pre-rendering transformation on each scene. Experience consistency among the sub-applications is guaranteed through a matched USER INTERFACE component (UI component). And selecting the components in the resource with the same style when the UI components are selected, wherein the display style and the corresponding functions of the same UI components in different pages are the same.
In the present embodiment, a bottom layer of the jump method is an add or delete routing stack operation provided for a native end (i.e., APP).
Optionally, the jumping method further includes:
and when the touch operation of the user on the first control is detected, acquiring a to-be-closed routing stack corresponding to the first control.
Illustratively, the first control may be a button that performs an operation to close the routing stack.
It should be explained that the routing stack is composed of a physical stack of the native end and a history stack of the browser end, and in this embodiment, the physical stack of the native end is mainly used. The physical stack is designed based on the idea of ' first-in-last-out, last-in-first-out ' of the stack ', and when a container is newly opened by the APP, a record is inserted at the top of the routing stack, and when the container is closed, the corresponding routing stack is subjected to stack withdrawal operation. The routing stack is the basis of routing distribution, and the routing distributor adds or deletes the routing stack according to different instructions, thereby realizing the jump.
In this embodiment, the to-be-closed routing stack refers to a routing stack to be closed corresponding to the first control.
Specifically, after detecting that a user performs touch operation on a first control, that is, initiates a closing request, the APP acquires a to-be-closed routing stack corresponding to the first control.
And determining a container to be closed according to the routing stack to be closed.
It should be noted that the container to be closed refers to a container to be closed corresponding to the routing stack to be closed.
Specifically, after detecting that a user performs touch operation on a first control, that is, after initiating a closing request, the APP acquires a to-be-closed routing stack corresponding to the first control, and determines a to-be-closed container according to the to-be-closed routing stack.
In the actual operation process, the APP transmits the number of the routing stacks needing to be closed to the routing manager, and the manager closes the containers with the corresponding number to complete the closing of the routing stacks. In addition, the APP can also transmit the identification information of the routing stack to be closed to the routing manager, and the routing manager automatically calculates the number of containers to be closed, so that the operation of closing the routing stack is completed.
Optionally, the jumping method further includes:
and when the touch operation of the user on the second control is detected, acquiring the identification information of the newly added scene corresponding to the second control.
For example, the second control may be a button for performing a new scene operation.
It should be noted that the newly added scene refers to a scene that is newly added on the basis of the current scene. Each scene carries a scene identifier, and the scene corresponding to the scene identifier can be searched and determined according to the scene identifier. The identification information is the scene identification of the newly added scene.
Specifically, after detecting that the user performs touch operation on the second control, that is, initiates a new scene request, the APP obtains identification information of a new scene corresponding to the second control.
And searching the configuration file according to the identification information of the newly added scene to obtain the resource address of the newly added scene.
In the actual operation process, after the identification information of the newly added scene corresponding to the second control is obtained, the configuration file is searched according to the identification information of the newly added scene, and the resource address of the newly added scene is obtained.
The first vessel was newly constructed.
For example, in this embodiment, the first container may be a new tab page used to load a resource corresponding to a resource address of a new scene.
Specifically, a first container is newly created for loading the resource corresponding to the resource address of the newly added scene.
And loading the corresponding resources to the first container according to the resource address of the newly added scene.
Specifically, the APP sends a resource loading request to the remote server according to the resource address of the new scene, and the remote server sends the corresponding resource to the first container for downloading and displaying according to the resource address of the new scene.
In the actual operation process, the APP transmits the identification information of the newly added scene to the routing manager, the routing manager finds the resource address of the newly added scene through the configuration file, and loads the resource corresponding to the resource address of the newly added scene through the newly built first container to complete the operation of the newly added routing stack, so that the operation of the newly added scene is completed.
Optionally, the jumping method further includes:
and if the touch operation of the user on the third control is detected, acquiring the identification information of the jump scene corresponding to the third control.
In the present embodiment, the third control may be understood as a button for performing the scene jump function. The jumping scene refers to a scene after jumping from a current scene to a user-specified scene.
Specifically, after the APP detects that the user has triggered the third control, that is, initiated the scene jump request, the APP obtains the identification information of the scene jump corresponding to the third control.
And searching the configuration file according to the identification information of the jump scene to obtain the resource address of the jump scene.
Specifically, after the identification information of the jumping scene corresponding to the third control element is obtained, the configuration file is searched according to the identification information of the jumping scene, and the resource address of the jumping scene is obtained.
The second vessel was newly constructed.
For example, in this embodiment, the second container may be a new tab page used to load a resource corresponding to a resource address of the jump scenario.
Specifically, a second container is newly created for loading the resource corresponding to the resource address of the jumping scene.
And loading the corresponding resources to the second container according to the resource address of the jump scene.
Specifically, the APP sends a resource loading request to the remote server according to the resource address of the jump scene, and the remote server sends the corresponding resource to the second container for downloading and displaying according to the resource address of the jump scene.
In the actual operation process, the APP transmits the identification information of the jumping scene to the routing manager, the routing manager finds the resource address of the jumping scene through the configuration file, and the newly-built second container loads the resource corresponding to the resource address of the jumping scene to complete the jumping scene operation.
In the scene jump, the verification of the authority of the skipped page login and the like is registered in a configuration file by the scene and is realized by a route manager. When jumping, only the identification information of the skipped page needs to be concerned, and other business logics do not need to be added.
Optionally, the jumping method further includes:
and if the touch operation of the user on the fourth control is detected, acquiring the identification information of the replaced scene and the identification information of the replaced scene corresponding to the fourth control.
Illustratively, the fourth control may be a button to perform a scene replacement operation.
The replaced scene refers to a scene displayed before the scene replacement operation, and the replacement scene refers to a scene displayed after the scene replacement operation.
Specifically, after the APP detects that the user triggers the fourth control, that is, initiates a scene replacement request, the APP obtains the identification information of the replaced scene and the identification information of the replacement scene corresponding to the fourth control.
And determining a container to be closed according to the identification information of the replaced scene.
Specifically, after acquiring the identification information of the replaced scene and the identification information of the replacement scene corresponding to the fourth control, the configuration file is searched according to the identification information of the replaced scene, the resource address of the replaced scene is obtained, and the container to be closed is determined.
And after the container to be closed is in a closed state, searching the configuration file according to the identification information of the replacement scene to obtain the resource address of the replacement scene.
Specifically, the container to be closed is determined according to the identification information of the replaced scene, and after the container to be closed is in a closed state, the configuration file is searched according to the identification information of the replaced scene, so that the resource address of the replaced scene is obtained.
A third vessel was newly constructed.
For example, in this embodiment, the third container may be a new tab page for loading the resource corresponding to the resource address of the replacement scene.
Specifically, a third container is newly created for loading the resource corresponding to the resource address of the replacement scene.
And loading the corresponding resources to the third container according to the resource address of the replacing scene.
Specifically, the APP sends a resource loading request to the remote server according to the resource address of the replacement scene, and the remote server sends the corresponding resource to the third container for downloading and displaying according to the resource address of the replacement scene.
Optionally, determining the container to be closed according to the identification information of the replaced scene includes:
and acquiring the identification information of the first routing stack corresponding to the identification information of the replaced scene.
It should be noted that the first routing stack refers to a routing stack to be closed corresponding to the identification information of the replaced scene.
Specifically, the identification information of the replaced scene corresponding to the fourth control is obtained, and the identification information of the first routing stack corresponding to the identification information of the replaced scene is obtained according to the identification information of the replaced scene.
And determining a container to be closed according to the identification information of the first routing stack.
In an actual operation process, after the identification information of the replaced scene and the identification information of the replacing scene corresponding to the fourth control are obtained, the configuration file is searched according to the identification information of the replaced scene, the resource address of the replaced scene is obtained, the identification information of the first routing stack corresponding to the identification information of the replaced scene is obtained, and the container to be closed is determined according to the identification information of the first routing stack.
Optionally, determining the container to be closed according to the identification information of the first routing stack includes:
and acquiring a first container corresponding to the identification information of the first routing stack.
Specifically, the identification information of the first routing stack corresponding to the identification information of the replaced scene is obtained, and the first container corresponding to the identification information of the first routing stack is obtained according to the identification information of the first routing stack.
Location information of the first container is acquired.
It should be noted that the location information refers to information of a location of the first container corresponding to the identification information of the first routing stack.
Specifically, after a first container corresponding to the identification information of the first routing stack is obtained, the position information of the first container is obtained.
And determining a container to be closed according to the first container and the position information of the first container.
In an actual operation process, after the identification information of the replaced scene and the identification information of the replacement scene corresponding to the fourth control are obtained, the identification information of the first routing stack corresponding to the identification information of the replaced scene is obtained, the first container corresponding to the identification information of the first routing stack is obtained, the position information of the first container is obtained, and the container to be closed is determined according to the position information of the first container and the position information of the first container.
In the actual operation process, the APP transmits the identification information of the replaced scene and the identification information of the replaced scene to the routing manager, the routing manager calculates the number of containers to be closed according to the identification information of the replaced scene, after the operation of closing the routing stack is completed, namely the containers to be closed are in a closed state, the configuration file is searched according to the identification information of the replaced scene, the resource address of the replaced scene is obtained, the operation of adding a routing stack in the replaced scene is performed, the replacement of the routing stack is completed, and then the scene replacement operation is completed.
According to the embodiment of the invention, the scene identification corresponding to the scene jump button is obtained by detecting the touch operation of the user on the scene jump button, the configuration file is searched according to the scene identification to obtain the target resource address, and the corresponding resource is loaded to the newly-built target container according to the target resource address. According to the technical scheme, the routing stack can be managed through the routing manager, the unique identifier and the resource address of the scene are managed through the configuration file, the consistency of the routing jump method among different service scenes is achieved, the jump smoothness is guaranteed, and the operation experience of a user is improved.
In addition, the method matched with the skip method in the embodiment further comprises the following steps:
binding the physical return key: the APP transmits the implementation method of the current page physical return key to the routing manager, and the routing manager binds the implementation method on the container. The physical return key can be a side sliding return mode or a return key return mode in the touch key, and when a user triggers the physical return key, a code corresponding to the physical return key is loaded to realize a corresponding function.
The method for acquiring the jump parameter comprises the following steps: communication between conventional pages is generally implemented by url (Uniform Resource Locator) parameters, cache and other schemes, and such methods facilitate access of page parameters, but also bring risks of parameter exposure. Therefore, in this embodiment, the transmission of parameters between pages between scenes is stored in the routing manager, and when the page calls the method for obtaining the jump parameter, the routing manager returns the corresponding parameter.
The physical stack acquisition method comprises the following steps: and the user clicks a preset key to return all or part of the physical stack information determined according to the identification information and memorized in the routing manager to the APP, wherein the physical stack information comprises a hash value of the stack, a unique identification of a page in the stack, the type of the stack, a resource address of the page in the stack, the type of a container and the like.
The method for acquiring the link of the preamble page comprises the following steps: under the condition of newly building a container, the APP cannot return the preamble page link, so in the embodiment, the routing manager records the current page link when the container is newly built, when the APP calls the method for obtaining the preamble page link, firstly, whether the APP preamble page can be obtained is judged, and if the APP preamble page cannot be obtained, the current page link recorded during the jump is returned.
The technical scheme of the invention manages the routing stack through the routing manager, and configures the identification information, the resource address and the authentication chain of the file management scene, thereby achieving the consistency of the routing jump method between different technical stacks and between different service scenes and improving the smoothness of operation.
Example two
Fig. 2 is a schematic structural diagram of a jump device according to a second embodiment of the present invention. The present embodiment may be applicable to a jump situation, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device providing a jump function, as shown in fig. 2, where the jump apparatus specifically includes: a first obtaining module 210, a first lookup module 220, a first new modeling block 230, and a first loading module 240.
The first obtaining module 210 is configured to obtain a scene identifier corresponding to an inter-scene skip button when a touch operation of a user on the inter-scene skip button is detected;
the first searching module 220 is configured to search a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address;
a first new modeling block 230 for creating a new target container;
a first loading module 240, configured to load a corresponding resource to the target container according to the target resource address.
Further, the jumping device further includes:
the second obtaining module is used for obtaining a routing stack to be closed corresponding to a first control when the touch operation of a user on the first control is detected;
and the first determining module is used for determining the container to be closed according to the routing stack to be closed.
Further, the jumping device further includes:
the third obtaining module is used for obtaining identification information of a newly added scene corresponding to a second control when the touch operation of a user on the second control is detected;
the second searching module is used for searching the configuration file according to the identification information of the newly added scene to obtain the resource address of the newly added scene;
the second new building module is used for building a first container;
and the second loading module is used for loading the corresponding resources to the first container according to the resource address of the newly added scene.
Further, the jumping device further includes:
the fourth obtaining module is used for obtaining the identification information of the jump scene corresponding to the third control when the touch operation of the user on the third control is detected;
the third searching module is used for searching the configuration file according to the identification information of the jumping scene to obtain the resource address of the jumping scene;
the third new building module is used for building a second container;
and the third loading module is used for loading the corresponding resources to the second container according to the resource address of the jump scene.
Further, the jumping device further includes:
the fifth obtaining module is configured to obtain, when a touch operation of a user on a fourth control is detected, identification information of a replaced scene and identification information of a replacement scene corresponding to the fourth control;
the second determining module is used for determining a container to be closed according to the identification information of the replaced scene;
the fourth searching module is used for searching the configuration file according to the identification information of the replacement scene after the container to be closed is in a closed state, so as to obtain the resource address of the replacement scene;
the fourth new building module is used for building a third container;
and the fourth loading module is used for loading the corresponding resources to the third container according to the resource address of the replacement scene.
Further, the third determining module comprises:
an obtaining unit, configured to obtain identifier information of a first routing stack corresponding to the identifier information of the replaced scene;
and the determining unit is used for determining the container to be closed according to the identification information of the first routing stack.
Further, the determining unit is specifically configured to:
acquiring a first container corresponding to the identification information of the first routing stack;
acquiring position information of the first container;
and determining a container to be closed according to the first container and the position information of the first container.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the embodiment of the invention, the scene identification corresponding to the scene jump button is obtained by detecting the touch operation of the user on the scene jump button, the configuration file is searched according to the scene identification to obtain the target resource address, and the corresponding resource is loaded to the newly-built target container according to the target resource address. According to the technical scheme, the routing stack can be managed through the routing manager, the unique identifier and the resource address of the scene are managed through the configuration file, the consistency of the routing jump method among different service scenes is achieved, the jump smoothness is guaranteed, and the operation experience of a user is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an electronic device 312 suitable for use in implementing embodiments of the present invention. The electronic device 312 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of the use of the embodiment of the present invention. Device 312 is a computing device for typical jump functionality.
As shown in fig. 3, electronic device 312 is in the form of a general purpose computing device. The components of the electronic device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The electronic device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Electronic device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with electronic device 312, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, the electronic device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 320. As shown, a network adapter 320 communicates with the other modules of the electronic device 312 via the bus 318. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
Processor 316 executes various functional applications and data processing, such as implementing the jump methods provided by the above-described embodiments of the present invention, by running programs stored in storage 328:
detecting a touch operation of a user on an inter-scene skip button, and acquiring a scene identifier corresponding to the inter-scene skip button;
searching a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address;
newly building a target container;
and loading corresponding resources to the target container according to the target resource address.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a jump method, the method including:
detecting a touch operation of a user on an inter-scene skip button, and acquiring a scene identifier corresponding to the inter-scene skip button;
searching a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address;
newly building a target container;
and loading corresponding resources to the target container according to the target resource address.
Of course, the storage medium provided by the embodiment of the present invention 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 jump method provided by 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 can 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 for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the foregoing jump apparatus, each included unit and module 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 method of hopping, performed by a route manager, the method comprising:
detecting a touch operation of a user on an inter-scene skip button, and acquiring a scene identifier corresponding to the inter-scene skip button;
searching a configuration file according to the scene identifier corresponding to the inter-scene skip button to obtain a target resource address;
newly building a target container;
and loading corresponding resources to the target container according to the target resource address.
2. The method of claim 1, further comprising:
when the touch operation of a user on a first control is detected, a to-be-closed routing stack corresponding to the first control is acquired;
and determining a container to be closed according to the routing stack to be closed.
3. The method of claim 1, further comprising:
when the touch operation of a user on a second control is detected, acquiring identification information of a newly added scene corresponding to the second control;
searching a configuration file according to the identification information of the newly added scene to obtain a resource address of the newly added scene;
newly building a first container;
and loading corresponding resources to the first container according to the resource address of the newly added scene.
4. The method of claim 1, further comprising:
when the touch operation of a user on a third control is detected, acquiring identification information of a jump scene corresponding to the third control;
searching a configuration file according to the identification information of the jump scene to obtain a resource address of the jump scene;
newly building a second container;
and loading corresponding resources to the second container according to the resource address of the jump scene.
5. The method of claim 1, further comprising:
when touch operation of a user on a fourth control is detected, acquiring identification information of a replaced scene and identification information of a replacing scene corresponding to the fourth control;
determining a container to be closed according to the identification information of the replaced scene;
after the container to be closed is in a closed state, searching a configuration file according to the identification information of the replacement scene to obtain a resource address of the replacement scene;
newly building a third container;
and loading corresponding resources to the third container according to the resource address of the replacement scene.
6. The method of claim 5, wherein determining the container to be closed according to the identification information of the replaced scene comprises:
acquiring identification information of a first routing stack corresponding to the identification information of the replaced scene;
and determining a container to be closed according to the identification information of the first routing stack.
7. The method of claim 6, wherein determining the container to be closed according to the identification information of the first routing stack comprises:
acquiring a first container corresponding to the identification information of the first routing stack;
acquiring position information of the first container;
and determining a container to be closed according to the first container and the position information of the first container.
8. A jump apparatus, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a scene identifier corresponding to an inter-scene skip button when detecting the touch operation of a user on the inter-scene skip button;
the first searching module is used for searching a configuration file according to the scene identifier corresponding to the inter-scene jump button to obtain a target resource address;
the first newly-built module is used for newly building a target container;
and the first loading module is used for loading the corresponding resources to the target container according to the target resource address.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the processors to implement the method of any of claims 1-7.
10. A computer-readable storage medium containing a computer program, on which the computer program is stored, characterized in that the program, when executed by one or more processors, implements the method according to any one of claims 1-7.
CN202111431054.XA 2021-11-29 2021-11-29 Skipping method, device, equipment and storage medium Pending CN114117278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111431054.XA CN114117278A (en) 2021-11-29 2021-11-29 Skipping method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111431054.XA CN114117278A (en) 2021-11-29 2021-11-29 Skipping method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114117278A true CN114117278A (en) 2022-03-01

Family

ID=80371127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111431054.XA Pending CN114117278A (en) 2021-11-29 2021-11-29 Skipping method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114117278A (en)

Similar Documents

Publication Publication Date Title
KR101619557B1 (en) Computer application packages with customizations
US9307342B2 (en) Dynamic rendering for software applications
US9513888B1 (en) Virtual preloads
US9602347B2 (en) Method, system and program for browser to switch IE kernel
CN107506221A (en) Application program updating method, apparatus and equipment
US10447814B2 (en) Joint servicing of software packages
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN103970563B (en) The method of dynamic load Android class
US10216510B2 (en) Silent upgrade of software with dependencies
CN104516783A (en) Authority control method and device
KR20070049166A (en) System and method for extraction and creation of application meta-information within a software application repository
CN104049986A (en) Plugin loading method and device
US20130227085A1 (en) Terminal and method for using cloud services
CN111796860A (en) Micro front-end scheme implementation method and device
CN107632872B (en) Desktop layout processing method, user data processing method and device and computer storage medium
CN110045998A (en) Load the method and device of dynamic base
CN110955449B (en) Gray scale release method and device for client
CN112256295A (en) Application program updating method, device, equipment and storage medium
CN115659340B (en) Counterfeit applet identification method and device, storage medium and electronic equipment
US10606612B2 (en) Context check bypass to enable opening shared-object libraries
CN114117278A (en) Skipping method, device, equipment and storage medium
CN107667343B (en) System and method for loading on-demand resources
CN102402598A (en) Application file system access
CN113835748B (en) Packaging method, system and readable medium for application program based on HTML5

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