CN110347942A - Method for page jump, device, storage medium and computer equipment - Google Patents

Method for page jump, device, storage medium and computer equipment Download PDF

Info

Publication number
CN110347942A
CN110347942A CN201910469582.0A CN201910469582A CN110347942A CN 110347942 A CN110347942 A CN 110347942A CN 201910469582 A CN201910469582 A CN 201910469582A CN 110347942 A CN110347942 A CN 110347942A
Authority
CN
China
Prior art keywords
page
jump
application
information
application page
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
CN201910469582.0A
Other languages
Chinese (zh)
Inventor
许剑勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910469582.0A priority Critical patent/CN110347942A/en
Publication of CN110347942A publication Critical patent/CN110347942A/en
Pending legal-status Critical Current

Links

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method for page jump, device, storage medium and computer equipments, it is related to information technology field, main purpose is that the structure of application program can be simplified, it reduces the code maintenance of application program and updates cost, simplify the development process of application program and reduce development cost, so as to promote the development efficiency of application program.The described method includes: being parsed using default resolver to the URL for receiving the application page for including in application page jump instruction, the routed path information for the page that is applied;It is preset according to routed path information searching and whether there is the corresponding jump page module information of application page in route information table, default route information table is used to save the mapping relations between the routed path information jump page module information corresponding with the different application page of the different application page;If it exists, then jump page module information is utilized, realizes from application page and jumps to its corresponding jump page.The present invention is suitable for jumping for the page.

Description

