Bread crumb navigation display method, device and equipment and storage medium
By dynamically generating breadcrumb navigation, the problem of fixed breadcrumb navigation in the existing technology is solved, and the matching of breadcrumb navigation and page jump order is achieved, improving the accuracy and efficiency of navigation.
Patent Information
- Application Number
- CN202310667492.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2024-12-06
AI Technical Summary
The existing breadcrumb navigation is fixed when the page is redirected and cannot adapt to the actual business scenario, resulting in the navigation not meeting the user's redirection order.
By obtaining the jump instruction from the previous page to the current page, the access address of the current page is generated based on the breadcrumb data of the previous page, and the access address of the current page is parsed after the jump to obtain the breadcrumb data of the previous page. Dynamically generate breadcrumb data for the current page to display the navigation.
It realizes dynamic generation of breadcrumb navigation, conforms to the jump order of actual business scenarios, and improves navigation accuracy and efficiency.
Smart Images

Figure CN119089056A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to page display technology, and more particularly to a breadcrumb navigation display method, apparatus, device, and storage medium. Background Art
[0002] Breadcrumb navigation is an auxiliary and supplementary navigation method that allows users to know where they are on a website or application and to easily return to their original location.
[0003] In actual business scenarios, you may jump from different pages to the same current page, but the breadcrumb navigation displayed on the current page remains unchanged. For example, you jump from page A to page B, and from page C to page B, but the breadcrumb navigation displayed on page B is page A title > page B title. Obviously, this breadcrumb navigation method does not meet the actual business scenarios. Summary of the invention
[0004] The present application provides a breadcrumb navigation display method, device, equipment and storage medium, which are suitable for actual business scenarios.
[0005] In a first aspect, an embodiment of the present application provides a method for displaying a breadcrumb navigation, the method comprising: obtaining a jump instruction from a previous page to a current page; in response to the jump instruction, generating an access address of the current page based on the breadcrumb data of the previous page; after jumping from the previous page to the current page, obtaining the title of the current page, and parsing the access address of the current page to obtain the breadcrumb data of the previous page; generating breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page; and displaying the breadcrumb navigation of the current page based on the breadcrumb data of the current page.
[0006] In the second aspect, an embodiment of the present application provides a display device for breadcrumb navigation, including: an acquisition module, a generation module and a display module, wherein the acquisition module is used to obtain a jump instruction from a previous page to a current page; the generation module is used to generate an access address of the current page based on the breadcrumb data of the previous page in response to the jump instruction; the acquisition module is also used to: after jumping from the previous page to the current page, obtain the title of the current page, and parse the access address of the current page to obtain the breadcrumb data of the previous page; the generation module is also used to generate the breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page; the display module is used to display the breadcrumb navigation of the current page based on the breadcrumb data of the current page.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method in the first aspect or its various implementations.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the method in the first aspect or its various implementations.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute a method as in the first aspect or its various implementations.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program, which enables a computer to execute the method in the first aspect or its various implementations.
[0011] Through the technical solution provided by the embodiment of the present application, the terminal device can generate the access address of the current page based on the breadcrumb data of the previous page, obtain the title of the current page after jumping from the previous page to the current page, and parse the access address of the current page to obtain the breadcrumb data of the previous page, generate the breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page, and display the breadcrumb navigation of the current page based on the breadcrumb data of the current page. It can be seen that for any page, the generation of the breadcrumb data of the page is related to the page jump order this time, so that the displayed breadcrumb navigation conforms to the actual business scenario. In addition, because the terminal device can quickly obtain the breadcrumb data of the previous page by parsing the access address of the current page, based on this, the generation efficiency of the breadcrumb navigation of the current page can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 An application scenario diagram provided for an embodiment of the present application;
[0014] Figure 2 A flowchart of a method for displaying breadcrumb navigation provided in an embodiment of the present application;
[0015] FIG. 3A to FIG. 3C A schematic diagram of a page provided for an embodiment of the present application;
[0016] Figure 4 A flowchart of another breadcrumb navigation display method provided in an embodiment of the present application;
[0017] FIG. 5A to FIG. 5C A schematic diagram of a page provided for another embodiment of the present application;
[0018] Figure 6 A schematic diagram of a breadcrumb navigation display device 600 provided in an embodiment of the present application;
[0019] Figure 7 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0022] Before introducing the technical solution of this application, the relevant knowledge of the technical solution of this application is first explained below:
[0023] 1. Breadcrumb navigation, also known as breadcrumbs, is a secondary navigation scheme that allows users to know where they are on a website or application and to easily return to their original location. The most common breadcrumb navigation style is: horizontal text links separated by symbols such as ">", " / ", or "》", which also imply their hierarchical relationship.
[0024] 2. Classification of Breadcrumb Navigation
[0025] 1. Breadcrumb navigation based on the user’s hierarchical location
[0026] Among them, the breadcrumb navigation based on the hierarchical position of the user is used to inform the user of the structural level in the current website. It is used in websites with multi-level navigation. For example, the breadcrumb navigation based on the hierarchical position of the user can be as follows:
[0027] You are here: Home Page > News Center > Financial News > Main Text.
[0028] 2. Breadcrumb navigation based on product attributes
[0029] Among them, breadcrumb navigation based on product attributes often appears in websites with a large number of categories of products and services, such as e-commerce websites, online teaching services, etc. For example, breadcrumb navigation based on product attributes can be as follows:
[0030] Mobile Phones > Brand A Mobile Phone > Model B Mobile Phone > Product Details.
[0031] 3. Breadcrumb navigation based on user footprints
[0032] Displays the user's browsing trajectory, with no obvious hierarchical relationship between breadcrumbs.
[0033] 3. Usage of breadcrumb navigation
[0034] 1. There are a lot of graded content on the website
[0035] Among them, large e-commerce websites are typical examples, which contain a large number of products belonging to different major categories and subcategories.
[0036] 2. In some guided web applications or software installation processes, breadcrumbs are often used to indicate the current and remaining operation steps, similar to a variation of a progress bar.
[0037] 3. Breadcrumbs are generally not used in pages with simple hierarchies, but when breadcrumb navigation can significantly help browsing and improve their positioning ability, it is recommended to use breadcrumbs. For example, album browsing is a typical example. The structure is not complicated, but users jump between certain pages more frequently (such as the album homepage, photo thumbnail page, photo browsing page, etc.), so the existence of breadcrumb navigation is very helpful to improve browsing efficiency here.
[0038] 4. Universal Resource Locator (URL), also known as web page address, is the standard address of resources on the Internet.
[0039] 5. Data warehouse (DW) is a data system used for storage, analysis and reporting. The purpose of data warehouse is to build an integrated data environment for analysis and provide decision support for enterprises.
[0040] The following is a description of the technical problems, inventive concepts and application scenarios to be solved by the technical solution of this application:
[0041] As mentioned above, in actual business scenarios, you may jump from different pages to the same current page, but the breadcrumb navigation displayed on the current page remains unchanged. For example, you jump from page A to page B, and from page C to page B, but the breadcrumb navigation displayed on page B is page A title > page B title. Obviously, this breadcrumb navigation method does not meet the actual business scenarios.
[0042] In order to solve the above technical problems, the present application proposes to dynamically generate breadcrumb data of the current page, and display the breadcrumb navigation of the current page based on the breadcrumb data.
[0043] For example, Figure 1 An application scenario diagram provided for an embodiment of the present application, such as Figure 1 As shown, the terminal device 110 is connected to the server 120, wherein the terminal device 110 may be installed with a client, but is not limited thereto. The terminal device 110 and the server 120 may be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0044] In some implementations, the terminal device 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, an augmented reality (AR) device, a virtual reality (VR) device, etc., but is not limited thereto.
[0045] It should be understood that the client, also known as the user end, refers to a program that corresponds to the server and provides local services to customers. The client is generally installed on a terminal device and needs to work with the server. After the development of the Internet, the more commonly used clients include web browsers (i.e. browser clients), email clients, instant messaging clients, e-commerce clients, game clients, video clients, etc.
[0046] In some possible implementations, the client may be a browser client, an e-commerce client, etc. As long as it is a client that needs to display breadcrumb navigation, the embodiment of the present application does not limit the client.
[0047] In some possible implementations, server 120 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0048] In some implementations, the cloud technology involved in the cloud server may be a private cloud, a public cloud, or a hybrid cloud.
[0049] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.
[0050] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0051] A private cloud is a cloud infrastructure with software and hardware resources created within a firewall so that departments within an organization or enterprise can share resources within the data center. In addition to hardware resources, cloud equipment (IaaS, Infrastructure as a Service) software is generally required to create a private cloud.
[0052] Private cloud computing also includes three levels: cloud hardware, cloud platform, and cloud service. The difference is that cloud hardware is the user's own personal computer or server, not the cloud computing vendor's data center. The purpose of cloud computing vendors to build data centers is to provide public cloud services to millions of users, so they need to have tens of millions of servers. Private cloud computing only serves friends and relatives for individuals, and only serves employees, customers, and suppliers for enterprises. Therefore, an individual or enterprise's own personal computer or server is sufficient to provide cloud services.
[0053] Public Cloud usually refers to a cloud provided by a third-party provider for users to use. Public Cloud is generally available through the Internet and may be free or low-cost. The core attribute of Public Cloud is shared resource services. There are many instances of this cloud, which can provide services throughout the open public network today.
[0054] Hybrid Cloud combines public cloud and private cloud, and is the main model and development direction of cloud computing in recent years. Private cloud is mainly for enterprise users. For security reasons, enterprises are more willing to store data in private cloud, but at the same time hope to obtain computing resources of public cloud. In this case, hybrid cloud is increasingly adopted, which mixes and matches public cloud and private cloud to obtain the best effect. This personalized solution achieves the purpose of saving money and security.
[0055] It should be understood that Figure 1 The application scenario shown includes a terminal device and a server. In fact, it can include other numbers of terminal devices and servers, and this application does not limit this. Figure 1 This is only an exemplary application scenario of the technical solution of the present application. In fact, the application scenario of the technical solution of the present application may only include terminal devices but not servers. For example, the breadcrumb navigation display method involved in some guided network applications, software installation processes, or album browsing processes may not involve a server.
[0056] The technical solution of this application will be described in detail below:
[0057] Figure 2 A flowchart of a breadcrumb navigation display method provided in an embodiment of the present application, the method can be executed by a terminal device, the terminal device can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, AR device, VR device, etc., but not limited to this. The terminal device can be installed with a client that needs to display breadcrumb navigation, but not limited to this. Figure 2 As shown, the method may include:
[0058] S210: Obtaining a jump instruction from the previous page to the current page;
[0059] S220: In response to the jump instruction, generate an access address of the current page based on the breadcrumb data of the previous page;
[0060] S230: after jumping from the previous page to the current page, obtaining the title of the current page, and parsing the access address of the current page to obtain the breadcrumb data of the previous page;
[0061] S240: Generate breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page;
[0062] S250: Displaying breadcrumb navigation of the current page based on the breadcrumb data of the current page.
[0063] The following is an explanation of S210:
[0064] In some implementations, the jump instruction may be generated based on a user clicking a “jump button”.
[0065] For example, FIG. 3A to FIG. 3C A schematic diagram of a page provided for an embodiment of the present application, Figure 3A The page shown is the home page. The title of the page "Product Management" is displayed at the top of the page. Users can click the next page button, i.e., the ">" button, at the bottom right of the page to enter the following page: Figure 3B The page shown in the figure has a breadcrumb navigation "Product Management / Big Data Processing Suite" displayed on the top of the page. Users can click the ">" button at the bottom right of the page to enter the following Figure 3C The page shown has a breadcrumb navigation of the page "Product Management / Big Data Processing Suite / Control" displayed at the top of the page. Assuming that "Control" is the last level of the breadcrumb navigation, the ">" button may not be displayed in the lower right corner of the page. Assuming that "Control" is not the last level of the breadcrumb navigation, a ">" button may be displayed in the lower right corner of the page, and the user can continue to click the ">" button in the lower right corner of the page, and so on.
[0066] In some possible implementations, the jump instruction may be a voice instruction. In short, the embodiment of the present application does not limit the jump instruction.
[0067] The following will explain S220 and S230:
[0068] In some implementations, the breadcrumb data of the previous page may include, but is not limited to: the title and access address of each page from the home page to the previous page in the current page jump sequence.
[0069] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C If the page is the previous page of the page shown, the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown.
[0070] In some implementations, for any page, the access address of the page may be the URL of the page, but is not limited thereto.
[0071] In the embodiment of the present application, the terminal device may generate the access address of the current page in any of the following achievable ways, but is not limited thereto:
[0072] In some implementations, generating the access address of the current page based on the breadcrumb data of the previous page includes:
[0073] S220-1: Convert the breadcrumb data of the previous page into a string;
[0074] In some implementations, the terminal device may directly convert the breadcrumb data of the previous page into a string. In other words, the terminal device may sequentially convert the breadcrumb data of the previous page into corresponding strings to obtain the string corresponding to the breadcrumb data of the previous page.
[0075] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C The previous page of the page shown, and the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. Assuming that the string corresponding to "Product Management" is "3A", Figure 3A The string corresponding to the access address of the page shown is "www.**3A.com", and the string corresponding to "big data processing suite" is "3B". Figure 3B The string corresponding to the access address of the page shown is "www.**3B.com", so the string corresponding to the breadcrumb data of the previous page can be "3Awww.**3A.com3Bwww.**3B.com".
[0076] In other implementations, the terminal device may convert the breadcrumb data of the previous page into a string according to a preset rule, wherein the preset rule may include, but is not limited to: the order rule of each page included in the breadcrumb data of the previous page; the order rule of the title and access address included in each page.
[0077] In some implementable methods, the above preset rules are defined as follows: string conversion is performed in sequence from the home page to the previous page according to the current page jump order, and for any page from the home page to the previous page, string conversion is performed in sequence from the title to the access address.
[0078] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C The previous page of the page shown, and the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. Assuming that the string corresponding to "Product Management" is "3A", Figure 3A The string corresponding to the access address of the page shown is "www.**3A.com", and the string corresponding to "big data processing suite" is "3B". Figure 3B The string corresponding to the access address of the page shown is "www.**3B.com", so the string corresponding to the breadcrumb data of the previous page can be "3Awww.**3A.com3Bwww.**3B.com"
[0079] In some possible implementations, the preset rules are as follows: string conversion is performed in sequence from the home page to the previous page according to the current page jump order, and for any page from the home page to the previous page, string conversion is performed in sequence in the order of access address first and then title.
[0080] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3CThe page shown, Figure 3B The page shown is Figure 3C The previous page of the page shown, and the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. Assuming that the string corresponding to "Product Management" is "3A", Figure 3A The string corresponding to the access address of the page shown is "www.**3A.com", and the string corresponding to "big data processing suite" is "3B". Figure 3B The string corresponding to the access address of the page shown is "www.**3B.com", then the string corresponding to the breadcrumb data of the previous page can be "www.**3A.com3Awww.**3B.com3B".
[0081] In some possible implementations, the above preset rules are defined as follows: string conversion is performed from the previous page to the home page in the reverse order of the current page jump order, and for any page from the home page to the previous page, string conversion is performed in the order of title first and then access address.
[0082] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C The previous page of the page shown, and the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. Assuming that the string corresponding to "Product Management" is "3A", Figure 3A The string corresponding to the access address of the page shown is "www.**3A.com", and the string corresponding to "big data processing suite" is "3B". Figure 3B The string corresponding to the access address of the page shown is "www.**3B.com", so the string corresponding to the breadcrumb data of the previous page can be "3Bwww.**3B.com3Awww.**3A.com"
[0083] In some possible implementations, the above preset rules are defined as follows: string conversion is performed from the previous page to the home page in the reverse order of the current page jump order, and for any page from the home page to the previous page, string conversion is performed in the order of access address first and then title.
[0084] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C The previous page of the page shown, and the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. Assuming that the string corresponding to "Product Management" is "3A", Figure 3A The string corresponding to the access address of the page shown is "www.**3A.com", and the string corresponding to "big data processing suite" is "3B". Figure 3B The string corresponding to the access address of the page shown is "www.**3B.com", then the string corresponding to the breadcrumb data of the previous page can be "www.**3B.com3Bwww.**3A.com3A".
[0085] It should be understood that when the terminal device converts the breadcrumb data of the previous page into a string according to a preset rule, on the one hand, the same breadcrumb data can be converted into a unique string, so that for the same page jump sequence, different users or even different page jumps performed by the same user, the generated string is unique, thereby ensuring the uniqueness of the access address of the current page. On the other hand, if the string is subsequently compressed to obtain compressed data, and the compressed data and the corresponding breadcrumb data are stored in the data warehouse on the server side, any user can obtain unique breadcrumb data based on the unique compressed data, thereby ensuring that for the same page jump sequence, the same breadcrumb data can be displayed on the current page for different users.
[0086] S220 - 2 : Generate an access address of the current page based on the character string.
[0087] In the embodiment of the present application, the terminal device may generate the access address of the current page in any of the following achievable ways, but is not limited thereto:
[0088] In some possible implementations, the terminal device may directly generate the access address of the current page based on the character string. In other words, the terminal device may carry the character string in the access address of the current page when generating the access address of the current page.
[0089] In some implementations, when the terminal device generates the access address of the current page, in order to clearly display the string, a specific identifier may be added before the string, for example, "_breadCrumbs_" may be added before the string.
[0090] For example, assuming the string is "www.**3B.com3Bwww.**3A.com3A", the access address of the current page can be as follows:
[0091] "www.12345.***_breadCrumbs_=www.**3B.com3Bwww.**3A.com3A.com"
[0092] In some possible implementations, if the terminal device carries the string in the access address of the current page when generating the access address of the current page, then after the terminal device jumps from the previous page to the current page, it can parse the access address of the current page to obtain the string and convert the string into breadcrumb data of the previous page.
[0093] It should be understood that if the terminal device directly converts the breadcrumb data of the previous page into corresponding strings in sequence to obtain the string corresponding to the breadcrumb data of the previous page, or converts the breadcrumb data of the previous page into a string according to the above-mentioned preset rules, then the terminal device can convert each string in the string into corresponding breadcrumb data in sequence to form the breadcrumb data of the previous page.
[0094] For example, assuming that the string corresponding to the breadcrumb data of the previous page is "3Awww.**3A.com3Bwww.**3B.com", the terminal device can convert "3A", "www.**3A.com", "3B" and "www.**3B.com" into: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown is: www.**3A.com, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3BThe access address of the page shown is www.**3B.com, and these data constitute the breadcrumb data of the previous page.
[0095] In other possible implementations, the terminal device may compress the character string to obtain compressed data; generate the access address of the current page based on the compressed data; wherein the access address of the current page includes the compressed data. In other words, when generating the access address of the current page, the terminal device may carry the compressed data in the access address of the current page.
[0096] In some possible implementations, the terminal device may use a message digest algorithm (Message-Digest Algorithm 5, MD5) on the string to obtain compressed data. Of course, other compression or encryption algorithms may also be used, and the embodiments of the present application do not limit this.
[0097] It should be understood that the so-called information digest is to generate a hash value for the plain text content according to certain rules, that is, to obtain the information digest of the plain text content. MD5 can generate a 128-bit hash value based on a plain text string of any length. The result is unique and irreversible. Therefore, MD5 is often used to prevent information from being tampered with, digital signatures, and encryption of plain text.
[0098] It should be understood that the terminal device can shorten the length of the access address by compressing the above-mentioned character string and carrying the compressed data in the access address of the current page, thereby satisfying the length limit of the access address on the one hand and facilitating the user to copy the access address on the other hand.
[0099] In some possible implementations, after obtaining the above-mentioned compressed data, the terminal device may first detect whether the local cache stores the breadcrumb data of the previous page corresponding to the compressed data. If the local cache does not store the breadcrumb data of the previous page corresponding to the compressed data, the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are stored in the local cache.
[0100] In some implementations, if the breadcrumb navigation display method provided in the embodiments of the present application is applied to a browser client, then the local cache may be a browser cache.
[0101] In some implementations, if the breadcrumb data of the previous page corresponding to the compressed data is not stored in the local cache, the terminal device can store the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the local cache through a local storage setting function. In order to identify the compressed data as compressed data of breadcrumb data and distinguish the compressed data from other data, a specific identifier can be added before the compressed data, such as breadCrumb_ as a storage keyword (key). Of course, the compressed data can also be directly used as a storage keyword (key).
[0102] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, and the breadcrumb data of the previous page of the current page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. The compressed data corresponding to the breadcrumb data is "**3B**3A", then the terminal device can add breadCrumb_ before the compressed data to obtain breadCrumb_**3B**3A, use this data as the storage keyword (key), and then convert the breadcrumb data of the previous page into a string as the stored value (value), and use the local storage setting function localStorage.setItem(breadCrumb_**3B**3A,String(the breadcrumb data of the previous page)) to store the breadcrumb data in the local cache.
[0103] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, and the breadcrumb data of the previous page of the current page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3BThe access address of the page shown. The compressed data corresponding to the breadcrumb data is "**3B**3A", so the terminal device can use the compressed data as the storage keyword (key), and then convert the breadcrumb data of the previous page into a string as the storage value (value), and the local storage setting function localStorage.setItem(**3B**3A,String(the breadcrumb data of the previous page)) can store the breadcrumb data in the local cache.
[0104] In an embodiment of the present application, by caching compressed data and corresponding breadcrumb data in a local cache, on the one hand, when the access link of the current page is subsequently parsed, the corresponding breadcrumb data can be obtained through the compressed data, thereby ensuring the normal display of the breadcrumb navigation of the current page. On the other hand, when the user refreshes the current page, or closes the current page and reopens the current page, the terminal device can still obtain the compressed data by parsing the access address of the current page, and re-obtain the corresponding breadcrumb data from the local cache, so that in both cases, the normal display of the breadcrumb navigation of the current page can still be guaranteed.
[0105] In some possible implementations, if the terminal device carries the compressed data in the access address of the current page when generating the access address of the current page, then after the terminal device jumps from the previous page to the current page, it can parse the access address of the current page to obtain the compressed data; based on the compressed data, query the breadcrumb data of the previous page from the local cache to obtain the breadcrumb data of the previous page.
[0106] In some possible implementations, if the terminal device caches compressed data and breadcrumb data corresponding to the compressed data, and adds a specific identifier before the compressed data, such as breadCrumb_ as a storage keyword (key), then when the terminal device parses the access address, it can first retrieve the compressed data from the access address, and then add a specific identifier before the compressed data, such as breadCrumb_ as a storage keyword (key), and use the storage keyword to search for the corresponding breadcrumb data in the local cache.
[0107] In some implementations, the terminal device may call a local storage retrieval function to search for corresponding breadcrumb data in the local cache using the storage keyword.
[0108] For example, assuming that the terminal device parses the compressed data "**3B**3A" from the access address of the current page, the terminal device can add breadCrumb_ before the compressed data to obtain breadCrumb_**3B**3A, use the data as the storage keyword (key), and then call the local storage retrieval function localStorage.getItem(breadCrumb_**3B**3A) to obtain the string of breadcrumb data corresponding to the compressed data from the local cache, and convert the string into the breadcrumb data of the previous page.
[0109] In some possible implementations, if the terminal device caches compressed data and breadcrumb data corresponding to the compressed data, then when parsing the access address, the terminal device can first retrieve the compressed data from the access address, use the compressed data as a storage keyword (key), and search for the corresponding breadcrumb data in the local cache through the storage keyword.
[0110] In some implementations, the terminal device may call a local storage retrieval function to search for corresponding breadcrumb data in the local cache using the storage keyword.
[0111] For example, assuming that the terminal device parses the compressed data "**3B**3A" from the access address of the current page, the terminal device can use **3B**3A as the storage keyword (key), and then call the local storage retrieval function localStorage.getItem(**3B**3A) to obtain the string of breadcrumb data corresponding to the compressed data from the local cache, and convert the string into the breadcrumb data of the previous page.
[0112] In some possible implementations, the breadcrumb navigation display method may further include: sending compressed data and breadcrumb data of the previous page corresponding to the compressed data to a server, so that when the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are not stored in the server's data warehouse, the server stores the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the data warehouse.
[0113] In some possible implementations, the terminal device can use the interface of the data warehouse to send compressed data and breadcrumb data of the previous page corresponding to the compressed data to the server through the interface. The server then first detects whether the compressed data has been stored in the data warehouse. If the compressed data is not stored in the data warehouse, the server can store the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the data warehouse.
[0114] It should be understood that the terminal device stores the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the data warehouse of the server, so that when the user shares the access address of the current page with other users, and the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are not cached in the local cache of the terminal device used by the user, the corresponding breadcrumb data can be obtained from the data warehouse through the parsed compressed data, thereby ensuring that after the access address of the current page is shared, the terminal devices held by different users can display the same breadcrumb navigation on the current page.
[0115] In some possible implementations, if the terminal device carries the compressed data in the access address of the current page when generating the access address of the current page, then after jumping from the previous page to the current page, the terminal device can parse the access address of the current page to obtain the compressed data; based on the compressed data, query the breadcrumb data of the previous page from the local cache to obtain the breadcrumb data of the previous page; if the breadcrumb data of the previous page is not queried from the local cache, send a query request for querying the breadcrumb data of the previous page to the server, and receive the query response sent by the server to obtain the breadcrumb data of the previous page.
[0116] In some implementations, the query request includes: the compressed data, but is not limited thereto.
[0117] In some implementations, the query response includes: breadcrumb data of a previous page, but is not limited thereto.
[0118] It should be understood that the method for querying compressed data in the local cache of the terminal device can refer to the above, and the embodiments of the present application will not be repeated. And if the terminal device fails to query the compressed data in the local cache, and the server needs to query the compressed data from the data warehouse, the method for querying the compressed data in the data warehouse by the server can also refer to the method for querying the compressed data in the local cache of the terminal device, and the embodiments of the present application will not be repeated.
[0119] In some possible implementations, if the terminal device obtains the breadcrumb data of the previous page from the server, the terminal device can also store the compressed data and the corresponding breadcrumb data of the previous page in the local cache, so that the next time the current page is accessed, the corresponding breadcrumb data can be obtained from the local cache, thereby improving the efficiency of the breadcrumb navigation display.
[0120] In some implementations, the titles of different pages may be different, for example, Figure 3A The page shown is titled "Product Management". Figure 3B The page shown is titled "Big Data Processing Suite". Figure 3CThe page shown is titled "Control".
[0121] The S240 is explained below:
[0122] In some implementations, the terminal device may combine the title of the current page with the breadcrumb data of the previous page to generate the breadcrumb data of the current page, but is not limited thereto.
[0123] In the embodiment of the present application, the combination order of the title of the current page and the breadcrumbs data of the previous page may not be restricted, or the combination order of the title of the current page and the breadcrumbs data of the previous page may be restricted.
[0124] In some possible implementations, the combination order of the title of the current page and the breadcrumb data of the previous page may include, but is not limited to: the title of the current page is in front and the breadcrumb data of the previous page is in the back; or, the breadcrumb data of the previous page is in front and the title of the current page is in the back; or, the title of the current page can be inserted into the breadcrumb data of the previous page, where the insertion method can be that the title of the current page can be inserted after the title of the previous page, or, the title of the current page can be inserted after the access address of the previous page.
[0125] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3C If the page is the previous page of the page shown, the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. The current page, that is, Figure 3C The title of the page shown is "Control", based on this, the breadcrumb data for the current page may include: Figure 3C The title of the page shown is "Control". Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B Alternatively, the breadcrumb data of the current page may include: Figure 3AThe title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown, Figure 3C The title of the page shown is "Control". Alternatively, the breadcrumb data for the current page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3C The title of the page shown is "Control", Figure 3B The access address of the page shown.
[0126] In other possible implementations, the terminal device may combine the title of the current page, the breadcrumb data of the previous page, and the breadcrumb data identifier to generate the breadcrumb data of the current page, but is not limited thereto.
[0127] The breadcrumb data identifier is used to identify that the breadcrumb data of the current page is breadcrumb data. For example, the breadcrumb data identifier may be "breadCrumbs".
[0128] In an embodiment of the present application, the combination order of the title of the current page, the breadcrumb data of the previous page and the breadcrumb data identifier may not be restricted, or the combination order of the title of the current page, the breadcrumb data of the previous page and the breadcrumb data identifier may be restricted.
[0129] In some implementations, the combination order of the title of the current page, the breadcrumb data of the previous page, and the breadcrumb data identifier may include, but is not limited to: the title of the current page comes first, the breadcrumb data of the previous page comes second, and the breadcrumb data identifier comes last; or, the breadcrumb data of the previous page comes first, the title of the current page comes second, and the breadcrumb data identifier comes last; or, the breadcrumb data identifier comes first, the title of the current page comes second, and the breadcrumb data of the previous page comes last; or, the breadcrumb data identifier comes first, the breadcrumb data of the previous page comes second, and the title of the current page comes last.
[0130] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The page shown, Figure 3B The page shown is Figure 3CIf the page is the previous page of the page shown, the breadcrumb data of the previous page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown. The current page, that is, Figure 3C The title of the page shown is "Management", and the breadcrumb data identifier is "breadCrumbs". Based on this, the breadcrumb data of the current page may include: Figure 3C The title of the page shown is "Control". Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown, "breadCrumbs". Alternatively, the breadcrumb data of the current page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown, Figure 3C The title of the page shown is "Control", "breadCrumbs". Alternatively, the breadcrumb data of the current page may include: "breadCrumbs", Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown, Figure 3C The title of the page shown is "Control". Alternatively, the breadcrumb data of the current page may include: "breadCrumbs", Figure 3C The title of the page shown is "Control", Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown.
[0131] Based on this, in some possible implementations, the breadcrumb data of the current page includes, but is not limited to: the title of each page from the homepage to the current page in this page jump sequence, and the access address of each page from the homepage to the previous page of the current page.
[0132] For example, then Figures 3A to 3C The pages shown are used for exemplary explanation. Assume that the page jump sequence is: Figure 3A The page shown → Figure 3B The page shown → Figure 3C The page shown, assuming the current page is Figure 3C The breadcrumb data of the current page may include: Figure 3A The title of the page shown, i.e., "Product Management", Figure 3A The access address of the page shown, Figure 3B The title of the page shown is "Big Data Processing Suite", Figure 3B The access address of the page shown and Figure 3C The title of the page shown is "Control".
[0133] The S250 is explained below:
[0134] In some implementations, the breadcrumb navigation of the current page includes: page titles arranged in sequence from the home page to the current page according to the order of page jumps this time.
[0135] For example, then Figures 3A to 3C The page shown is used for illustrative purposes. Figure 3C The breadcrumb navigation of the page shown is as follows: "Product Management / Big Data Processing Suite / Control".
[0136] In some possible implementations, in order to facilitate switching from the current page to any page before the current page, the terminal device can also establish a correspondence between the page title and the access link of any page other than the current page in the breadcrumb navigation of the current page.
[0137] For example, then Figures 3A to 3C The page shown is used for exemplary explanation. The terminal device can establish the following corresponding relationship: Figure 3A The page title "Product Management" is consistent with the Figure 3A The corresponding relationship between the access links of the pages shown, Figure 3B The title of the page shown, "Big Data Processing Suite", is inconsistent with the Figure 3B The correspondence between the access links of the displayed pages.
[0138] In an embodiment of the present application, the terminal device can generate the access address of the current page based on the breadcrumb data of the previous page, obtain the title of the current page after jumping from the previous page to the current page, and parse the access address of the current page to obtain the breadcrumb data of the previous page, generate the breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page, and display the breadcrumb navigation of the current page based on the breadcrumb data of the current page. It can be seen that for any page, the generation of the breadcrumb data of the page is related to the order of page jumps this time, so that the displayed breadcrumb navigation conforms to the actual business scenario. For example, when jumping from page A to page B, according to the breadcrumb navigation display method provided in the embodiment of the present application, the breadcrumb navigation displayed by page B is page A title> page B title. When jumping from page C to page B, according to the breadcrumb navigation display method provided in the embodiment of the present application, the breadcrumb navigation displayed by page B is page C title> page B title. Obviously, this breadcrumb navigation method conforms to the actual business scenario. In addition, the terminal device can quickly obtain the breadcrumb data of the previous page by parsing the access address of the current page, thereby ensuring the generation efficiency of the breadcrumb navigation of the current page.
[0139] Assuming that the breadcrumb navigation display method provided in the embodiment of the present application is applied to the browser of the terminal device, the terminal device may include the following layers, but not limited to: browser, address processing layer, breadcrumb rendering layer, page title acquisition layer, breadcrumb construction layer, data compression layer, cache layer, and the server may include: data storage layer. The breadcrumb navigation display method will be exemplarily described below based on the hierarchical division of the terminal device and the server:
[0140] For example, Figure 4 A flowchart of another breadcrumb navigation display method provided in an embodiment of the present application, such as Figure 4 As shown, the method may include:
[0141] S401: The browser obtains a jump instruction from a previous page to a current page to generate a first instruction message;
[0142] It should be understood that the explanation of the jump instruction can be found above, and the embodiments of the present application will not go into details.
[0143] It should be understood that the first indication message is used to instruct the address processing layer to generate an access address for the current page.
[0144] S402: The browser sends a first indication message to the address processing layer;
[0145] S403: The address processing layer generates an access address of the current page based on the first indication message;
[0146] In some possible implementations, the address processing layer may convert the breadcrumb data of the previous page into a string, and compress the string to obtain compressed data; generate the access address of the current page based on the compressed data; wherein the access address of the current page includes the compressed data.
[0147] It should be understood that the conversion method for the breadcrumb data of the previous page and the compression method for the character string can be referred to above, and the embodiments of the present application will not be described in detail.
[0148] S404: The address processing layer sends the access address of the current page to the browser;
[0149] S405: The browser jumps from the previous page to the current page based on the access address of the current page, and generates a second indication message;
[0150] It should be understood that the second instruction message is used to instruct the breadcrumb construction layer to construct breadcrumb data of the current page.
[0151] S406: The browser sends a second instruction message to the breadcrumb structure layer;
[0152] S407: The breadcrumb construction layer parses the access address of the current page based on the second indication message to obtain compressed data;
[0153] S408: The breadcrumb construction layer sends a query request for querying the compressed data to the cache layer;
[0154] S409: The cache layer queries the compressed data in the local cache according to the query request;
[0155] It should be understood that S408 and S409 are performed when the compressed data is stored in the local cache. If the compressed data is not stored in the local cache, the breadcrumb construction layer needs to query the compressed data from the data warehouse on the server side.
[0156] S410: The cache layer sends the breadcrumb data of the previous page corresponding to the compressed data to the breadcrumb construction layer;
[0157] S411: the breadcrumb construction layer sends a request message for requesting the current page title to the page title acquisition layer;
[0158] In some implementations, the request message may carry an identifier of the current page, but is not limited thereto.
[0159] S412: the page title acquisition layer sends the title of the current page to the breadcrumb construction layer;
[0160] S413: The breadcrumb construction layer generates breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page;
[0161] It should be understood that the method for generating breadcrumb data of the current page can be referred to above, and the embodiment of the present application will not be described in detail.
[0162] S414: The breadcrumb construction layer sends the breadcrumb data of the current page to the breadcrumb rendering layer;
[0163] S415: The breadcrumb rendering layer renders the breadcrumb navigation of the current page;
[0164] S416: The browser displays the breadcrumb navigation of the current page;
[0165] S417: The breadcrumb construction layer sends the breadcrumb data of the current page to the data compression layer;
[0166] S418: The data compression layer compresses the breadcrumb data of the current page to obtain compressed data corresponding to the current page;
[0167] It should be understood that the method for compressing the breadcrumb data for the current page can be referred to above, and the embodiments of the present application will not be described in detail.
[0168] S419: The data compression layer sends the compressed data corresponding to the current page and the breadcrumb data of the current page to the cache layer;
[0169] S420: The cache layer stores the compressed data corresponding to the current page and the breadcrumb data of the current page in the local cache;
[0170] It should be understood that S419 and S420 are performed when the compressed data corresponding to the current page and the breadcrumb data of the current page are not stored in the local cache. If the compressed data corresponding to the current page and the breadcrumb data of the current page are stored in the local cache, then S419 and S420 do not need to be executed.
[0171] S421: The cache layer sends the compressed data corresponding to the current page and the breadcrumb data of the current page to the data storage layer;
[0172] S422: The data storage layer stores the compressed data corresponding to the current page and the breadcrumb data of the current page in the data warehouse.
[0173] It should be understood that S421 and S422 are performed when the compressed data corresponding to the current page and the breadcrumb data of the current page are not stored in the data warehouse. If the compressed data corresponding to the current page and the breadcrumb data of the current page are stored in the data warehouse, then S421 and S422 do not need to be executed.
[0174] In some possible implementations, the terminal device may also obtain a click operation on the title of any page before the current page; in response to the click operation, obtain the access address of the page; and jump from the current page to the page based on the access address of the page.
[0175] In the embodiment of the present application, the terminal device may obtain the access address of the page in any achievable manner, but is not limited thereto:
[0176] In some possible implementations, the terminal device may obtain the title of any page and the correspondence between the title of any page and the access address of any page; and obtain the access address of any page based on the title of any page and the correspondence.
[0177] For example, FIG. 5A to FIG. 5C A schematic diagram of a page provided in another embodiment of the present application, when a user clicks Figure 5A If the terminal device finds the "Big Data Processing Suite" in the breadcrumb navigation of the page shown, the terminal device can obtain the title "Big Data Processing Suite" and Figure 5B The corresponding relationship between the access addresses of the pages shown is based on the title and Figure 5B The corresponding relationship between the access addresses of the pages shown is determined Figure 5B The access address of the page shown is based on Figure 5B The access address of the page shown is from Figure 5A The page shown jumps to Figure 5B Similarly, when the user clicks Figure 5A If the terminal device finds the "Product Management" in the breadcrumb navigation of the page shown, the terminal device can obtain the title "Product Management" and Figure 5C The corresponding relationship between the access addresses of the pages shown is based on the title and Figure 5C The corresponding relationship between the access addresses of the pages shown is determined Figure 5C The access address of the page shown is based on Figure 5C The access address of the page shown is from Figure 5A The page shown jumps to Figure 5C The page shown.
[0178] It should be noted that the page return method provided in the embodiment of the present application is also applicable to the page return of the list page. For example, list page A includes multiple pages, namely page 1, page 2, and page 3. Assuming that the page jump order is page 1→page 2→page B, and assuming that the current page is page B, when the user clicks on the title of page 1 in the breadcrumb navigation of the page shown in page B, the terminal device can obtain the correspondence between the title and the access address of page 1, determine the access address of page 1 based on the correspondence between the title and the access address of page 1, and jump from page B to page 1 based on the access address of page 1. Similarly, when the user clicks on the title of page 2 in the breadcrumb navigation of the page shown in page B, the terminal device can obtain the correspondence between the title and the access address of page 2, determine the access address of page 2 based on the correspondence between the title and the access address of page 2, and jump from page B to page 2 based on the access address of page 2.
[0179] In other possible implementations, the terminal device may parse the breadcrumb data of the current page to obtain the access address of any page.
[0180] For example, then Figures 5A to 5C The page shown is an example of an example. When a user clicks Figure 5A The title "Big Data Processing Suite" in the breadcrumb navigation of the page shown, then the terminal device can obtain the parsing Figure 5A The breadcrumb data of the page shown above gives the access address corresponding to the title "Big Data Processing Suite", that is, Figure 5B The access address of the page shown is based on Figure 5B The access address of the page shown is from Figure 5A The page shown jumps to Figure 5B Similarly, when the user clicks Figure 5A The title "Product Management" in the breadcrumb navigation of the page shown, then the terminal device can obtain the parsed Figure 5A The breadcrumb data of the page shown above obtains the access address corresponding to the title "Product Management", that is, Figure 5C The access address of the page shown is based on Figure 5C The access address of the page shown is from Figure 5A The page shown jumps to Figure 5C The page shown.
[0181] It should be noted that the page return method provided in the embodiment of the present application is also applicable to the page return of the list page. For example, list page A includes multiple pages, namely page 1, page 2, and page 3. Assuming that the page jump order is page 1→page 2→page B, and assuming that the current page is page B, when the user clicks on the title of page 1 in the breadcrumb navigation of the page shown in page B, the terminal device can obtain the breadcrumb data of page B, obtain the access address corresponding to the title of page 1, that is, the access address of page 1, and jump from page B to page 1 based on the access address of page 1. Similarly, when the user clicks on the title of page 2 in the breadcrumb navigation of the page shown in page B, the terminal device can obtain the breadcrumb data of page B, obtain the access address corresponding to the title of page 2, that is, the access address of page 2, and jump from page B to page 2 based on the access address of page 2.
[0182] By using the breadcrumb navigation display method provided in the embodiment of the present application, it is possible to switch from the current page back to any page before the current page, thereby improving the user experience. In particular, for page return of a list page, this method can be used to switch from the current page back to a specific page of the list page, thereby improving the user experience.
[0183] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.
[0184] It should also be understood that in the various method embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0185] The method provided in the embodiment of the present application is described above, and the device provided in the embodiment of the present application is described below.
[0186] Figure 6 A schematic diagram of a breadcrumb navigation display device 600 provided in an embodiment of the present application is shown as follows: Figure 6As shown, the device 600 includes: an acquisition module 610, a generation module 620 and a display module 630, wherein the acquisition module 610 is used to acquire a jump instruction from a previous page to a current page; the generation module 620 is used to generate an access address of the current page based on the breadcrumb data of the previous page in response to the jump instruction; the acquisition module 610 is also used to: after jumping from the previous page to the current page, acquire the title of the current page, and parse the access address of the current page to acquire the breadcrumb data of the previous page; the generation module 620 is also used to generate the breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page; the display module 630 is used to display the breadcrumb navigation of the current page based on the breadcrumb data of the current page.
[0187] In some implementations, the generation module 620 is specifically used to: convert the breadcrumb data of the previous page into a character string; and generate an access address of the current page based on the character string.
[0188] In some implementations, the generation module 620 is specifically used to: compress the character string to obtain compressed data; generate an access address of the current page based on the compressed data; wherein the access address of the current page includes the compressed data.
[0189] In some possible implementations, the device 600 also includes: a sending module 650, which is used to send compressed data and breadcrumb data of the previous page corresponding to the compressed data to the server, so that when the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are not stored in the server's data warehouse, the server stores the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the data warehouse.
[0190] In some possible implementations, the acquisition module 610 is specifically used to: parse the access address of the current page to obtain compressed data; query the breadcrumb data of the previous page from the local cache based on the compressed data to obtain the breadcrumb data of the previous page; if the breadcrumb data of the previous page is not queried from the local cache, send a query request for querying the breadcrumb data of the previous page to the server, and receive the query response sent by the server to obtain the breadcrumb data of the previous page.
[0191] In some implementations, the device 600 further includes: a storage module 640, which is used to: store the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the local cache if the local cache does not store the compressed data and the breadcrumb data of the previous page corresponding to the compressed data.
[0192] In some implementations, the acquisition module 610 is specifically used to: parse the access address of the current page to obtain compressed data; query the breadcrumb data of the previous page from the local cache based on the compressed data to obtain the breadcrumb data of the previous page.
[0193] In some implementations, the generation module 620 is specifically used to: convert the breadcrumb data of the previous page into a character string according to a preset rule.
[0194] In some implementations, the preset rules include: a sequence rule of the pages included in the breadcrumb data of the previous page; and a sequence rule of the titles and access addresses included in the pages.
[0195] In some possible implementations, the device 600 also includes: a jump module 660, wherein the acquisition module 610 is also used to: obtain a click operation on the title of any page before the current page; in response to the click operation, obtain an access address of any page; the jump module 660 is used to jump from the current page to any page based on the access address of any page.
[0196] In some implementations, the acquisition module 610 is specifically used to: acquire the title of any page and the correspondence between the title of any page and the access address of any page; and acquire the access address of any page based on the title of any page and the correspondence.
[0197] In some implementations, the acquisition module 610 is specifically used to parse the breadcrumb data of the current page to obtain the access address of any page.
[0198] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 6 The device 600 shown can execute the above method embodiments, and the above and other operations and / or functions of each module in the device 600 are respectively for implementing the corresponding processes in the above methods, which will not be repeated here for the sake of brevity.
[0199] The above describes the device 600 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0200] Figure 7 It is a schematic block diagram of an electronic device provided in an embodiment of the present application.
[0201] like Figure 7 As shown, the electronic device may include:
[0202] The memory 710 and the processor 720, the memory 710 is used to store the computer program and transmit the program code to the processor 720. In other words, the processor 720 can call and run the computer program from the memory 710 to implement the method in the embodiment of the present application.
[0203] For example, the processor 720 may be configured to execute the above method embodiments according to instructions in the computer program.
[0204] In some embodiments of the present application, the processor 720 may include but is not limited to:
[0205] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0206] In some embodiments of the present application, the memory 710 includes but is not limited to:
[0207] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0208] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0209] like Figure 7 As shown, the electronic device may also include:
[0210] The transceiver 730 may be connected to the processor 720 or the memory 710 .
[0211] The processor 720 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.
[0212] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0213] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0214] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0215] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0216] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0217] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0218] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for displaying breadcrumb navigation, characterized in that: include: Get the jump instruction from the previous page to the current page; In response to the jump instruction, generating an access address of the current page based on the breadcrumb data of the previous page; After jumping from the previous page to the current page, obtaining the title of the current page, and parsing the access address of the current page to obtain breadcrumb data of the previous page; Generating breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page; The breadcrumb navigation of the current page is displayed based on the breadcrumb data of the current page.
2. The method according to claim 1, characterized in that The generating the access address of the current page based on the breadcrumb data of the previous page includes: Convert the breadcrumb data of the previous page into a string; An access address of the current page is generated based on the character string.
3. The method according to claim 2, characterized in that The step of generating the access address of the current page based on the character string includes: Compressing the character string to obtain compressed data; Generating an access address of the current page based on the compressed data; Wherein, the access address of the current page includes the compressed data.
4. The method according to claim 3, characterized in that Also includes: The compressed data and the breadcrumb data of the previous page corresponding to the compressed data are sent to the server so that the server stores the compressed data and the breadcrumb data of the previous page corresponding to the compressed data in the data warehouse when the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are not stored in the data warehouse of the server.
5. The method according to claim 4, characterized in that The parsing the access address of the current page to obtain the breadcrumb data of the previous page includes: Parsing the access address of the current page to obtain the compressed data; querying the breadcrumb data of the previous page from the local cache based on the compressed data to obtain the breadcrumb data of the previous page; If the breadcrumb data of the previous page is not found in the local cache, a query request for querying the breadcrumb data of the previous page is sent to the server, and a query response sent by the server is received to obtain the breadcrumb data of the previous page.
6. The method according to claim 3, characterized in that Also includes: If the local cache does not store the compressed data and the breadcrumb data of the previous page corresponding to the compressed data, the compressed data and the breadcrumb data of the previous page corresponding to the compressed data are stored in the local cache.
7. The method according to claim 6, characterized in that The parsing the access address of the current page to obtain the breadcrumb data of the previous page includes: Parsing the access address of the current page to obtain the compressed data; The breadcrumb data of the previous page is queried from the local cache based on the compressed data to obtain the breadcrumb data of the previous page.
8. The method according to claim 2, characterized in that: The step of converting the breadcrumb data of the previous page into a string includes: The breadcrumb data of the previous page is converted into a string according to a preset rule.
9. The method according to claim 8, characterized in that The preset rules include: The order rules of the pages included in the breadcrumb data of the previous page; The sequence rules of the titles and access addresses included in each page.
10. The method according to any one of claims 1 to 9, characterized in that Also includes: Obtain a click operation on the title of any page before the current page; In response to the click operation, obtaining an access address of any of the pages; Jump from the current page to the any page based on the access address of the any page.
11. The method according to claim 10, characterized in that The obtaining the access address of any page includes: Acquire the title of any page and the corresponding relationship between the title of any page and the access address of any page; The access address of any page is obtained based on the title of any page and the corresponding relationship.
12. The method according to claim 10, characterized in that The obtaining the access address of any page includes: The breadcrumb data of the current page is parsed to obtain the access address of any page.
13. A breadcrumb navigation display device, characterized in that: include: Acquisition module, generation module and display module; The acquisition module is used to acquire a jump instruction from a previous page to a current page; The generating module is used for generating the access address of the current page based on the breadcrumb data of the previous page in response to the jump instruction; The acquisition module is also used for: after jumping from the previous page to the current page, acquiring the title of the current page, and parsing the access address of the current page to acquire the breadcrumb data of the previous page; The generating module is further used to generate the breadcrumb data of the current page based on the title of the current page and the breadcrumb data of the previous page; The display module is used to display the breadcrumb navigation of the current page based on the breadcrumb data of the current page.
14. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Bread crumb navigation generation method and device and computer readable storage medium
CN114969579A
Contextual breadcrumbs during navigation
US20140181699A1
