Page jump method, device, equipment, storage medium and program product

By obtaining the jump function of the target jump control's binding relationship and utilizing pre-loaded resources in the browser cache, the target page is directly rendered, solving the problem of low efficiency in traditional page jumps and achieving fast page jumps.

CN122240951APending Publication Date: 2026-06-19SF TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SF TECH CO LTD
Filing Date
2024-12-18
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Traditional page redirection methods are inefficient in poor network conditions, especially due to the long page resource loading time, which leads to low page redirection efficiency.

Method used

By obtaining the target redirect function's binding relationship with the target redirect control, reading the pre-loaded target page resources in the browser cache, and directly rendering the target page to be redirected, a fast redirect can be achieved.

Benefits of technology

When a user triggers a page redirect, there is no need to spend a long time loading page resources, thus improving page redirection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122240951A_ABST
    Figure CN122240951A_ABST
Patent Text Reader

Abstract

This application relates to a page redirection method, apparatus, device, storage medium, and program product, belonging to the field of computer technology. The method includes: in response to a trigger operation on a target redirection control in the current page, obtaining a target redirection function bound to the target redirection control; reading the target page link of the target page to be redirected to corresponding to the target redirection control through the target redirection function; obtaining pre-loaded target page resources associated with the target page link and stored in the browser cache corresponding to the current page; and rendering the target page to be redirected based on the target page resources, thereby redirecting from the current page to the target page to be redirected. This method can improve page redirection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a page redirection method, apparatus, device, storage medium, and program product. Background Technology

[0002] As the complexity of front-end functions and interactions increases, navigation between web (World Wide Web) front-end pages is becoming more frequent. Implementing a function or a business process may require traversing several web pages. Traditional page navigation methods typically require a considerable amount of time to load the resources of the page to which the redirection occurs, resulting in low page navigation efficiency. This inefficiency is particularly pronounced in poor network conditions, where loading times are even longer. Summary of the Invention

[0003] Therefore, it is necessary to provide a page redirection method, apparatus, device, storage medium, and program product that can improve page redirection efficiency in response to the above-mentioned technical problems.

[0004] Firstly, this application provides a page redirection method, the method comprising:

[0005] In response to a trigger operation on a target jump control on the current page, obtain the target jump function that is bound to the target jump control;

[0006] The target page link of the target page to be redirected to, corresponding to the target redirection control, is read through the target redirection function.

[0007] Obtain the pre-loaded target page resources of the target page to be redirected, which are associated with the target page link, from the browser cache corresponding to the current page;

[0008] The target page to be navigated to is rendered based on the target page resources, so that the user can navigate from the current page to the target page to be navigated to.

[0009] Secondly, this application provides a page redirection device, the device comprising:

[0010] The acquisition module is used to acquire the target jump function that is bound to the target jump control in response to the trigger operation of the target jump control in the current page;

[0011] The reading module is used to read the target page link of the target page to be redirected to corresponding to the target jump control through the target jump function;

[0012] The acquisition module is also used to acquire the target page resources of the target page to be redirected, which are pre-loaded and stored in association with the target page link, from the browser cache corresponding to the current page;

[0013] The jump module is used to render the target page to be jumped to based on the target page resources, so as to jump from the current page to the target page to be jumped to.

[0014] Thirdly, this application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the various method embodiments of this application.

[0015] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the various method embodiments of this application.

[0016] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps in the various method embodiments of this application.

[0017] The aforementioned page redirection method, apparatus, device, storage medium, and program product, in response to a trigger operation on a target redirection control in the current page, obtain a target redirection function bound to the target redirection control; through the target redirection function, read the target page link of the target page to be redirected corresponding to the target redirection control; obtain the pre-loaded target page resource of the target page to be redirected, associated with the target page link, from the browser cache corresponding to the current page; and render the target page to be redirected based on the target page resource, so as to redirect from the current page to the target page to be redirected. Compared to traditional page redirection methods, this application obtains the target redirection function bound to the target redirection control when the user triggers page redirection, so as to read the target page link of the target page to be redirected through the target redirection function. Since the browser cache already stores the pre-loaded target page resources of the target page to be redirected, after reading the target page link of the target page to be redirected, the target page resources of the target page to be redirected can be directly obtained from the browser cache for rendering, so as to achieve fast page redirection. When the user triggers the page redirection, there is no need to spend a long time loading the page resources of the page to be redirected in real time, thereby improving the page redirection efficiency. Attached Figure Description