Method for page jump, device, storage medium and computer equipment
Technical field
The present invention relates to information technology fields, more particularly, to a kind of method for page jump, device, storage medium and calculating Machine equipment.
Background technique
With the continuous development of information technology, the business clothes of some fast and stables can be realized by the page of application program Business, same application may support different business services.The page is needed into jump page currently, generalling use pattern of annotated information It is set out to carry out application and development, to realize page jump, the unification of corresponding jump page is set such as in application code Resource Locator (Uniform Resource Locator, URL), and realize that the page is jumped as distinguishing using the order of agreement Turn.However, realizing page jump through the above way for or application program that developer is few few for business, apply Program is related to that structure is complicated, causes the code maintenance of application program and updates higher, and needs developer in the development phase Study introduces new development kit, causes the development process of application program complicated, and development cost is larger, so as to cause exploitation effect Rate is lower.
Summary of the invention
The present invention provides a kind of method for page jump, device, storage medium and computer equipment, main purpose is energy The structure for enough simplifying application program reduces the code maintenance of application program and updates cost, simplifies the development process of application program With reduce development cost, so as to promote the development efficiency of application program.
According to the first aspect of the invention, a kind of method for page jump is provided, comprising:
Application page jump instruction is received, the application page jump instruction includes the URL of application page;
The URL is parsed using preset path resolver, obtains the routed path information of the application page;
Being preset according to the routed path information searching whether there is the corresponding jump of the application page in route information table Blade-rotating face module information, the default route information table are used to save the routed path information and the difference of the different application page Mapping relations between the corresponding jump page module information of application page;
If jump page module information exists, the jump page module information is utilized, is realized from the application page Jump to its corresponding jump page.
According to the second aspect of the invention, a kind of page skip device is provided, comprising:
Receiving unit, for receiving application page jump instruction, the application page jump instruction includes application page URL;
Resolution unit obtains the routing road of the application page for parsing using default resolver to the URL Diameter information;
Searching unit whether there is the application for presetting according to the routed path information searching in route information table The corresponding jump page module information of the page, the default route information table be used to save the routed path information of the different pages with Mapping relations between the corresponding jump page module information of the difference page;
Jump-transfer unit, if searching in default route information table for the searching unit, there are the application page is corresponding Jump page module information then utilizes the corresponding jump page module information of the application page, realizes from the application page Jump to the jump page.
According to the third aspect of the present invention, a kind of storage medium is provided, computer program is stored thereon with, the program quilt Processor performs the steps of when executing
Application page jump instruction is received, the application page jump instruction includes the URL of application page;
The URL is parsed using preset path resolver, obtains the routed path information of the application page;
Being preset according to the routed path information searching whether there is the corresponding jump of the application page in route information table Blade-rotating face module information, the default route information table are used to save the routed path information and the difference of the different application page Mapping relations between the corresponding jump page module information of application page;
If jump page module information exists, the jump page module information is utilized, is realized from the application page Jump to its corresponding jump page.
According to the fourth aspect of the present invention, a kind of computer equipment is provided, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, the processor perform the steps of when executing described program
Application page jump instruction is received, the application page jump instruction includes the URL of application page;
The URL is parsed using preset path resolver, obtains the routed path information of the application page;
Being preset according to the routed path information searching whether there is the corresponding jump of the application page in route information table Blade-rotating face module information, the default route information table are used to save the routed path information and the difference of the different application page Mapping relations between the corresponding jump page module information of application page;
If jump page module information exists, the jump page module information is utilized, is realized from the application page Jump to its corresponding jump page.
A kind of method for page jump, device, storage medium and computer equipment provided by the invention, and generally use at present The page is needed jump page to be set out to carry out application and development by pattern of annotated information, and to realize that page jump is compared, the present invention can Application page jump instruction is received, the application page jump instruction includes the URL of application page;And default parsing can be utilized Device parses the URL, obtains the routed path information of the application page.It at the same time, can be according to the routing Routing information, which is searched, whether there is the corresponding jump page module information of the application page in default route information table, described pre- If routed path information of the route information table for saving the different application page is corresponding with the different application page to jump page Mapping relations between the module information of face;In jump page module information corresponding there are the application page, can utilize The jump page module information is realized from the application page and jumps to its corresponding jump page, so as to by pre- If route information table carries out centralized management to the jumping for all pages of application, the structure of application program can be simplified, dropped The code maintenance and update cost of low application program, simplify the development process of application program and reduce development cost, and then can Promote the development efficiency of application program.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of method for page jump provided in an embodiment of the present invention;
Fig. 2 shows the flow diagrams of another method for page jump provided in an embodiment of the present invention;
Fig. 3 shows a kind of structural schematic diagram of page skip device provided in an embodiment of the present invention;
Fig. 4 shows the structural schematic diagram of another page skip device provided in an embodiment of the present invention;
Fig. 5 shows a kind of entity structure schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
Such as background technique, jump page is needed to be set out apply and open the page currently, generalling use pattern of annotated information Hair, to realize page jump, such as in application code setting correspondence jump page URL, and using the order of agreement as It distinguishes to realize page jump.However, for or application program that developer is few few for business, it is real through the above way Existing page jump, application program are related to that structure is complicated, cause the code maintenance of application program and update it is higher, and in exploitation rank Section needs developer to learn to introduce new development kit, causes the development process of application program complicated, and development cost is larger, It is lower so as to cause development efficiency.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of method for page jump, as shown in Figure 1, the side Method includes:
101, application page jump instruction is received.
Wherein, the application page jump instruction includes the URL of application page.The executing subject of the embodiment of the present invention can be with For application program end, the application page at application program end jumps the support for needing control, when the user clicks certain of application page When a element, control associated with the element is actually clicked, is sent to trigger page jump instruction using journey Sequence end.For example, show there is some picture in application page, and picture is associated with some control, is schemed when the user clicks When piece, control associated with picture can trigger page jump instruction, and the application program end is enabled to receive applications pages Face jump instruction.
102, the URL is parsed using default resolver, obtains the routed path information of the application page.
Wherein, the default resolver can be URL parser, the URL parser can according to the character string of URL, Parse agreement, host, port, routed path, the Transfer Parameters etc. of URL.It specifically, can be by presetting the corresponding solution of resolver Function is analysed, obtains the routed path information of the application page, the analytical function can be jQuery.url.attr () letter Number, when needing routed path information, can call jQuery.url.attr (" URLpath ") function.For example, application page URL are as follows: http://example.org:8888/foo/bar? q=baz#bang, after being parsed using URL parser, The agreement of available URL are as follows: hypertext transfer protocol (hyper text transport protocol, http), URL's Host name are as follows: the host port of example.org, URL are as follows: 8888, URL routed path are as follows: foo/bar? q=baz# bang。
103, it is preset according to the routed path information searching corresponding with the presence or absence of the application page in route information table Jump page module information.If it exists, 104 are thened follow the steps.
Wherein, the default route information table can be used to save the different application page routed path information and it is described not Mapping relations with application page between corresponding jump page module information.The corresponding jump page of the different application page Module information is the page assembly information for the application page that application page needs to jump, and the default route information table can be to answer It, can be pre-loaded at application program end with developer according to the application business to be realized setting, or Server is issued according to request.Specifically, the routed path information and the difference of the available different application page are answered With the corresponding jump page module information of the page;Establish the different application page routed path information and the different application page The mapping relations are saved in the default route information table by the mapping relations between corresponding jump page module information. For example, in development and application, if wanting to realize that application page 1 jumps to application page 2, the routing road of available application page 1 Diameter information and the corresponding jump page module information of application page 1, the corresponding jump page component of the application page 1 can be The corresponding page assembly of application page 2 establishes the routed path information and the corresponding jump page of application page 1 of application page 1 Then mapping relations between module information correspond in default route information table and save the routed path of application page 1 and answer With the mapping relations between the corresponding jump page module information of the page 1.The display form of the default route information table Can be as shown in table 1 below, but not limited thereto:
Table 1
The routed path of the page The jump page module information of the page
/home com.pingan.yzt.MainActivity
Foo/bar? q=baz#bang com.example.org.MainActivity
Further, since the page that can jump to the same application page is more, by according to routed path information with jump Mapping relations between page assembly information, which construct default route information table, can save configuration work amount, for example, application page 1, application page 3, the corresponding jump page of application page 4 are application page 2, application page 1, application page 3, application page 4 can be set identical path routing information 1, then will be between path routing information 1 and the page assembly information of application page 2 Mapping relations be saved in default route information table.The prior art is needed when realizing that application page 1 jumps to application page 2 The code that application page 2 is jumped to from application page 1 to be added in code logic in jumping for application program, it is logical with the prior art It crosses pattern of annotated information the logic that jumps of the page is write and extremely compared in the code of application program, the present invention passes through default routing iinformation Table, without adding any information in code logic in jumping for application program, it can that realizes application page jumps change, from And the structure of application program can be simplified.
104, using the jump page module information, realize that jumping to its from the application page corresponding jumps page Face.
Wherein, the jump page module information can correspond to the page assembly letter of jump page for the application page Breath, such as application page are the page 1, and the corresponding jump page of the page 1 is the page 2, and the jump page module information is institute The page assembly information of the page 2 is stated, the jump page component can include but is not limited at least one page elements, i.e., described Page assembly can be a set of page elements.Specifically, the jump page component can include but is not limited to the page Title module information, page navigation module information, directory component information, picture transmitting assembly information, text component information, table Module information, map components information, tabs module information, chain joint assembly information, editing component information, share module information, Contact method module information, third party's module information and other assemblies information, the present embodiment is to this without being particularly limited to.Example Such as, title component may include the page elements of text, picture transmitting assembly may include hyperlink, input frame, button and under Drawing page elements, the editing components such as frame may include the page elements such as input frame and button.In embodiments of the present invention, the jump Turning page assembly can be the responsible component interacted with user, can provide display some controls, can also be with monitoring users event And react, the jump page component is not a static entity, but one includes that front end shows template, industry The dynamic entity that logical code, the data of being engaged in store, can provide more abundant interaction effect, and page group for user The exchange and cooperation of information can be carried out by event-driven mechanism between part.It, can be with by the jump page module information Each control or page elements on jump page are created and loaded out, the loaded and displayed of jump page is completed, to realize The effect of page jump.For example, jump page is application page 2, can be created according to the page title module information of application page 2 Build perhaps load out the page title in application page 2 can be created according to the page navigation module information of application page 2 or It loads out the page navigation in application page 2, applied according to the picture transmitting assembly information creating of application page 2 or load out Picture on the page 2 perhaps creates or loads out the member of other pages in application page 2 according to other page assembly information Element shows these page elements after all page elements in load application page 2, so that it may realize that display is answered With the page 2, to achieve the effect that jump to application page 2 from application page 1.
The page is needed to jump by a kind of method for page jump provided in an embodiment of the present invention with pattern of annotated information is generallyd use at present Blade-rotating face is set out to carry out application and development, and to realize that page jump is compared, the present invention can receive application page jump instruction, The application page jump instruction includes the URL of application page;And the URL can be parsed using default resolver, Obtain the routed path information of the application page.It at the same time, can be according to the default routing of the routed path information searching It whether there is the corresponding jump page module information of the application page in information table, the default route information table is for saving Mapping between the routed path information of different application page jump page module information corresponding with the different application page Relationship;In jump page module information corresponding there are the application page, the jump page module information can be utilized, It realizes from the application page and jumps to its corresponding jump page, so as to by presetting route information table to the institute of application Have the page jump carry out centralization management, the structure of application program can be simplified, reduce application program code maintenance and Cost is updated, the development process of application program is simplified and reduces development cost, and then is able to ascend the development efficiency of application program.
Further, in order to better illustrate the process of above-mentioned page jump, as the refinement and expansion to above-described embodiment Exhibition, the embodiment of the invention provides another page jump method for product, as shown in Figure 2, which comprises
201, application page jump instruction is received.
Wherein, the application page jump instruction includes the URL of application page.
202, the URL is parsed using default resolver, obtains the routed path information of the application page.
203, it is preset according to the routed path information searching corresponding with the presence or absence of the application page in route information table Jump page module information.If it exists, 204 are thened follow the steps.If it does not exist, 205 are thened follow the steps.
Wherein, the routed path information that the default route information table is used to save the different application page is answered with the difference With the mapping relations between the corresponding jump page module information of the page.It should be noted that in order to determine that there are the applications The corresponding jump page module information of the page, the step 203 can specifically include: according to the routed path information from default The corresponding hop processor key-value pair of the application page is searched in route information table, and judges the hop processor key-value pair Value whether be empty;If non-empty, it is determined that jump page there are the application page is corresponding in the default route information table Face module information, and the value that the hop processor corresponds to key-value pair is determined as the corresponding jump page group of the application page Part information;If it is empty, it is determined that the corresponding jump page component of the application page is not present in the default route information table Information.The default route information table specifically can be used to save the routed path information of the different application page and the difference is answered With the mapping relations between the corresponding hop processor key-value pair of the page.For example, a certain item of default route information table routes letter Breath for " name ": " my wealth ", " urlPath ": "/home ", " YZT_PACKAGE_NAME.handler ": " Com.pingan.yzt.MainAc tivity " }, then routed path information is that the application page of "/home " corresponding jumps place Manage device key-value pair are as follows: " YZT_PACKAGE_NAME.handler ": " com.pingan.yzt.MainActivity ", it is described " Handler " is the key that hop processor corresponds to key-value pair, and " com.pingan.yzt.MainActivity " is hop processor The value of corresponding key-value pair.In another example a certain routing iinformation be " name ": " wealth ", " urlPath ": "/he ", " Handler ": " " }, then routed path information is the value of the corresponding hop processor key-value pair of application page of "/he " are as follows: " ", Illustrate that routed path information is empty, default routing iinformation for the value of the corresponding hop processor key-value pair of application page of "/he " The jump page module information for the application page that routed path information is "/he " is not deposited in table, therefore, not to routing routing information It carries out jumping processing for the application page of "/he ".
For the embodiment of the present invention, before the step 203, the method also includes: obtain the default routing iinformation Table, and the default route information table load is encased in Hash table.At this point, the step 203 can specifically include: according to The routed path information and the Hash table are searched corresponding with the presence or absence of the application page in the default route information table Jump page module information.The Hash table is the data structure to be accessed according to key code, and being not required to compare can Directly obtain institute Cha Jilu.The key code and the default routing of different routed path information can be preserved in the Hash table Information table, key code can be used for identifying the corresponding routed path information of its in the default route information table and jump page group Mapping relations between part information.The effect of key code is similar compared with the effect of doorplate, for example, the pass of routed path information 1 Key is 000,000 for identifying reflecting between routing routing information 1 and jump page module information 1 in default route information table Relationship is penetrated, the key code of routed path information 2 is 001,001 for identifying routing 2 He of routing information in default route information table Mapping relations between jump page module information 2, similarly, all mapping relations in the default route information table It, therefore, in embodiments of the present invention, can be with according to the corresponding key code of routed path information to be identified using corresponding key code Directly search the mapping between the corresponding routed path information of its in the default route information table and jump page module information Relationship can determine in the default route information table according to the mapping relations inquired with the presence or absence of the application page pair Therefore the jump page module information answered inquires the corresponding jump page module information of the application page by Hash table, can To promote the efficiency of page jump.
204, using the jump page module information, realize that jumping to its from the application page corresponding jumps page Face.
For the embodiment of the present invention, the step 204 be can specifically include: jump place using the application page is corresponding Device is managed, reflection processing is carried out to the corresponding jump page module information of the application page, it is corresponding to obtain the application page Jump page component reflects class;It creates and loads the corresponding content of pages of the jump page component reflection class, described in realizing Application page jumps to its corresponding jump page.Such as by intent.setClassName function and Intent.putExtras function carries out reflection processing to the corresponding jump page module information of the application page, then utilizes Activity.startActivity (intent) function creation simultaneously loads the corresponding page of the jump page component reflection class Content.The content of pages can be the particular content of page elements, and such as content of pages is page title text, page figure The contents such as piece, page navigation, page input frame and button.
205, specially treated is carried out to the application page using default special processor, or is requested to background server The corresponding jump page module information of the application page, the application page sent according to the background server are corresponding Jump page module information is realized from the application page and jumps to the jump page.
It should be noted that not being that the processing of page jump can be by default special processor processing, the default spy Different processor can jump to some entrance class rather than specific classes of pages, as specially treated can be with are as follows: judge whether to log in User whether opened business, need to connect the network acquisition data that activate the service and judged, then determine the following page Need to jump to that page.Described the step of carrying out specially treated to the application page using default special processor, is specific It may include: that the corresponding configuration information of the application page is searched in default route information table;Using default special processor and The configuration information carries out specially treated to the application page.For example, the corresponding configuration information of the application page is " LoginType ": " 1 ", appendParams, then illustrate log in preceding intercept process, 0 represent do not need to log in, 1 represents and needs Log in, 2 represent need to be arranged password, 3 representative capacities demonstrate,prove five information, rank one higher than one, appendParams is then It is for Transfer Parameters, i.e. key=value&key2=value2 is transmitted in this way.I.e. before carrying out page jump, need pre- If special processor detection login intercepts type, after meeting corresponding login and intercepting type, such as by logging in or being arranged It is jumped again after the operation such as password, the parameter of default route information table or URL itself band can be taken in jump procedure.
For the embodiment of the present invention, BUG is jumped in order to explain that reparation is some, default route information table can be increased Dynamic is updated default route information table, and the method can also include: periodically to send default road to background server It is requested by the update of information table;Receive the newest default route information table that the background server issues.
Another kind method for page jump provided in an embodiment of the present invention, needs the page with pattern of annotated information is generallyd use at present Jump page is set out to carry out application and development, and to realize that page jump is compared, the present invention can receive application page and jump finger It enables, the application page jump instruction includes the URL of application page;And the URL can be solved using default resolver Analysis, obtains the routed path information of the application page.At the same time, road can be preset according to the routed path information searching By whether there is the corresponding jump page module information of the application page in information table, the default route information table is for protecting Deposit reflecting between the routed path information jump page module information corresponding with the different application page of the different application page Penetrate relationship;In jump page module information corresponding there are the application page, can be believed using the jump page component Breath is realized from the application page and jumps to its corresponding jump page, so as to by presetting route information table to application All pages jump carry out centralization management, the structure of application program can be simplified, reduce application program code dimension Shield and update cost simplify the development process of application program and reduce development cost, and then be able to ascend the exploitation of application program Efficiency.
Further, as the specific implementation of Fig. 1, the embodiment of the invention provides a kind of page skip devices, such as Fig. 3 institute Show, described device includes: receiving unit 31, resolution unit 32, resolution unit 33 and jump-transfer unit 34.
The receiving unit 31, can be used for receiving application page jump instruction, and the application page jump instruction includes The URL of application page.The receiving unit 31 is that reception application page jump instruction, the application page jump finger in the present apparatus Enable the main functional modules of the URL comprising application page.
The resolution unit 32 can be used for parsing the URL using default resolver, obtain the applications pages The routed path information in face.The resolution unit 32 is parsed using default resolver to the URL in the present apparatus, is obtained The main functional modules of the routed path information of the application page.
Whether the searching unit 33 can be used for being preset in route information table according to the routed path information searching and deposit In the corresponding jump page module information of the application page, the default route information table is used to save the routing of the different pages Mapping relations between routing information jump page module information corresponding from the different pages.The searching unit 33 is this It is preset in route information table in device according to the routed path information searching and is jumped with the presence or absence of the application page is corresponding The main functional modules and nucleus module of page assembly information.
There is described answer in default route information table if can be used for the searching unit 33 and search in the jump-transfer unit 34 With the corresponding jump page module information of the page, then utilize the corresponding jump page module information of the application page, realize from The application page jumps to the jump page.
For the embodiment of the present invention, the searching unit 33 is specifically used for according to the routed path information from default road By searching the corresponding hop processor key-value pair of the application page in information table, and judge the hop processor key-value pair Whether value is empty;If non-empty, it is determined that there are the corresponding jump page of the application page in the default route information table Module information, and the value that the hop processor corresponds to key-value pair is determined as the corresponding jump page component of the application page Information;If it is empty, it is determined that there is no the corresponding jump page component letters of the application page in the default route information table Breath.
The jump-transfer unit 34 specifically can be used for answering using the corresponding hop processor of the application page described Reflection processing is carried out with the corresponding jump page module information of the page, it is anti-to obtain the corresponding jump page component of the application page Penetrate class;It creates and loads the corresponding content of pages of the jump page component reflection class, to realize that the application page jumps to Its corresponding jump page.
For the embodiment of the present invention, described device further include: loading unit 35, as shown in Figure 4.
The receiving unit 31 can be also used for receiving the default route information table.
The loading unit 35 can be used for for the default route information table load being encased in Hash table.It is described to add Carrier unit 35 is that the default route information table is loaded the main functional modules being encased in Hash table in the present apparatus.
The searching unit 33 specifically can be used for being searched according to the routed path information and the Hash table described pre- If whether there is the corresponding jump page module information of the application page in route information table.
For the embodiment of the present invention, the corresponding jump page group of the application page is not present in default route information table When part information, specially treated, described device further include: processing unit 36 can be carried out to the application page.
The processing unit 36 is searched in default route information table there is no described in if can be used for the searching unit 33 The corresponding jump page module information of application page then carries out special place to the application page using default special processor Reason.
In addition, in order to realize page jump, described device further include: transmission unit 37.The transmission unit 37, can If the corresponding jump page group of the application page is not present to search in default route information table for the searching unit 33 Part information then sends the corresponding jump page module information acquisition request of the application page to background server.
The jump-transfer unit 34, the application page that specifically can be used for being sent according to the background server are corresponding Jump page module information is realized from the application page and jumps to the jump page.
For the embodiment of the present invention, BUG is jumped in order to explain that reparation is some, default route information table can be increased Dynamic is updated default route information table, the transmission unit 37, can be also used for timing and sends to background server The update request of default route information table.
Corresponding, the receiving unit 31 can be also used for receiving the newest default road that the background server issues By information table.
It should be noted that other of each functional module involved by a kind of page skip device provided in an embodiment of the present invention Corresponding description, can be with reference to the corresponding description of method shown in Fig. 1, and details are not described herein.
Based on above-mentioned method as shown in Figure 1, correspondingly, specifically may be used the embodiment of the invention also provides a kind of storage medium Think computer readable storage medium, be stored thereon with computer program, which performs the steps of when being executed by processor Application page jump instruction is received, the application page jump instruction includes the URL of application page;Using default resolver to institute It states URL to be parsed, obtains the routed path information of the application page;According to the default routing of the routed path information searching It whether there is the corresponding jump page module information of the application page in information table, the default route information table is for saving Mapping between the routed path information of different application page jump page module information corresponding with the different application page Relationship;If jump page module information exists, the jump page module information is utilized, realization is jumped from the application page To its corresponding jump page.
Based on the embodiment of above-mentioned method as shown in Figure 1 and device as shown in Figure 3, the embodiment of the invention also provides one kind The entity structure diagram of computer equipment, as shown in figure 5, the computer equipment includes: processor 41, memory 42 and is stored in On memory 42 and the computer program that can run on a processor, wherein memory 42 and processor 41 are arranged at bus 43 The upper processor 41 performs the steps of when executing described program receives application page jump instruction, and the application page is jumped Turn the URL that instruction includes application page;The URL is parsed using default resolver, obtains the road of the application page By routing information;It is preset according to the routed path information searching corresponding with the presence or absence of the application page in route information table Jump page module information, the default route information table be used for save the different application page routed path information and it is described not Mapping relations with application page between corresponding jump page module information;If jump page module information exists, utilize The jump page module information is realized from the application page and jumps to its corresponding jump page.The equipment further include: total Line 43 is configured as coupling processor 41 and memory 42.
According to the technical solution of the present invention, application page jump instruction, the application page jump instruction packet can be received URL containing application page;And the URL can be parsed using default resolver, obtain the routing of the application page Routing information.At the same time, it can be preset according to the routed path information searching in route information table and be answered with the presence or absence of described With the corresponding jump page module information of the page, the default route information table is used to save the routed path of the different application page Mapping relations between information jump page module information corresponding with the different application page;There are the application pages When corresponding jump page module information, the jump page module information can be utilized, realization is jumped from the application page To its corresponding jump page, so as to carry out centralization to the jumping for all pages of application by presetting route information table Management, can simplify the structure of application program, reduce the code maintenance of application program and update cost, simplify application program Development process and reduction development cost, and then it is able to ascend the development efficiency of application program.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all include within protection scope of the present invention.

