CN113434230A - Jump control method and device for H5 page, storage medium and electronic device - Google Patents

Jump control method and device for H5 page, storage medium and electronic device Download PDF

Info

Publication number
CN113434230A
CN113434230A CN202110707663.7A CN202110707663A CN113434230A CN 113434230 A CN113434230 A CN 113434230A CN 202110707663 A CN202110707663 A CN 202110707663A CN 113434230 A CN113434230 A CN 113434230A
Authority
CN
China
Prior art keywords
page
target
address information
app
maintenance library
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
CN202110707663.7A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110707663.7A priority Critical patent/CN113434230A/en
Publication of CN113434230A publication Critical patent/CN113434230A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • G06F9/4486Formation of subprogram jump address

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method, a device, a storage medium and an electronic device for controlling jump of an H5 page, wherein the method comprises the following steps: under the condition that an operation instruction is received in an H5 page accessed by an application APP, determining target address information of a target H5 page to which the operation instruction requests to jump; inquiring the target maintenance base based on the target address information to obtain an inquiry result, wherein the inquiry result is used for indicating whether the target maintenance base has an APP page corresponding to the target address information; and jumping to the target page under the condition that the query result is used for indicating that the target page of the APP corresponding to the target address information exists in the target maintenance library. The invention solves the problem of low management efficiency caused by the fact that whether the jump behavior distinguishing logic is adapted or not needs to be confirmed when each H5 page is introduced in the related technology, and further achieves the effect of improving the jump control management efficiency of the H5 page.

Description