[0018] Figure 1 This is a diagram illustrating the application environment of a page redirection method in one embodiment;

[0019] Figure 2 This is a flowchart illustrating a page redirection method in one embodiment;

[0020] Figure 3 This is a flowchart illustrating the page redirection method in another embodiment;

[0021] Figure 4 This is a structural block diagram of a page navigation device in one embodiment;

[0022] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0024] The page redirection method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. The data storage system can be set up separately and can store the data that server 104 needs to process. The data storage system can be integrated into server 104 or placed in the cloud or on other servers. Terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, in-vehicle terminals, smart home appliances, and portable wearable devices. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, cloud security, host security and other network security services, CDN, and basic cloud computing services such as big data and artificial intelligence platforms. Terminal 102 and server 104 can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0025] Terminal 102 can respond to a trigger operation on a target jump control in the current page by obtaining a target jump function bound to the target jump control from server 104, and then reading the target page link of the target page to be jumped to corresponding to the target jump control from server 104 through the target jump function. Terminal 102 can also obtain pre-loaded target page resources associated with the target page link from the browser cache corresponding to the current page, and render the target page to be jumped to based on the target page resources, so as to jump from the current page to the target page to be jumped to.

[0026] It is understood that this embodiment does not limit this aspect. Figure 1 The application scenarios shown are for illustrative purposes only and are not limited to these.

[0027] In one embodiment, such as Figure 2 As shown, a page redirection method is provided. This embodiment applies this method to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps:

[0028] Step 202: In response to a trigger operation on the target jump control in the current page, obtain the target jump function that is bound to the target jump control.

[0029] Here, the current page is a web (World Wide Web) front-end page. The target jump control is the jump control that is triggered among at least one jump control contained in the current page. The target jump function is the jump function that is bound to the target jump control among at least one jump function.

[0030] In one embodiment, the terminal can display the current page through a browser. The user can trigger a target navigation control on the current page. The terminal can respond to the user's triggering action on the target navigation control on the current page and obtain the target navigation function that is bound to the target navigation control. Specifically, the triggering action can be any of the following: a click operation (such as a single click or double click), a long press operation, a swipe operation, or a touch operation.

[0031] Step 204: Read the target page link of the target page to be redirected to corresponding to the target redirection control through the target redirection function.

[0032] Here, the target page to be redirected to is the page corresponding to the target redirect control among at least one page contained in the current page. The target page link is the page link of the target page to be redirected to.

[0033] In one embodiment, each jump function is mapped to a page link of the page to which the user is to jump. The terminal can read the target page link of the target page to which the target jump control is to jump through the target jump function; that is, the terminal can read the target page link that is mapped to the target jump function.

[0034] Step 206: Obtain the pre-loaded target page resources associated with the target page link from the browser cache corresponding to the current page.

[0035] Specifically, the browser cache corresponding to the current page pre-loads and caches the page resources of each page to be redirected contained in the current page, where the page resources are linked to the corresponding pages to be redirected. When the terminal reads the target page link of the target page to be redirected, the terminal can retrieve the pre-loaded target page resources of the target page to be redirected, which are associated with the target page link, from the browser cache corresponding to the current page.

[0036] Step 208: Render the target page to be redirected based on the target page resources, so that the user can jump from the current page to the target page to be redirected.

[0037] Specifically, the terminal can render the target page to be navigated to in the browser based on the target page resources. It can be understood that once the target page to be navigated to is rendered, the terminal can then navigate from the current page to the target page.

[0038] In the above page redirection method, in response to a trigger operation on the target redirection control on the current page, a target redirection function bound to the target redirection control is obtained; the target redirection function is used to read the target page link of the target page to be redirected to corresponding to the target redirection control; the pre-loaded target page resource associated with the target page link and stored in the browser cache corresponding to the current page is obtained; and the target page to be redirected is rendered based on the target page resource, so that the user can redirect from the current page to the target page to be redirected. Compared with traditional page redirection methods, this application obtains the target redirection function bound to the target redirection control when the user triggers page redirection, so as to read the target page link of the target page to be redirected to through the target redirection function. Since the browser cache already stores the pre-loaded target page resources of the target page to be redirected, after reading the target page link of the target page to be redirected, the target page resources of the target page to be redirected can be directly obtained from the browser cache for rendering, so as to achieve fast page redirection. When the user triggers the page redirection, there is no need to spend a long time loading the page resources of the page to be redirected in real time, thereby improving the page redirection efficiency.