Claims (9)

1. a kind of method for page jump characterized by comprising
Application page jump instruction is received, the application page jump instruction includes the URL of application page;
The URL is parsed using default resolver, obtains the routed path information of the application page;
It is preset in route information table according to the routed path information searching and jumps page with the presence or absence of the application page is corresponding Face module information, the default route information table are used to save the routed path information and the different application of the different application page Mapping relations between the corresponding jump page module information of the page;
If jump page module information exists, the jump page module information is utilized, realization is jumped from the application page To its corresponding jump page.
2. the method according to claim 1, wherein described according to the default routing of the routed path information searching It whether there is the corresponding jump page module information of the application page in information table, comprising:
The corresponding hop processor key of the application page is searched from default route information table according to the routed path information Value pair, and judge whether the value of the hop processor key-value pair is empty;
If non-empty, it is determined that there are the corresponding jump page component letters of the application page in the default route information table Breath, and the value that the hop processor corresponds to key-value pair is determined as the corresponding jump page module information of the application page;
If it is empty, it is determined that there is no the corresponding jump page component letters of the application page in the default route information table Breath.
3. according to the method described in claim 2, it is characterized in that, described utilize the corresponding jump page group of the application page Part information is realized from the application page and jumps to its corresponding jump page, comprising:
Using the corresponding hop processor of the application page, the corresponding jump page module information of the application page is carried out Reflection processing obtains the corresponding jump page component reflection class of the application page;
It creates and loads the corresponding content of pages of the jump page component reflection class, to realize that the application page jumps to it Corresponding jump page.
4. the method according to claim 1, wherein described according to the default routing of the routed path information searching Before whether there is the corresponding jump page module information of the application page in information table, the method also includes:
The default route information table is received, and the default route information table load is encased in Hash table;
Described preset according to the routed path information searching whether there is the corresponding jump of the application page in route information table Blade-rotating face module information, comprising:
Being searched according to the routed path information and the Hash table whether there is the application in the default route information table The corresponding jump page module information of the page.
5. the method according to claim 1, wherein described according to the default routing of the routed path information searching After whether there is the corresponding jump page module information of the application page in information table, the method also includes:
If jump page module information is not present, specially treated is carried out to the application page using default special processor, Or the corresponding jump page module information acquisition request of the application page is sent to background server;It is taken according to the backstage The corresponding jump page module information of the application page that business device is sent is realized from the application page and jumps to described jump The page.
6. the method according to claim 1, wherein the method also includes:
Timing sends the update request of default route information table to background server;
Receive the newest default route information table that the background server issues.
7. a kind of method for page jump characterized by comprising
Receiving unit, for receiving application page jump instruction, the application page jump instruction includes the URL of application page;
Resolution unit obtains the routed path letter of the application page for parsing using default resolver to the URL Breath;
Searching unit whether there is the application page for presetting according to the routed path information searching in route information table Corresponding jump page module information, the default route information table be used to save the routed path information of the different pages with it is described Mapping relations between the corresponding jump page module information of the different pages;
Jump-transfer unit jumps if searching in default route information table for the searching unit there are the application page is corresponding Page assembly information, then utilize the corresponding jump page module information of the application page, and realization is jumped from the application page To the jump page.
8. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor The step of Shi Shixian method described in any one of claims 1 to 6.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the computer program is realized described in any one of claims 1 to 6 when being executed by processor Method the step of.
CN201910469582.0A 2019-05-31 2019-05-31 Method for page jump, device, storage medium and computer equipment Pending CN110347942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910469582.0A CN110347942A (en) 2019-05-31 2019-05-31 Method for page jump, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910469582.0A CN110347942A (en) 2019-05-31 2019-05-31 Method for page jump, device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN110347942A true CN110347942A (en) 2019-10-18

