A page jump control method and device
By maintaining the page data structure table and controlling page jump based on the table, the problems of low page jump efficiency and difficult cross-end page processing in the existing technology are solved, and rapid jump and return to native and non-native pages are achieved Jump.
Patent Information
- Application Number
- CN202010440965.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-22
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-05-22
AI Technical Summary
In the prior art, page jumping efficiency is low, especially in cross-end page processing, jumping and jumping between native pages and non-native pages is difficult to achieve.
By maintaining a page data structure table, get the identity of the jump page and find out whether the corresponding node exists in the table. If it exists, identify the page type and perform the jump based on the corresponding jump model; if it does not exist, create a new page and write it to the data structure table.
It realizes rapid search and jumping of native and non-native pages, improves page jumping efficiency, and supports cross-end processing, making jumping and jumping between different types of pages more convenient.
Smart Images

Figure CN113703760B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page jump control method and device. Background Art
[0002] As mobile componentization continues to become a trend, more and more routing management solutions have emerged, such as JLRouter (iOS routing component), which is more common in the iOS market. It is similar to defining a certain protocol, matching according to certain rules, and then making corresponding jumps.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] However, as far as the current existing technology is concerned, although it can meet most business scenarios, the efficiency is extremely low. At the same time, for cross-end page processing, such as jumping between React Native (an open source cross-platform mobile application development framework that supports both iOS and Android platforms) pages and native pages, how to perform the corresponding jump is not clear. Moreover, during the page jump process, how to perform the corresponding jump back cannot be quickly implemented. If the jump back is to a React Native page, how to find the React Native page and jump is also difficult to handle. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a page jump control method and device, which can solve the problems of low efficiency of existing page jumps and difficulty in handling different types of page jumps.
[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a page jump control method is provided, including obtaining an identifier of a jump page to search whether there is a node including the identifier in a preset page data structure table; if so, identifying the types of the current page and the jump page, and performing the jump based on the corresponding jump model; if not, creating a new page, and then writing the new page information into the page data structure table.
[0007] Optionally, identifying the types of the current page and the jump page, and performing the jump based on the corresponding jump model, includes:
[0008] If it is recognized that both the current page and the jump page are native pages, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the information is found in the page stack of the current page for jumping.
[0009] Optionally, identifying the types of the current page and the jump page, and performing the jump based on the corresponding jump model, includes:
[0010] If it is identified that both the current page and the jump page are non-native pages, a preset routing manager is used to jump according to the jump page identifier.
[0011] Optionally, after identifying that both the current page and the redirected page are non-native pages, the method further includes:
[0012] Extracting the native page identifier of the jump page from the page data structure table according to the jump page identifier, and determining whether the native page identifier of the jump page is consistent with the native page identifier of the current page;
[0013] If so, the preset routing manager is used to jump according to the jump page identifier; if not, the native page information of the jump page is obtained to jump based on the native page information of the current page, and then the preset routing manager is used to jump according to the jump page identifier.
[0014] Optionally, identifying the types of the current page and the jump page, and performing the jump based on the corresponding jump model, includes:
[0015] Identify that the current page is a native page and the jump page is a non-native page, then extract the jump page information in the page data structure table according to the jump page identifier, and then find the information in the page stack of the current page to jump to the native page that carries the jump page, and then use the preset routing manager to jump according to the jump page identifier.
[0016] Optionally, identifying the types of the current page and the jump page, and performing the jump based on the corresponding jump model, includes:
[0017] If the current page is identified as a non-native page and the jump page is identified as a native page, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the page is jumped to based on the native page information carrying the current page.
[0018] Optionally, it also includes:
[0019] By removing the node in the page data structure table, the page corresponding to the node is destroyed.
[0020] In addition, the present invention also provides a page jump control device, including an acquisition module for obtaining the identifier of the jump page; a processing module for searching whether there is a node including the identifier in a preset page data structure table; if so, identifying the types of the current page and the jump page, and executing the jump based on the corresponding jump model; otherwise, creating a new page, and then writing the new page information into the page data structure table.
[0021] An embodiment of the above invention has the following advantages or beneficial effects: the present invention is expanded on the basis of page routing, maintaining a data structure table, and if the identifier of the relevant page is found, a corresponding jump is performed, and if not found, a new page is created; at the same time, the present invention supports cross-end processing, so that native pages and non-native pages can also be quickly found and jumped.
[0022] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0024] Figure 1 is a schematic diagram of the main process of a page jump control method according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of page jump control according to another embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of main modules of a page jump control device according to an embodiment of the present invention;
[0027] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0028] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0030] Figure 1 FIG. 1 is a schematic diagram of the main process of a page jump control method according to an embodiment of the present invention. Figure 1 As shown, the page jump control method includes:
[0031] Step S101, obtaining the identifier of the jump page.
[0032] In the embodiment, each page is provided with a pageId, i.e., an identifier, and each identifier corresponds to information of the page.
[0033] Step S102, searching in a preset page data structure table whether there is a node including the identifier, if so, proceed to step S103, otherwise proceed to step S104.
[0034] In some embodiments, the present invention pre-sets a page data structure table, which is shared between the native end and the non-native end (e.g., the React Native end), and is maintained on the native end, and the data is added and deleted when the native page and the non-native (e.g., the React Native page) are generated and destroyed. Among them, the native end refers to the logic implementation written in native technology code (e.g., OC / swift). The native page refers to the page written in native technology code (e.g., OC / swift). The non-native end (e.g., the React Native end) refers to the logic implementation written in non-native technology code (e.g., ReactNative (JSX code)). The non-native page (e.g., the React Native page) refers to the page written in non-native technology code (e.g., using React Native (JSX code)).
[0035] It should be noted that non-native pages (such as React Native pages) will eventually be converted into native pages. For example, the components of the React Native page will have corresponding native components, and the JSX code in the React Native code will be converted back to native code for rendering and display at runtime.
[0036] As a specific embodiment, the native node indicates the information related to the native page, and the non-native node indicates the information related to the non-native page. Each page has a pageId, and the corresponding page information is saved under the node. The saved information is different for native pages and non-native pages. Among them, the native page will save the corresponding className: class name (required), modalType: jump type (optional). The non-native page needs to save componentName: component name (required), nativePageId: pageId of the native page that hosts the non-native page (required).
[0037] Step S103, identifying the types of the current page and the jump page, and executing the jump based on the corresponding jump model.
[0038] In some embodiments, if the current page and the jump page are both identified as native pages, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the information is found in the page stack of the current page for jumping.
[0039] In some embodiments, if the current page is identified as a native page and the jump page is identified as a non-native page, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the information is found in the page stack of the current page to jump to the native page that carries the jump page, and then the preset routing manager is used to jump according to the jump page identifier.
[0040] In some embodiments, if the current page is identified as a non-native page and the jump page is a native page, the jump page information is extracted from the page data structure table according to the jump page identifier, and then jumps to the jump page based on the native page information carrying the current page.
[0041] It is also worth noting that if it is identified that both the current page and the jump page are non-native pages, a preset routing manager is used to jump according to the jump page identifier.
[0042] Furthermore, after identifying that both the current page and the jump page are non-native pages, the native page identifier of the jump page can be extracted from the page data structure table according to the jump page identifier, and it can be determined whether the native page identifier of the jump page is consistent with the native page identifier of the current page. If so, the preset routing manager is used to jump according to the jump page identifier; if not, the native page information of the jump page is obtained to jump based on the native page information of the current page, and then the preset routing manager is used to jump according to the jump page identifier.
[0043] Step S104, creating a new page, and then writing the new page information into the page data structure table.
[0044] In an embodiment, the present invention first searches the maintained page data structure table for a pageId of a jump page. If so, a corresponding jump is performed based on the native and non-native pages. If not, a new page is created and the relevant information is written into the page data structure table. In other words, in the process of page jump within the application, as long as it is clear whether it is a native page or a non-native page and the corresponding page pageId is found, a corresponding jump can be performed. If the corresponding pageId is not found, a new page will be created and the relevant information of the page will be added to the corresponding node. Among them, the information of the native page that carries the non-native page is found through the pageId of the non-native page, so as to perform a corresponding jump.
[0045] It is also worth mentioning that during the page destruction process, the page with the corresponding pageId can also be removed from the data structure.
[0046] In summary, the page jump control method described in the present invention realizes global management of pages, that is, whether it is a native page or a non-native page (such as a React Native page), a corresponding jump can be performed. Moreover, if the jump is to an existing page, it can also be quickly found and jumped back. At the same time, the present invention uses page routing jump as a dimension to make the mobile terminal page management process more unified and orderly, and has stronger operability and scalability for the overall page in the application.
[0047] Figure 2 It is a schematic diagram of page jump according to another embodiment of the present invention, which illustrates the jump between native pages, between React Native (ie, non-native) pages, and between React Native pages and native pages.
[0048] It is worth noting that although the React Native page (RN page for short) is implemented using React Native technology, it essentially still relies on a native page, that is, it must be presented using a native page as a carrier, such as Figure 2 Although the rn_page1 page is a React Native page, it relies on the native_page4 native page container for display. At the same time, the native page itself maintains a page stack of viewControllers, and there is also a corresponding router between RN pages to maintain the page stack list.
[0049] Among them, router is the routing manager in React Native technology. native_page represents the native page, and rn_page represents the RN page.
[0050] In a specific embodiment, if the previous page and the redirected page are both native pages, that is, Figure 2 Process 1 in the middle points to, specifically:
[0051] In this process, the native_page3 page jumps to the native_page1 page. If there is a pageId node of the native_page1 page in the page data structure table, it means that the jump is to an existing native page. Then, the information corresponding to the pageId of the native_page1 page is taken out from the page data structure table, and the information corresponding to the pageId is found in the page stack of native_page3 to perform the corresponding jump, thus realizing the jump on the native side. Among them, the page stack includes all the page information that was pushed into the stack before the native_page3 page.
[0052] If the pageId node of the native_page1 page is not found or does not exist in the page data structure table, a new native_page1 page is created, and the pageId and page information of the page are written into the page data structure table.
[0053] In another specific embodiment, if both the previous page and the redirected page are non-native pages (RN pages), that is, Figure 2 The directions of processes 2-1 and 2-2 are as follows:
[0054] There are two cases for RN page jump. The first one is Figure 2 In process 2-1, the RN page is jumped in the current context (context refers to the context, that is, the context in which React Native runs). The second one is as follows Figure 2 In process 2-2, jumps are made in different contexts.
[0055] Among them, process 2-1 is in the same React Native context. If the pageId of the rn_page1 page exists in the page data structure table, compare the nativePageId information of the pageId with the nativePageId information of rn_page3 to see if they are the same (i.e. compare whether they are in the same context). If they are the same, use the router on the RN side to make the corresponding jump. If they are not the same, create a new rn_page1 page and write the information of the new page into the page data structure table.
[0056] Among them, process 2-2 is to jump to different React Native contexts. If there is a pageId of rn_page1 in the page data structure table, then the jump is to an existing RN page that is not in the same context. First compare the nativePageId information of the pageId with the nativePageId information of the current rn_page4 (that is, compare whether the nativePageId is the same). Because they are in different contexts, the nativePageId is different (rn_page4's nativePageId is native_page7, and rn_page1's nativePageId is native_page4). Find the native interface native_page4 that carries rn_page1, and jump to the native side based on the dependent native_page7 native page. If the pageId of rn_page1 does not exist in the page data structure table, then create a new RN page and write the corresponding information into the page data structure table.
[0057] In another specific embodiment, if the native page jumps to the RN page: Figure 2 The direction of process 3 specifically includes:
[0058] The process is that native_page5 jumps to rn_page2 page, and also checks whether there is a pageId of rn_page2 in the page data structure table. If there is, the relevant information corresponding to the pageId is retrieved. Because rn_page2 depends on the native_page4 native interface, it is necessary to jump to the native_page4 page first, and then use the RN router to perform relevant jumps according to the pageId. If the pageId does not exist, a new rn_page2 page is created and the information of the new page is written to the page data structure table.
[0059] In another specific embodiment, if the RN page jumps to the native page: Figure 2 The direction of process 4 specifically includes:
[0060] The process is that rn_page4 jumps to native_page5. Similarly, the page data structure table is searched for the pageId of native_page5. If it exists, the native end jump is performed according to the relevant information of the pageId. Because rn_page4 depends on the native native_page7 page, the jump from RN page to native page is similar to the jump between native pages. If the pageId of native_page5 does not exist in the page data structure table, a new page is created and the corresponding information is written into the page data structure table.
[0061] It can be seen that the present invention is extended on the basis of page routing, maintaining a data structure table. If the pageId of the relevant page is found, a corresponding jump is performed. If not found, a new page is created. At the same time, cross-end processing is supported, so that native and non-native pages (such as React Native, Flutter's cross-end technology, etc.) can also be quickly found and jumped.
[0062] Among them, Flutter is Google's mobile UI framework, which can quickly build high-quality native user interfaces on iOS and Android.
[0063] Figure 3 is a schematic diagram of the main modules of the page jump control device according to an embodiment of the present invention. Figure 3 As shown, the page jump control device 300 includes an acquisition module 301 and a processing module 302. The acquisition module 301 acquires the identifier of the jump page; the processing module 302 searches the preset page data structure table for a node including the identifier; if yes, identifies the types of the current page and the jump page, and performs the jump based on the corresponding jump model; if no, creates a new page, and then writes the new page information into the page data structure table.
[0064] In some embodiments, the processing module 302 identifies the types of the current page and the jump page, and performs the jump based on the corresponding jump model, including:
[0065] If it is recognized that both the current page and the jump page are native pages, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the information is found in the page stack of the current page for jumping.
[0066] In some embodiments, the processing module 302 identifies the types of the current page and the jump page, and performs the jump based on the corresponding jump model, including:
[0067] If it is identified that both the current page and the jump page are non-native pages, a preset routing manager is used to jump according to the jump page identifier.
[0068] In some embodiments, after the processing module 302 identifies that both the current page and the redirected page are non-native pages, the processing module 302 further includes:
[0069] Extracting the native page identifier of the jump page from the page data structure table according to the jump page identifier, and determining whether the native page identifier of the jump page is consistent with the native page identifier of the current page;
[0070] If so, the preset routing manager is used to jump according to the jump page identifier; if not, the native page information of the jump page is obtained to jump based on the native page information of the current page, and then the preset routing manager is used to jump according to the jump page identifier.
[0071] In some embodiments, the processing module 302 identifies the types of the current page and the jump page, and performs the jump based on the corresponding jump model, including:
[0072] Identify that the current page is a native page and the jump page is a non-native page, then extract the jump page information in the page data structure table according to the jump page identifier, and then find the information in the page stack of the current page to jump to the native page that carries the jump page, and then use the preset routing manager to jump according to the jump page identifier.
[0073] In some embodiments, the processing module 302 identifies the types of the current page and the jump page, and performs the jump based on the corresponding jump model, including:
[0074] If the current page is identified as a non-native page and the jump page is identified as a native page, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the page is jumped to based on the native page information carrying the current page.
[0075] In some embodiments, the processing module 302 is further configured to destroy the page corresponding to the node by removing the node in the page data structure table.
[0076] It should be noted that the page jump control method and the page jump control device of the present invention have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.
[0077] Figure 4 An exemplary system architecture 400 is shown to which the page jump control method or the page jump control device, the page jump control determination or the page jump control determination device according to the embodiment of the present invention can be applied.
[0078] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0079] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0080] The terminal devices 401, 402, 403 may be various electronic devices having a page jump control screen or a page jump control determination screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0081] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0082] It should be noted that the page jump control method or page jump control determination method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the computing device is generally disposed in the server 405 .
[0083] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0084] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0085] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the computer system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0086] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal page jump controller (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0087] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0088] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0090] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, it may be described as follows: a processor includes an acquisition module and a processing module. The names of these modules do not, in some cases, limit the modules themselves.
[0091] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes obtaining the identifier of the jump page to find out whether there is a node including the identifier in the preset page data structure table; if so, identifying the types of the current page and the jump page, and executing the jump based on the corresponding jump model; if not, creating a new page, and then writing the new page information into the page data structure table.
[0092] The technical solution according to the embodiment of the present invention can solve the problems of low efficiency of existing page jumps and difficulty in handling different types of page jumps.
[0093] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A page jump control method, characterized in that: include: Obtaining the identifier of the jump page to search whether there is a node including the identifier in a preset page data structure table; If yes, then identify the types of the current page and the jump page, and execute the jump based on the corresponding jump model, including: identifying that both the current page and the jump page are native pages, extracting the jump page information in the page data structure table according to the jump page identifier, and then finding the information in the page stack of the current page to jump; If not, a new page is created, and the new page information is then written into the page data structure table.
2. The method according to claim 1, characterized in that Identify the types of the current page and the jump page, and perform the jump based on the corresponding jump model, including: If it is identified that both the current page and the jump page are non-native pages, a preset routing manager is used to jump according to the jump page identifier.
3. The method according to claim 2, characterized in that After identifying that both the current page and the redirected page are non-native pages, it also includes: Extracting the native page identifier of the jump page from the page data structure table according to the jump page identifier, and determining whether the native page identifier of the jump page is consistent with the native page identifier of the current page; If so, the preset routing manager is used to jump according to the jump page identifier; if not, the native page information of the jump page is obtained to jump based on the native page information of the current page, and then the preset routing manager is used to jump according to the jump page identifier.
4. The method according to claim 1, characterized in that: Identify the types of the current page and the jump page, and perform the jump based on the corresponding jump model, including: Identify that the current page is a native page and the jump page is a non-native page, then extract the jump page information in the page data structure table according to the jump page identifier, and then find the information in the page stack of the current page to jump to the native page that carries the jump page, and then use the preset routing manager to jump according to the jump page identifier.
5. The method according to claim 1, characterized in that Identify the types of the current page and the jump page, and perform the jump based on the corresponding jump model, including: If the current page is identified as a non-native page and the jump page is identified as a native page, the jump page information is extracted from the page data structure table according to the jump page identifier, and then the page is jumped to based on the native page information carrying the current page.
6. The method according to any one of claims 1 to 5, characterized in that: Also includes: By removing the node in the page data structure table, the page corresponding to the node is destroyed.
7. A page jump control device, characterized in that: include: The acquisition module is used to obtain the identifier of the jump page; A processing module, used for searching in a preset page data structure table whether there is a node including the identifier; If yes, then identify the types of the current page and the jump page, and execute the jump based on the corresponding jump model, including: identifying that both the current page and the jump page are native pages, extracting the jump page information in the page data structure table according to the jump page identifier, and then finding the information in the page stack of the current page to jump; If not, a new page is created, and the new page information is then written into the page data structure table.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Page jump method and device, storage medium and computer equipment
CN108255550A
A method and apparatus for establishing jump relationship between pages
CN109241485A
IOS page jumping method based on hybrid development and system thereof
CN109634604A