[0039] In one embodiment, the target redirect function is obtained by taking the target page link as an input parameter of a pre-set page collection function and then returning it. Reading the target page link of the target page to be redirected to corresponding to the target redirect control through the target redirect function includes: reading the input parameter of the page collection function through the target redirect function to obtain the target page link of the target page to be redirected to corresponding to the target redirect control.

[0040] The page collection function is used to collect the redirect functions contained in the current page.

[0041] In one embodiment, the terminal can pre-set the target page link as an input parameter to a pre-defined page collection function, causing the page collection function to return a target redirect function. After the terminal responds to a trigger operation on a target redirect control in the current page and obtains the target redirect function bound to that control, the terminal can read the input parameters of the page collection function through the target redirect function to obtain the target page link of the target page to be redirected to corresponding to the target redirect control. It can be understood that the terminal can directly use the obtained input parameters of the page collection function as the target page link of the target page to be redirected to.

[0042] In the above embodiments, by reading the input parameters of the page collection function through the target jump function and directly using the read input parameters as the target page link of the target page to be jumped to, the efficiency and accuracy of obtaining the target page link can be improved.

[0043] In one embodiment, the method further includes: when the current page is loaded, obtaining the candidate page links corresponding to the candidate pages to be redirected for each candidate redirection control in the current page; for each candidate page link, using the candidate page link as an input parameter of a pre-set page collection function to obtain the candidate redirection function corresponding to the candidate page link returned by the page collection function; and establishing a binding relationship between the candidate redirection function corresponding to the candidate page link and the candidate redirection control corresponding to the candidate page link.

[0044] Specifically, the current page contains at least one candidate redirect control, and each candidate redirect control corresponds to a candidate page to be redirected to. It can be understood that when a candidate redirect control is triggered, the terminal will redirect from the current page to the page to be redirected to corresponding to that candidate redirect control. With the current page loaded, the terminal can collect the candidate page links corresponding to the candidate pages of all candidate redirect controls on the current page. For each candidate page link collected, the terminal can use that candidate page link as an input parameter to a pre-set page collection function, so that the page collection function returns the candidate redirect function corresponding to that candidate page link. Furthermore, for each candidate page link collected, the terminal can establish a binding relationship between the candidate redirect function corresponding to that candidate page link and the candidate redirect control corresponding to that candidate page link.

[0045] In the above embodiments, when the current page is loaded, candidate page links for each candidate page to be redirected are automatically collected. By using the candidate page links as input parameters to the page collection function, the candidate redirection functions corresponding to the candidate page links are obtained. This allows the candidate redirection functions to be pre-bound to the candidate redirection controls corresponding to the candidate page links, so that when the user triggers the redirection control, the corresponding redirection function can be obtained in a timely manner. This enables the corresponding page links to be quickly read and the page resources corresponding to the page links to be obtained based on the redirection functions, thereby achieving fast page redirection and improving page redirection efficiency.

[0046] In one embodiment, the method further includes: when the current page is loaded, obtaining the candidate page links of the candidate pages to be redirected corresponding to each of the candidate redirect controls in the current page; for each candidate page link, obtaining the candidate page resources of the candidate pages to be redirected corresponding to the candidate page link; and associating and storing the candidate page links with the candidate page resources of the candidate pages to be redirected corresponding to the candidate page links in the browser cache of the current page.

[0047] Specifically, the current page contains at least one candidate redirect control, and each candidate redirect control corresponds to a candidate page to which the user is to redirect. It can be understood that when a candidate redirect control is triggered, the terminal will redirect from the current page to the page corresponding to that candidate redirect control. With the current page loaded, the terminal can collect the candidate page links corresponding to all candidate redirect controls on the current page. For each candidate page link collected, the terminal can preload the candidate page resource corresponding to that candidate page link and associate the candidate page link with the preloaded candidate page resource, storing them together in the browser cache corresponding to the current page.