Jump control method and device for H5 page, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the technical field of mobile internet, in particular to a method and a device for controlling jump of an H5 page, a storage medium and an electronic device.
Background
In a mobile terminal application APP, a page with higher dynamic requirements is generally accessed in a form of loading an H5 page by using a web view Webview, such as a marketing activity page, because APP version-issuing verification period is longer and there is a risk of verification failure, and in a scenario where the Webview loads an H5 activity page, the jump behavior of the H5 page should be distinguished in different operating environments, for example: the H5 activity page shows a list of items, and the user clicks on an item, and in the browser environment, jumps to the H5 item detail page, but in the APP running environment, it should go to the item detail page of the APP.
The current popular technical scheme is to add logic for distinguishing the operating environment in an H5 page, for example, according to the judgment of a User-Agent, the logic is processed by different jump logic when a behavior is triggered in a browser or a certain mobile terminal APP environment, however, when a new similar activity page is required, developers need to adapt the logic for distinguishing the jump behavior once, and when a new distinguishing logic is introduced, almost all H5 activity pages need to be changed, and the workload is very large. When an H5 page is introduced into the mobile terminal APP, whether the page is matched with the jump behavior distinguishing logic needs to be confirmed, management is difficult, and the risk of online abnormity is high.
In order to solve the problem that in the prior art, when each H5 page is introduced, whether the jump behavior distinguishing logic needs to be adapted or not needs to be confirmed, so that the management efficiency is low, an effective solution is not proposed at present.
Disclosure of Invention
The embodiment of the invention provides a jump control method, a jump control device, a storage medium and an electronic device for H5 pages, which are used for solving the problem of low management efficiency caused by the fact that whether jump behavior distinguishing logic is adapted or not needs to be confirmed when each H5 page is introduced in the related technology.
According to an embodiment of the invention, a jump control method for an H5 page is provided, which includes: under the condition that an operation instruction is received in an H5 page accessed by an application APP, determining target address information of a target H5 page to which the operation instruction requests to jump; querying a target maintenance library based on the target address information to obtain a query result, wherein the target maintenance library is used for storing a corresponding relation between address information of an H5 page and a page of the APP, and the query result is used for indicating whether the page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library; and jumping to the target page under the condition that the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library.
In an exemplary embodiment, in a case that an operation instruction is received in an H5 page accessed by an application APP, the method further includes: starting a page loading rewriting program, wherein the page loading rewriting program is used for intercepting a jump operation jumping to the target H5 page; and in the case that the jump operation is determined to be intercepted, triggering the operation of determining the target address information of the target H5 page to which the jump instruction requests to be carried out.
In one exemplary embodiment, initiating a page load rewrite program includes: under the condition that the APP is determined to be installed in the IOS system, starting a should Start Load With Request rewrite program in UI Web view; and under the condition that the APP is determined to be installed in the Android system, starting a should Override URL Loading rewriting program in the Web view.
In one exemplary embodiment, after obtaining the query result, the method further comprises: and jumping to the target H5 page based on the target address information when the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page does not exist in the target maintenance library.
In one exemplary embodiment, before querying a target maintenance repository based on the target address information to obtain a query result, the method further comprises: and storing the address information of the pre-configured H5 page and the corresponding relation of the APP page into the target maintenance library.
In an exemplary embodiment, after storing the address information of the preconfigured H5 page and the corresponding relationship of the APP page in the target maintenance library, the method further includes: and updating the corresponding relation stored in the target maintenance library to obtain a second target maintenance library.
In an exemplary embodiment, updating the correspondence stored in the target maintenance base to obtain the second target maintenance base includes at least one of: adding the corresponding relation between the first address information of the first H5 page and the first page of the APP to the target maintenance library to obtain a second target maintenance library; deleting the corresponding relation between the second address information of the second H5 page and the second page of the APP from the target maintenance library to obtain a second target maintenance library; and modifying the corresponding relation stored in the target maintenance library to obtain a second target maintenance library.
According to another embodiment of the present invention, there is also provided a jump control apparatus of H5 page, including: the determining module is used for determining target address information of a target H5 page to which a jump is requested by an operation instruction under the condition that the operation instruction is received in an H5 page accessed by an application APP; a query module, configured to query a target maintenance library based on the target address information to obtain a query result, where the target maintenance library is configured to store a correspondence between address information of an H5 page and a page of the APP, and the query result is used to indicate whether a page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library; and the jumping module is used for jumping to the target page under the condition that the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
Through the invention, under the condition that an operation instruction is received in an H5 page accessed by an application APP, the target address information of a target H5 page requested to be jumped to by the operation instruction is determined, then a target maintenance library is inquired based on the target address information to inquire whether the target maintenance library has an APP page corresponding to the target address information of the target H5 page, and when the inquiry result indicates that the target maintenance library has the APP page corresponding to the target address information of the target H5 page, the target page is jumped to. The method and the device achieve the purpose of controlling the jump of the H5 page based on the query result of the target maintenance library, solve the problem that in the related technology, whether the jump behavior distinguishing logic is adapted or not needs to be confirmed when each H5 page is introduced, so that the management efficiency is low, and further achieve the effect of improving the jump control management efficiency of the H5 page.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a jump control method of an H5 page according to an embodiment of the present invention;
FIG. 2 is a flowchart of a jump control method of the H5 page according to an embodiment of the present invention;
FIG. 3 is a flowchart of a jump control method of the H5 page according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating an architecture of a jump control apparatus of page H5 according to an embodiment of the present invention;
fig. 5 is a block diagram of a preferred structure of a jump control apparatus of H5 page according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the method running on the mobile terminal, fig. 1 is a hardware block diagram of the mobile terminal of the jump control method of the H5 page according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the jump control method of the H5 page in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for executing a wake-up response operation is provided, and fig. 2 is a flowchart of a method for executing a wake-up response operation according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, under the condition that an operation instruction is received in an H5 page accessed by an application APP, determining target address information of a target H5 page to which the operation instruction requests to jump;
step S204, querying a target maintenance library based on the target address information to obtain a query result, wherein the target maintenance library is used for storing a corresponding relationship between address information of an H5 page and a page of the APP, and the query result is used for indicating whether the page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library;
step S206, when the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library, jumping to the target page.
Through the steps, when an operation instruction is received in an H5 page accessed by an application APP, the target address information of a target H5 page to which the operation instruction requests to jump is determined, then a target maintenance library is inquired based on the target address information to inquire whether the target maintenance library has an APP page corresponding to the target address information of the target H5 page, and when the inquiry result indicates that the target maintenance library has the APP page corresponding to the target address information of the target H5 page, the operation instruction jumps to the target page. The method and the device achieve the aim of jump control over the H5 page, solve the problem that in the related technology, whether jump behavior distinguishing logic is adapted or not needs to be confirmed when each H5 page is introduced, so that the management efficiency is low, and further achieve the effect of improving the jump control management efficiency of the H5 page.
The execution subject of the above steps may be an APP end or a terminal, or a processor configured on a storage device and having a human-computer interaction capability, or a processing device or a processing unit having a similar processing capability, but is not limited thereto. The following description takes the APP end to perform the above operation as an example (which is only an exemplary description, and in actual operation, other devices or modules may also perform the above operation):
in the above embodiment, when an operation instruction is received in an H5 page accessed by an APP, for example, when an operation instruction (or other operation instruction) that a user clicks a certain commodity a is received in an H5 commodity display page, the APP determines target address information of a target H5 page to which the operation instruction requests to jump, for example, target address information of an H5 commodity detail page of the commodity a; then, inquiring a target maintenance library based on the target address information to inquire whether an APP page corresponding to the target address information of the target H5 page exists in the target maintenance library, wherein in practical application, an APP terminal or a service terminal stores the corresponding relation between the address information of the H5 page and the APP page into the target maintenance library in advance, and after the APP terminal determines the target address information requested to be jumped to by the operation instruction, the APP terminal inquires whether the APP page corresponding to the target address information of the target H5 page exists in the target maintenance library; and when the query result indicates that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library, jumping to the target page (namely a commodity A detail page of the APP). Through the embodiment, the purpose of jump control over the H5 page is achieved, the problem that in the related art, whether jump behavior distinguishing logic is adapted or not needs to be confirmed when each H5 page is introduced, so that the management efficiency is low is solved, and the effect of improving the jump control management efficiency of the H5 page is achieved.
In an optional embodiment, in a case that an operation instruction is received in an H5 page accessed by an application APP, the method further includes: starting a page loading rewriting program, wherein the page loading rewriting program is used for intercepting a jump operation jumping to the target H5 page; and in the case that the jump operation is determined to be intercepted, triggering the operation of determining the target address information of the target H5 page to which the jump instruction requests to be carried out. In this embodiment, in a case that an operation instruction is received in an H5 page accessed by an application APP, the method further includes: and starting a page loading rewrite program, wherein the page loading rewrite program is used for intercepting a jump operation to the target H5 page, that is, an APP terminal starts the page rewrite program, for example, the APP terminal directly intercepts the jump behavior of the H5 page by a method of rewriting the loader program at an IOS or Android terminal, and under the condition that the jump operation is determined to be intercepted, the operation of determining the target address information of the target H5 page to which the operation instruction requests to jump is triggered to be executed, so as to determine the target address information of the target H5 page.
In an alternative embodiment, initiating a page load rewrite program includes: under the condition that the APP is determined to be installed in the IOS system, starting a should Start Load With Request rewrite program in UI Web view; and under the condition that the APP is determined to be installed in the Android system, starting a should Override URL Loading rewriting program in the Web view. In this embodiment, starting the page load rewrite program includes: under the condition that the APP is determined to be installed in the IOS, starting a child Start Load With Request rewrite program in UI Web view of the IOS; and under the condition that the APP is determined to be installed in the Android system, starting a child Override URL Loading rewriting program in Web view of the Android system, wherein the method is applicable to the APP side of the IOS or the Android system.
In an optional embodiment, after obtaining the query result, the method further comprises: and jumping to the target H5 page based on the target address information when the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page does not exist in the target maintenance library. In this embodiment, after obtaining the query result, in a case where the query result indicates that the target page of the APP corresponding to the target address information of the target H5 page does not exist in the above target maintenance library, jumping to the target H5 page based on the target address information, that is, in a case where the corresponding relationship between the target address information of the target H5 page and the target page of the APP does not exist in the target maintenance library, allowing the H5 to jump to the target page itself.
In an optional embodiment, before querying the target maintenance repository based on the target address information to obtain the query result, the method further comprises: and storing the address information of the pre-configured H5 page and the corresponding relation of the APP page into the target maintenance library. In this embodiment, before querying the target maintenance library based on the target address information to obtain a query result, a corresponding relationship between the address information of the H5 page and the page of the corresponding APP is configured in advance, and the corresponding relationship is stored in the target maintenance library.
In an optional embodiment, after storing the address information of the preconfigured H5 page and the corresponding relationship of the APP page in the target maintenance library, the method further includes: and updating the corresponding relation stored in the target maintenance library to obtain a second target maintenance library. In this embodiment, after the address information of the H5 page configured in advance and the corresponding relationship between the APP pages are stored in the target maintenance library, the corresponding relationship stored in the target maintenance library may be updated to obtain a second target maintenance library, in practical applications, when APP pages need to be added or deleted, developers only need to update the corresponding relationship stored in the target maintenance library, which avoids the problem that workload is large because developers need to adapt a logic of a jump behavior each time when there is a need to add a new similar active page in the related art, and the problem that management is difficult because each H5 page needing to adapt a mobile terminal APP needs to individually distinguish and process the jump behavior of different operating environments and whether an adapted mobile terminal APP has a document record needs to be designed in advance at the beginning of each H5 page development, the effect of improving the jump control management efficiency of the H5 page is achieved.
In an optional embodiment, updating the correspondence stored in the target maintenance library to obtain the second target maintenance library includes at least one of: adding the corresponding relation between the first address information of the first H5 page and the first page of the APP to the target maintenance library to obtain a second target maintenance library; deleting the corresponding relation between the second address information of the second H5 page and the second page of the APP from the target maintenance library to obtain a second target maintenance library; and modifying the corresponding relation stored in the target maintenance library to obtain a second target maintenance library. In this embodiment, updating the corresponding relationship stored in the target maintenance library to obtain the second target maintenance library includes at least one of: adding the corresponding relationship between the first address information of the first H5 page and the first page of the APP into the target maintenance library to obtain a second target maintenance library, for example, adding a new item B in the H5 commodity display page, and adding the corresponding relationship between the first address information of the first H5 page (corresponding to the address information of the new item B) and the first page of the APP (corresponding to the page of the new item B) into the target maintenance library to obtain the second target maintenance library; deleting the corresponding relationship between the second address information of the second H5 page and the second page of the APP from the target maintenance library to obtain a second target maintenance library, for example, deleting a commodity C to be deleted in the H5 commodity display page, and deleting the corresponding relationship between the second address information of the second H5 page (corresponding to the address information of the newly added commodity C) and the second page of the APP (corresponding to the page information of the newly added commodity C) from the target maintenance library to obtain the second target maintenance library; modifying the corresponding relation stored in the target maintenance library to obtain a second target maintenance library, for example, when a target page of a certain commodity D in an H5 commodity display page needs to be modified, only the corresponding relation stored in the target maintenance library (for example, the corresponding relation between address information of the commodity D and the page) needs to be modified to obtain the second target maintenance library; through the embodiment, the purpose of updating the target maintenance library is achieved, and the effect of improving the development efficiency is achieved.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention.
The present invention will be described in detail with reference to the following examples:
fig. 3 is a flowchart of a jump control method of an H5 page according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
s302, the APP accesses the H5 page through Webview, for example, a developer uses UIWebview at an IOS end and uses Webview at an Android end to access the H5 page;
s304, the user triggers a jump behavior on a H5 page;
s306, intercepting the webview to intercept a target address ur l of an H5 page, for example, when a user triggers a jump behavior on an H5 page, intercepting the APP of the mobile terminal by a method of respectively rewriting programs at an IOS or Android terminal, namely starting the rewriting program in the IOS system if the APP is installed in the IOS system, and starting the rewriting program in the Android system if the APP is installed in the Android system;
s308, inquiring a dictionary (corresponding to the target maintenance library);
it should be noted that, in this embodiment, a mapping relationship between a target address url of an H5 page and a routing name of an APP page of a mobile terminal is maintained in advance, for example, a detail page url of an H5 commodity is: m.xxx.com/Product, where the APP page routing name (corresponding to the page of the APP) is Product, url is key, and the APP routing name is value, and is maintained in a set of dictionaries, and all operations such as adding, deleting, modifying and the like on the mapping relationship in subsequent development only need to modify the set of dictionaries;
s310, judging whether the dictionary query is hit, namely judging whether an APP page routing name corresponding to an H5 page target address url (namely an intercepted target address) exists in the dictionary;
s312, if the result of the determination in the step S310 is yes, that is, if there is an APP page routing name corresponding to the H5 page destination address url in the dictionary, taking over the jump behavior, jumping to the corresponding APP page, that is, taking over the jump behavior by the APP, and jumping to the corresponding page maintained in the dictionary;
s314, when the judgment result in the step S310 is negative, namely when the dictionary does not have the APP page routing name corresponding to the H5 page destination address url, allowing the H5 to perform the self-skipping behavior;
s316, meeting the interaction expectation;
it should be noted that the interaction effect is represented as: the jump behavior triggered by the H5 page is that the target page maintained in the dictionary jumps to the APP page, and the target page not maintained jumps to the H5 page, so that the jump behavior can meet the expectation;
and S318, ending.
Through the embodiment, the jump behavior of H5 can be directly intercepted from the APP terminal, and the code of any H5 page does not need to be invaded, and whether the APP is matched or not does not need to be confirmed when the APP of the mobile terminal is introduced into the H5 page, so that the purposes of simplifying the workload and reducing the abnormal risk are achieved, the problem of low related management efficiency in the prior art is solved, and the effect of improving the management efficiency is achieved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode 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 is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a jump control device for H5 page is further provided, and fig. 4 is a block diagram of a structure of a jump control device for H5 page according to an embodiment of the present invention, as shown in fig. 4, the device includes:
a determining module 402, configured to, in a case that an operation instruction is received in an H5 page accessed by an application APP, determine target address information of a target H5 page to which a jump is requested by the operation instruction;
a query module 404, configured to query a target maintenance library based on the target address information to obtain a query result, where the target maintenance library is configured to store a correspondence between address information of an H5 page and a page of the APP, and the query result is used to indicate whether a page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library;
a first jumping module 406, configured to jump to the target page if the query result is used to indicate that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library.
Fig. 5 is a block diagram of a preferred structure of a jump control apparatus for H5 page according to an embodiment of the present invention, and as shown in fig. 5, the apparatus further includes: a starting module 502, configured to, in a case that an operation instruction is received in an H5 page accessed by an application APP, start a page loading rewrite program, where the page loading rewrite program is configured to intercept a jump operation to jump to the target H5 page; and the execution module is used for triggering and executing the operation of determining the target address information of the target H5 page to which the jump instruction requests to jump under the condition that the jump operation is determined to be intercepted.
In an optional embodiment, the starting module includes: the first starting unit is used for starting a child Start Load With Request rewrite program in UI Web view under the condition that the APP is determined to be installed in the IOS system; and the second determining unit is used for starting a should Override URL Loading rewriting program in the Web view under the condition that the APP is determined to be installed in the Android system.
In an optional embodiment, the apparatus further comprises: a second jumping module, configured to, after obtaining a query result, jump to the target H5 page based on the target address information if the query result is used to indicate that a target page of the APP corresponding to the target address information of the target H5 page does not exist in the target maintenance library.
In an optional embodiment, the apparatus further comprises: and the storage module is used for storing the address information of the pre-configured H5 page and the corresponding relation of the APP page into the target maintenance library before querying the target maintenance library based on the target address information to obtain a query result.
In an optional embodiment, the apparatus further comprises: and the updating module is used for updating the corresponding relation stored in the target maintenance library after the address information of the pre-configured H5 page and the corresponding relation of the APP page are stored in the target maintenance library so as to obtain a second target maintenance library.
In an optional embodiment, the update module includes at least one of: an adding unit, configured to add a correspondence between first address information of a first H5 page and a first page of the APP to the target maintenance base to obtain a second target maintenance base; a deleting unit, configured to delete a correspondence between second address information of a second H5 page and a second page of the APP from the target maintenance library, so as to obtain a second target maintenance library; and the modifying unit is used for modifying the corresponding relation stored in the target maintenance library to obtain a second target maintenance library.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A jump control method for H5 page is characterized by comprising the following steps:
under the condition that an operation instruction is received in an H5 page accessed by an application APP, determining target address information of a target H5 page to which the operation instruction requests to jump;
querying a target maintenance library based on the target address information to obtain a query result, wherein the target maintenance library is used for storing a corresponding relation between address information of an H5 page and a page of the APP, and the query result is used for indicating whether the page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library;
and jumping to the target page under the condition that the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library.
2. The method according to claim 1, characterized in that in case of receiving an operation instruction in a H5 page accessed by an application APP, the method further comprises:
starting a page loading rewriting program, wherein the page loading rewriting program is used for intercepting a jump operation jumping to the target H5 page; and in the case that the jump operation is determined to be intercepted, triggering the operation of determining the target address information of the target H5 page to which the jump instruction requests to be carried out.
3. The method of claim 2, wherein initiating a page load rewrite routine comprises:
starting a should Start Load With Request rewrite program in UIWeb view under the condition that the APP is determined to be installed in the IOS system;
and under the condition that the APP is determined to be installed in the Android system, starting a should Override URL Loading rewriting program in the Web view.
4. The method of claim 1, wherein after obtaining the query result, the method further comprises:
and jumping to the target H5 page based on the target address information when the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page does not exist in the target maintenance library.
5. The method of claim 1, prior to querying a target maintenance repository for query results based on the target address information, the method further comprising:
and storing the address information of the pre-configured H5 page and the corresponding relation of the APP page into the target maintenance library.
6. The method of claim 5, wherein after storing the address information of the preconfigured H5 page and the corresponding relationship of the APP page in the target maintenance library, the method further comprises:
and updating the corresponding relation stored in the target maintenance library to obtain a second target maintenance library.
7. The method of claim 6, wherein updating the correspondence stored in the target maintenance base to obtain the second target maintenance base comprises at least one of:
adding the corresponding relation between the first address information of the first H5 page and the first page of the APP to the target maintenance library to obtain a second target maintenance library;
deleting the corresponding relation between the second address information of the second H5 page and the second page of the APP from the target maintenance library to obtain a second target maintenance library;
and modifying the corresponding relation stored in the target maintenance library to obtain a second target maintenance library.
8. A jump control device of H5 page, comprising:
the determining module is used for determining target address information of a target H5 page to which a jump is requested by an operation instruction under the condition that the operation instruction is received in an H5 page accessed by an application APP;
a query module, configured to query a target maintenance library based on the target address information to obtain a query result, where the target maintenance library is configured to store a correspondence between address information of an H5 page and a page of the APP, and the query result is used to indicate whether a page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library;
and the jumping module is used for jumping to the target page under the condition that the query result is used for indicating that the target page of the APP corresponding to the target address information of the target H5 page exists in the target maintenance library.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method as claimed in any of claims 1 to 7 are implemented when the computer program is executed by the processor.
CN202110707663.7A 2021-06-24 2021-06-24 Jump control method and device for H5 page, storage medium and electronic device Pending CN113434230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707663.7A CN113434230A (en) 2021-06-24 2021-06-24 Jump control method and device for H5 page, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707663.7A CN113434230A (en) 2021-06-24 2021-06-24 Jump control method and device for H5 page, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113434230A true CN113434230A (en) 2021-09-24