Family

ID=68174585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910469582.0A Pending CN110347942A (en) 2019-05-31 2019-05-31 Method for page jump, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110347942A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083054A (en) * 2019-11-15 2020-04-28 浙江大搜车软件技术有限公司 Route configuration processing method and device, computer equipment and storage medium
CN111258559A (en) * 2020-02-21 2020-06-09 南京新贝金服科技有限公司 Hybrid application multi-level page routing skip method based on reach Native
CN111428163A (en) * 2020-03-20 2020-07-17 吉林亿联银行股份有限公司 Page access method and device
CN111443908A (en) * 2020-03-19 2020-07-24 深圳市震有软件科技有限公司 vue method, device, equipment and medium for realizing route interaction of multiple independent pages
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN112632420A (en) * 2020-12-24 2021-04-09 青岛海尔科技有限公司 Interface skipping method and device, storage medium and electronic device
CN113127776A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Breadcrumb path generation method and device and terminal equipment
WO2022033055A1 (en) * 2020-08-12 2022-02-17 深圳前海微众银行股份有限公司 Page rendering method, apparatus, and device, and computer readable storage medium
CN114285815A (en) * 2021-12-21 2022-04-05 中国农业银行股份有限公司 Application skipping method and application skipping device
CN116074249A (en) * 2023-01-30 2023-05-05 北京达佳互联信息技术有限公司 Multi-level page starting method and device, electronic equipment and storage medium
CN116233217A (en) * 2023-05-08 2023-06-06 成都赛力斯科技有限公司 Page jump method and device based on route, electronic equipment and storage medium
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815276A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Method for page jump and device
CN107729106A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 It is a kind of that the method and apparatus quickly redirected are realized between application component
CN108469979A (en) * 2018-03-28 2018-08-31 深圳前海桔子信息技术有限公司 A kind of method for page jump, device, server and storage medium
CN108897612A (en) * 2018-07-17 2018-11-27 北京京东金融科技控股有限公司 Route the method and apparatus jumped

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815276A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Method for page jump and device
US20180278671A1 (en) * 2015-11-27 2018-09-27 Alibaba Group Holding Limited Page jump method and apparatus
CN107729106A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 It is a kind of that the method and apparatus quickly redirected are realized between application component
CN108469979A (en) * 2018-03-28 2018-08-31 深圳前海桔子信息技术有限公司 A kind of method for page jump, device, server and storage medium
CN108897612A (en) * 2018-07-17 2018-11-27 北京京东金融科技控股有限公司 Route the method and apparatus jumped

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083054B (en) * 2019-11-15 2021-11-30 浙江大搜车软件技术有限公司 Route configuration processing method and device, computer equipment and storage medium
CN111083054A (en) * 2019-11-15 2020-04-28 浙江大搜车软件技术有限公司 Route configuration processing method and device, computer equipment and storage medium
CN113127776A (en) * 2019-12-31 2021-07-16 深圳云天励飞技术有限公司 Breadcrumb path generation method and device and terminal equipment
CN111258559A (en) * 2020-02-21 2020-06-09 南京新贝金服科技有限公司 Hybrid application multi-level page routing skip method based on reach Native
CN111443908A (en) * 2020-03-19 2020-07-24 深圳市震有软件科技有限公司 vue method, device, equipment and medium for realizing route interaction of multiple independent pages
CN111443908B (en) * 2020-03-19 2024-01-02 深圳市震有软件科技有限公司 Method, device, equipment and medium for realizing route interaction of vue multiple independent pages
CN111428163A (en) * 2020-03-20 2020-07-17 吉林亿联银行股份有限公司 Page access method and device
CN111666585B (en) * 2020-04-16 2023-08-18 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
WO2022033055A1 (en) * 2020-08-12 2022-02-17 深圳前海微众银行股份有限公司 Page rendering method, apparatus, and device, and computer readable storage medium
CN112632420A (en) * 2020-12-24 2021-04-09 青岛海尔科技有限公司 Interface skipping method and device, storage medium and electronic device
CN114285815A (en) * 2021-12-21 2022-04-05 中国农业银行股份有限公司 Application skipping method and application skipping device
CN114285815B (en) * 2021-12-21 2024-05-14 中国农业银行股份有限公司 Application jump method and application jump device
CN116074249A (en) * 2023-01-30 2023-05-05 北京达佳互联信息技术有限公司 Multi-level page starting method and device, electronic equipment and storage medium
CN116233217A (en) * 2023-05-08 2023-06-06 成都赛力斯科技有限公司 Page jump method and device based on route, electronic equipment and storage medium
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110347942A (en) Method for page jump, device, storage medium and computer equipment
US9497274B2 (en) Extending functionality of web-based applications
AU2005246392B2 (en) Occasionally-connected application server
US7158988B1 (en) Reusable online survey engine
US7702959B2 (en) Error management system and method of using the same
US10880391B2 (en) Method and apparatus for relaying session information from a portal server
CN100421375C (en) Data sharing system, method and software tool
US8312170B2 (en) Method and apparatus for managing a collection of portlets in a portal server
US20050050021A1 (en) Information Messaging and Collaboration System
US20060235935A1 (en) Method and apparatus for using business rules or user roles for selecting portlets in a web portal
CN107809383A (en) A kind of map paths method and device based on MVC
CN104317570B (en) The apparatus and method of dynamic analysis Web applications
CN113037891B (en) Access method and device for stateful application in edge computing system and electronic equipment
CN101853152A (en) Method and system for generating graphical user interface
CN108932238A (en) A kind of cross-domain communication method and device
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN103827778A (en) Enterprise tools enhancements
CN107515903A (en) A kind of method and apparatus for loading displaying scene webpage
CN104270443B (en) A kind of cloud computing system and method for being capable of dynamic analysis Web applications
CN108573171A (en) Greenplum data desensitization method, device, equipment and medium
KR100717242B1 (en) Error management system providing debugging information and method using the same
CN108959294A (en) A kind of method and apparatus accessing search engine
CN113064987A (en) Data processing method, apparatus, electronic device, medium, and program product
CN112597531A (en) Data product management method and device
WO2009066957A2 (en) System for providing web service linked with portal site to web site, and method thereof

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