[0048] In the above embodiments, when the current page is loaded, the candidate page resources of each candidate page to be redirected contained in the current page are preloaded and associated with the corresponding candidate page links and stored in the browser cache. This allows the user to quickly obtain the page resources corresponding to the page links when triggering the redirection control, without having to request page resources in real time based on the network. This achieves fast page redirection and improves page redirection efficiency.

[0049] In one embodiment, for each candidate page link, obtaining the candidate page resources of the candidate page to be redirected corresponding to the candidate page link includes: obtaining the HTML file corresponding to each candidate page link; parsing the HTML file to extract the resource file links in the HTML file to obtain the resource file links corresponding to the candidate page link; and requesting the candidate page resources of the candidate page to be redirected corresponding to the candidate page link based on the resource file links corresponding to the candidate page link.

[0050] In one embodiment, for each candidate page link among all collected candidate page links, the terminal can obtain the corresponding HTML (Hypertext Markup Language) file and parse the HTML file using a pre-defined regular expression to extract resource file links from the HTML file, thus obtaining the resource file links corresponding to the candidate page link. Furthermore, for each candidate page link among all collected candidate page links, the terminal can request the candidate page resources of the candidate page to which the candidate page link is to redirect based on the resource file links corresponding to that candidate page link.

[0051] In the above embodiments, by obtaining the HTML file corresponding to the candidate page link, parsing the HTML file to automatically extract the resource file link from the HTML file, and then requesting the candidate page resource of the candidate page to be redirected corresponding to the candidate page link based on the resource file link, the efficiency and accuracy of obtaining candidate page resources can be improved.

[0052] In one embodiment, requesting candidate page resources for the candidate page to be redirected to based on the resource file link corresponding to the candidate page link includes: if the resource file link corresponding to the candidate page link indicates that the page resource belongs to an internal resource, then using a pre-set workerbox tool, requesting the candidate page resources for the candidate page to be redirected to based on the resource file link corresponding to the candidate page link from a first website; the first website is the website to which the current page belongs; if the resource file link corresponding to the candidate page link indicates that the page resource belongs to an external resource, then using a pre-set iframe tool, requesting the candidate page resources for the candidate page to be redirected to based on the resource file link corresponding to the candidate page link from a second website; the second website is a website other than the first website; the first website and the second website have different domain names.

[0053] Workerbox is a JavaScript library based on Service Workers, offering many efficient and user-friendly tools and strategies for more efficient application caching and offline-priority applications. Workerbox can request internal resources. Service Workers are scripts that run in the browser background, intercepting and processing network requests to achieve functions such as offline caching and push notifications. The iframe tool is a powerful tag that allows embedding other independent pages or content within a webpage; essentially, an iframe can embed another HTML page within an HTML page. The iframe tool can request external resources. Internal resources are resources within the website to which the current page belongs. External resources are resources outside the website to which the current page belongs.

[0054] Specifically, the first website is the website to which the current page belongs, and the second website is a website other than the first website, wherein the first website and the second website have different domain names. The terminal can determine whether the page resource indicated by the resource file link corresponding to the candidate page link is an internal resource or an external resource based on the composition of the resource file link. If the resource file link indicates that the page resource is an internal resource, the terminal can use a pre-configured workerbox tool to request the candidate page resource of the candidate page to be redirected to from the first website based on the resource file link. If the resource file link indicates that the page resource is an external resource, the terminal can use a pre-configured iframe tool to request the candidate page resource of the candidate page to be redirected to from the second website based on the resource file link.

[0055] In the above embodiments, by determining whether the page resource indicated by the resource file link is an internal resource or an external resource, the corresponding page resource request method is selected based on the determination result. That is, if the page resource is an internal resource, the page resource is requested through the workerbox tool; if the page resource is an external resource, the page resource is requested through the iframe tool, so as to ensure that the page resource can be successfully obtained, thereby improving the page jump efficiency.

[0056] In one embodiment, such as Figure 3As shown, when the current page is loaded, the terminal can obtain the candidate page links of all candidate jump controls on the current page. For each candidate page link, the terminal can use the candidate page link as an input parameter to a pre-set page collection function to obtain the candidate jump function corresponding to the candidate page link returned by the page collection function, and establish a binding relationship between the candidate jump function corresponding to the candidate page link and the candidate jump control corresponding to the candidate page link. For each candidate page link, the terminal obtains the corresponding HTML file. The terminal can parse the HTML file to extract the resource file links in the HTML file, obtain the resource file links corresponding to the candidate page links, and request the candidate page resources of the candidate page to be jumped to based on the resource file links corresponding to the candidate page links. The terminal can associate and store the candidate page links and the candidate page resources of the candidate page to be jumped to in the browser cache corresponding to the current page. The terminal can respond to the user's trigger operation on the target jump control on the current page, obtain the target jump function that is bound to the target jump control, and read the target page link of the target page to be jumped to corresponding to the target jump control through the target jump function. The terminal can retrieve the pre-loaded target page resources associated with the target page link from the browser cache corresponding to the current page, and render the target page based on the target page resources, so as to jump from the current page to the target page.

[0057] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the above embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0058] In one embodiment, such as Figure 4 As shown, a page navigation device 400 is provided, which specifically includes:

[0059] The acquisition module 402 is used to acquire the target jump function that is bound to the target jump control in response to the trigger operation of the target jump control in the current page;

[0060] The reading module 404 is used to read the target page link of the target page to be redirected to corresponding to the target redirection control through the target redirection function;

[0061] The acquisition module 402 is also used to obtain the target page resources of the target page to be redirected, which are pre-loaded and stored in association with the target page link, from the browser cache corresponding to the current page;

[0062] The jump module 406 is used to render the target page to be jumped to based on the target page resources, so that the user can jump from the current page to the target page to be jumped to.

[0063] In one embodiment, the target jump function is obtained by taking the target page link as an input parameter of a pre-set page collection function and then returning it; the reading module 404 is also used to read the input parameters of the page collection function through the target jump function to obtain the target page link of the target page to be jumped to corresponding to the target jump control.

[0064] In one embodiment, the apparatus further includes:

[0065] The binding module is used to retrieve the candidate page links corresponding to all candidate jump controls on the current page when the current page is loaded; for each candidate page link, the candidate page link is used as an input parameter of a pre-set page collection function to obtain the candidate jump function corresponding to the candidate page link returned by the page collection function; and a binding relationship is established between the candidate jump function corresponding to the candidate page link and the candidate jump control corresponding to the candidate page link.

[0066] In one embodiment, the apparatus further includes:

[0067] The caching module is used to retrieve the candidate page links corresponding to the candidate pages to be redirected for each candidate page link when the current page is loaded; for each candidate page link, retrieve the candidate page resources of the candidate page to be redirected for the corresponding candidate page link; and associate and store the candidate page link and the candidate page resources of the candidate page to be redirected for the corresponding candidate page link in the browser cache of the current page.

[0068] In one embodiment, the caching module is further configured to: obtain the HTML file corresponding to each candidate page link; parse the HTML file to extract the resource file links in the HTML file to obtain the resource file links corresponding to the candidate page links; and request the candidate page resources of the candidate page to be redirected to the candidate page link based on the resource file links corresponding to the candidate page links.

[0069] In one embodiment, the caching module is further configured to, if the resource file link corresponding to the candidate page link indicates that the page resource belongs to an internal resource, request the candidate page resource of the candidate page to be redirected corresponding to the candidate page link from the first website based on the resource file link corresponding to the candidate page link using a pre-configured workerbox tool; the first website is the website to which the current page belongs; if the resource file link corresponding to the candidate page link indicates that the page resource belongs to an external resource, request the candidate page resource of the candidate page to be redirected corresponding to the candidate page link from the second website based on the resource file link corresponding to the candidate page link using a pre-configured iframe tool; the second website is a website other than the first website; the first website and the second website have different domain names.

[0070] The aforementioned page redirection device, in response to a trigger operation on a target redirection control on the current page, obtains a target redirection function bound to the target redirection control; uses the target redirection function to read the target page link of the target page to be redirected to corresponding to the target redirection control; retrieves pre-loaded target page resources associated with the target page link and stored in the browser cache corresponding to the current page; and renders the target page to be redirected based on the target page resources, thereby enabling redirection from the current page to the target page to be redirected. Compared to traditional page redirection methods, this application obtains the target redirection function bound to the target redirection control when the user triggers page redirection, and then reads the target page link of the target page to be redirected to through the target redirection function. Since the browser cache already stores the pre-loaded target page resources of the target page to be redirected, after reading the target page link of the target page to be redirected, the target page resources of the target page to be redirected can be directly obtained from the browser cache for rendering, so as to achieve fast page redirection. When the user triggers the page redirection, there is no need to spend a long time loading the page resources of the page to be redirected in real time, thereby improving the page redirection efficiency.

[0071] Each module in the aforementioned page navigation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a page navigation method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0073] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0074] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0075] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0076] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0079] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0080] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A page redirection method, characterized in that, The method includes: In response to a trigger operation on a target jump control on the current page, obtain the target jump function that is bound to the target jump control; The target page link of the target page to be redirected to, corresponding to the target redirection control, is read through the target redirection function. Obtain the pre-loaded target page resources of the target page to be redirected, which are associated with the target page link, from the browser cache corresponding to the current page; The target page to be navigated to is rendered based on the target page resources, so that the user can navigate from the current page to the target page to be navigated to.

2. The method according to claim 1, characterized in that, The target redirect function is obtained by taking the target page link as an input parameter of a pre-set page collection function and then receiving the result from the page collection function. The step of reading the target page link of the target page to be redirected to corresponding to the target redirection control through the target redirection function includes: The target page link corresponding to the target page to be redirected is obtained by reading the input parameters of the page collection function through the target redirection function.

3. The method according to claim 1, characterized in that, The method further includes: When the current page is loaded, obtain the candidate page links corresponding to the candidate pages to be redirected for each of the candidate redirect controls on the current page; For each candidate page link, the candidate page link is used as an input parameter of a pre-set page collection function to obtain the candidate jump function corresponding to the candidate page link returned by the page collection function; Establish the binding relationship between the candidate jump function corresponding to the candidate page link and the candidate jump control corresponding to the candidate page link.

4. The method according to claim 1, characterized in that, The method further includes: When the current page is loaded, obtain the candidate page links corresponding to the candidate pages to be redirected for each of the candidate redirect controls on the current page; For each candidate page link, obtain the candidate page resources of the candidate page to be redirected to corresponding to the candidate page link; The candidate page link and the candidate page resources of the candidate page to be redirected to are associated and stored in the browser cache corresponding to the current page.

5. The method according to claim 4, characterized in that, For each candidate page link, obtaining the candidate page resources corresponding to the candidate page to be redirected includes: For each candidate page link, obtain the HTML file corresponding to the candidate page link; The HTML file is parsed to extract resource file links from the HTML file, thereby obtaining the resource file links corresponding to the candidate page links; Based on the resource file link corresponding to the candidate page link, request the candidate page resource of the candidate page to be redirected to corresponding to the candidate page link.

6. The method according to claim 5, characterized in that, The step of requesting candidate page resources for the candidate page to be redirected to based on the resource file link corresponding to the candidate page link includes: If the resource file link corresponding to the candidate page link indicates that the page resource belongs to an internal resource, then the pre-set workerbox tool is used to request the candidate page resource of the candidate page to be redirected to from the first website based on the resource file link corresponding to the candidate page link; the first website is the website to which the current page belongs. If the resource file link corresponding to the candidate page link indicates that the page resource belongs to an external resource, then through a pre-set iframe tool, the candidate page resource of the candidate page to be redirected to corresponding to the candidate page link is requested from the second website based on the resource file link corresponding to the candidate page link; the second website is a website other than the first website; the first website and the second website have different domain names.

7. A page navigation device, characterized in that, The device includes: The acquisition module is used to acquire the target jump function that is bound to the target jump control in response to the trigger operation of the target jump control in the current page; The reading module is used to read the target page link of the target page to be redirected to corresponding to the target jump control through the target jump function; The acquisition module is also used to acquire the target page resources of the target page to be redirected, which are pre-loaded and stored in association with the target page link, from the browser cache corresponding to the current page; The jump module is used to render the target page to be jumped to based on the target page resources, so as to jump from the current page to the target page to be jumped to.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.