Family

ID=77755324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707663.7A Pending CN113434230A (en) 2021-06-24 2021-06-24 Jump control method and device for H5 page, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113434230A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356477A (en) * 2021-12-22 2022-04-15 青岛海信移动通信技术股份有限公司 Terminal device and application program calling method
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN115002188A (en) * 2022-05-30 2022-09-02 平安普惠企业管理有限公司 Service switching method, device, equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893508A (en) * 2016-03-30 2016-08-24 北京京东尚科信息技术有限公司 Method, device and system for determining access sequence of native page and H5 page
CN107679061A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Mix APP page navigation method, device, terminal and storage medium
CN107766499A (en) * 2017-10-19 2018-03-06 广州视睿电子科技有限公司 A kind of method for page jump, device, equipment and storage medium
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium
CN108563668A (en) * 2018-01-08 2018-09-21 武汉斗鱼网络科技有限公司 The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN109033302A (en) * 2018-07-16 2018-12-18 深圳鼎盛电脑科技有限公司 A kind of method for page jump, device, terminal and storage medium
CN110007815A (en) * 2018-12-26 2019-07-12 阿里巴巴集团控股有限公司 A kind of air navigation aid and device of application
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN110717119A (en) * 2019-10-10 2020-01-21 北京字节跳动网络技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111428163A (en) * 2020-03-20 2020-07-17 吉林亿联银行股份有限公司 Page access method and device
CN111506370A (en) * 2020-03-09 2020-08-07 平安普惠企业管理有限公司 H5 page jumping method and device on IOS system, computer equipment and storage medium
CN111552463A (en) * 2020-03-27 2020-08-18 深圳壹账通智能科技有限公司 Page jump method and device, computer equipment and storage medium
CN111651703A (en) * 2020-04-14 2020-09-11 北京奇艺世纪科技有限公司 Page jump method and device, electronic equipment and readable storage medium
CN111984356A (en) * 2020-08-24 2020-11-24 腾讯科技(上海)有限公司 Page jump method, device, computer equipment and storage medium
CN112035186A (en) * 2020-09-02 2020-12-04 平安普惠企业管理有限公司 Preloading and jumping method, device, equipment and medium of H5 page
CN112579928A (en) * 2019-09-30 2021-03-30 北京京东尚科信息技术有限公司 Page jump method, page jump device, computer equipment and computer readable storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893508A (en) * 2016-03-30 2016-08-24 北京京东尚科信息技术有限公司 Method, device and system for determining access sequence of native page and H5 page
CN107679061A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Mix APP page navigation method, device, terminal and storage medium
CN107766499A (en) * 2017-10-19 2018-03-06 广州视睿电子科技有限公司 A kind of method for page jump, device, equipment and storage medium
CN108052334A (en) * 2017-12-22 2018-05-18 平安养老保险股份有限公司 Method for page jump, device, computer equipment and storage medium
CN108563668A (en) * 2018-01-08 2018-09-21 武汉斗鱼网络科技有限公司 The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN109033302A (en) * 2018-07-16 2018-12-18 深圳鼎盛电脑科技有限公司 A kind of method for page jump, device, terminal and storage medium
CN110007815A (en) * 2018-12-26 2019-07-12 阿里巴巴集团控股有限公司 A kind of air navigation aid and device of application
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN112579928A (en) * 2019-09-30 2021-03-30 北京京东尚科信息技术有限公司 Page jump method, page jump device, computer equipment and computer readable storage medium
CN110717119A (en) * 2019-10-10 2020-01-21 北京字节跳动网络技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN111506370A (en) * 2020-03-09 2020-08-07 平安普惠企业管理有限公司 H5 page jumping method and device on IOS system, computer equipment and storage medium
CN111428163A (en) * 2020-03-20 2020-07-17 吉林亿联银行股份有限公司 Page access method and device
CN111552463A (en) * 2020-03-27 2020-08-18 深圳壹账通智能科技有限公司 Page jump method and device, computer equipment and storage medium
CN111651703A (en) * 2020-04-14 2020-09-11 北京奇艺世纪科技有限公司 Page jump method and device, electronic equipment and readable storage medium
CN111984356A (en) * 2020-08-24 2020-11-24 腾讯科技(上海)有限公司 Page jump method, device, computer equipment and storage medium
CN112035186A (en) * 2020-09-02 2020-12-04 平安普惠企业管理有限公司 Preloading and jumping method, device, equipment and medium of H5 page

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王振洲: ""深入了解Hybrid App技术的相关知识"" *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356477A (en) * 2021-12-22 2022-04-15 青岛海信移动通信技术股份有限公司 Terminal device and application program calling method
CN114356477B (en) * 2021-12-22 2024-04-09 青岛海信移动通信技术有限公司 Terminal equipment and application program calling method
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN115002188A (en) * 2022-05-30 2022-09-02 平安普惠企业管理有限公司 Service switching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110263275B (en) Method and device for accessing webpage, mobile terminal and storage medium
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN110196722B (en) Cloud host batch management method, system, equipment and storage medium
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CA3128540C (en) Cache system hotspot data access method, apparatus, computer device and storage medium
CN107291481B (en) Component updating method, device and system
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN109522500B (en) Webpage display method, device, terminal and storage medium
CN112506584B (en) Resource file loading method, device, equipment, storage medium and product
CN113064685A (en) H5 page loading method and device
CN112988169A (en) Application installation method and device, terminal equipment, server and storage medium
CN110489138B (en) Application updating method, device and storage medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN107526584B (en) Data access method and device
CN111222153A (en) Application program authority management method and device and storage medium
CN113608742A (en) Detection method, code packet processing method, operation control method and computing device
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN113626882A (en) Method, device and medium for generating equipment identifier
CN111679842B (en) Application program hot update processing method, device and system
EP3843361A1 (en) Resource configuration method and apparatus, and storage medium
CN114090268B (en) Container management method and container management system
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN115374083A (en) Data source switching method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication