CN113452613A - Method and device for acquiring page routing address, electronic equipment and storage medium - Google Patents

Method and device for acquiring page routing address, electronic equipment and storage medium Download PDF

Info

Publication number
CN113452613A
CN113452613A CN202010614646.4A CN202010614646A CN113452613A CN 113452613 A CN113452613 A CN 113452613A CN 202010614646 A CN202010614646 A CN 202010614646A CN 113452613 A CN113452613 A CN 113452613A
Authority
CN
China
Prior art keywords
page
routing address
current page
identification information
jump
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010614646.4A
Other languages
Chinese (zh)
Other versions
CN113452613B (en
Inventor
王文旺
杨扬
芮继龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Soyoung Technology Beijing Co Ltd
Original Assignee
Soyoung Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Soyoung Technology Beijing Co Ltd filed Critical Soyoung Technology Beijing Co Ltd
Priority to CN202010614646.4A priority Critical patent/CN113452613B/en
Publication of CN113452613A publication Critical patent/CN113452613A/en
Application granted granted Critical
Publication of CN113452613B publication Critical patent/CN113452613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method, a device, an electronic device and a storage medium for acquiring a page routing address, wherein the method comprises the following steps: receiving a route viewing request of a current page; acquiring page identification information and a skipping parameter of a current page; and generating a complete routing address of the current page according to the page identification information, the jump parameter and a preset mapping table, wherein the preset mapping table comprises the corresponding relation between the page identification information and the local routing address, and the jump parameter is a parameter which is included by the complete routing address and is required for displaying the page content of the current page. The method and the device store the corresponding relation between the page identification information of each page and the local routing address at the client. When the complete routing address of a certain page needs to be acquired, the local routing address of the page is acquired locally, the local routing address and the jump parameter are spliced into the complete routing address, the complete routing address is automatically generated, the routing address does not need to be required for personnel in charge of developing the client, the efficiency of acquiring the complete routing address is improved, and errors are not prone to occurring.

Description

Method and device for acquiring page routing address, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of application programs, and particularly relates to a method and device for acquiring a page routing address, electronic equipment and a storage medium.
Background
Each page in the client of the application program has a respective routing address, and the development of the client and the development of the server are usually responsible for different developers, and only the developer responsible for developing the client knows the routing address of the page written by the developer responsible for developing the client. When a developer or other operators in charge of developing the server needs the routing address of the page, the developer in charge of developing the client can only ask for the routing address of the page, and the developer in charge of developing the client needs to search the program code written by the developer in charge of finding the routing address of the page.
Disclosure of Invention
When a user such as a server developer or an operator needs to obtain a complete routing address of a certain page, a local routing address of the page is obtained from a preset mapping table and locally stored in a client, and the local routing address of the page and a jump parameter are spliced into the complete routing address, so that the complete routing address of the page is automatically generated, the routing address does not need to be requested to a technician responsible for developing the client, the efficiency of obtaining the complete routing address is improved, and errors are not easy to occur.
The embodiment of the first aspect of the present application provides a method for obtaining a page routing address, where the method includes;
receiving a route viewing request of a current page;
acquiring page identification information and jump parameters of the current page;
generating a complete routing address of the current page according to a preset mapping table, the page identification information and the jump parameter, wherein the preset mapping table comprises a corresponding relation between the page identification information and a local routing address;
and the jumping parameter is a parameter which is included in the complete routing address and is required for displaying the page content of the current page.
In some embodiments of the present application, the generating a complete routing address of the current page according to the page identification information, the skip parameter, and a preset mapping table includes:
acquiring a local routing address of the current page from a preset mapping table according to the page identification information;
and splicing the local routing address and the jump parameter into a complete routing address of the current page.
In some embodiments of the present application, the stitching the local routing address and the jump parameter into a complete routing address of the current page includes:
adding a preset character at the tail of the local routing address;
and adding the jump parameter after the preset character to obtain a complete routing address of the current page.
In some embodiments of the present application, before generating the complete routing address of the current page according to the page identification information, the skip parameter, and a preset mapping table, the method further includes:
acquiring a local routing address and page identification information of each page;
converting the data type of the local routing address and the page identification information of each page into a preset data type;
and packaging the local routing address and the page identification information of each converted page by adopting a preset data structure to obtain a preset mapping table.
In some embodiments of the present application, the receiving a route viewing request of a current page includes:
monitoring a route viewing button in real time, wherein the route viewing button is a suspension button or a fixed button in a current page;
and monitoring a click event triggered by the route viewing button, and determining that a route viewing request of the current page is received.
In some embodiments of the present application, after receiving the route viewing request of the current page, the method further includes:
displaying a page associated with the current page, wherein a skip interface corresponding to the current page is arranged in the associated page;
acquiring a complete routing address bound with the jump interface from a server;
monitoring a page jump event triggered by the jump interface, and jumping to the current page according to a local routing address included in the complete routing address;
and acquiring the page content included in the current page from the server according to the jumping parameters included in the complete routing address.
In some embodiments of the present application, after generating the complete routing address of the current page, the method further includes:
displaying a route view page, the route view page including a complete routing address of the current page.
An embodiment of a second aspect of the present application provides an apparatus for obtaining a page routing address, including;
the receiving module is used for receiving a route viewing request of a current page;
the acquisition module is used for acquiring the page identification information and the jump parameter of the current page;
a generating module, configured to generate a complete routing address of the current page according to a preset mapping table, the page identification information, and the skip parameter, where the preset mapping table includes a correspondence between the page identification information and a local routing address;
and the jumping parameter is a parameter which is included in the complete routing address and is required for displaying the page content of the current page.
Embodiments of the third aspect of the present application provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of the first aspect.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executable by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
the embodiment of the application locally stores a preset mapping table in the client, wherein the preset mapping table comprises the corresponding relation between the page identification information of each page of the client and the local routing address. When a user such as a server developer or an operator needs to obtain a complete routing address of a certain page, a client can locally obtain page identification information and a jump parameter of the page, obtain a local routing address of the page from a preset mapping table according to the page identification information of the page, and then splice the local routing address of the page and the jump parameter into the complete routing address of the page. The method and the device realize automatic generation of the complete routing address of the page, do not need to ask for the routing address for technical personnel in charge of developing the client, improve the efficiency of obtaining the complete routing address and are not easy to make mistakes.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for obtaining a page routing address according to an embodiment of the present application;
FIG. 2 illustrates a first schematic diagram of a route view button provided by an embodiment of the present application;
FIG. 3 illustrates a second schematic diagram of a route view button provided by an embodiment of the present application;
FIG. 4 illustrates a third schematic diagram of a route view button provided by an embodiment of the present application;
FIG. 5 illustrates a schematic diagram of a route view page provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram illustrating an apparatus for obtaining a page routing address according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
A method, an apparatus, an electronic device, and a storage medium for acquiring a page routing address according to embodiments of the present application are described below with reference to the accompanying drawings.
When a common user of an application program logs in a client to browse a certain page, the client displays the page, the page usually comprises a plurality of jump interfaces, the user can click a certain jump interface, and the client jumps from the currently displayed page to other pages corresponding to the jump interface clicked by the user. The client can realize the page jump operation because the jump interface binds the routing address of other pages. And the binding relation between the jump interface and the routing address is configured by the server.
Specifically, for each page in the client, the server records all the jump interfaces included in the page, and the server can record the corresponding relationship between the page identification information of the page and the interface identification of each jump interface in the page. The page identification information may be a page name or a page number, and the interface identification may be an interface name or an interface number. For example, the page identification information of the shopping cart page may be a page name "shopping cart" or a page number 001, etc., and assuming that the shopping cart page includes a skip interface "management" and a "settlement", the interface identification of the skip interface "management" may be an interface name "management" or an interface number 0010, and the interface identification of the skip interface "settlement" may be an interface name "settlement" or an interface number 0011. If the page name is used as the page identification information and the interface name is used as the interface identification for recording in the server, the corresponding relationship between the page identification information of the shopping cart page and the interface identification of the skip interface included in the shopping cart page is shown in table 1:
TABLE 1
Figure BDA0002563320290000051
For each jump interface in each page, a developer, an operator and the like which are responsible for developing or maintaining the server respectively set a routing address required to be bound by each jump interface in the server according to an operation strategy. The operation policy may be sent from different service scenarios or different user groups, etc. to determine the routing address to be bound for each hop interface. Different business scenarios may be different business projects that an enterprise needs to promote at different times. For example, the service item to be promoted in this month is "whitening needle", and the service item to be promoted in the next month is "hump nose", and in this month, the interface identifier of a certain jump interface may be bound with the routing address of the page corresponding to the "whitening needle" in the server, and in the next month, the interface identifier of the jump interface may be adjusted to be bound with the routing address of the page corresponding to the "hump nose".
The different user groups may be male users and female users, users under 30 years of age and users over 30 years of age, etc. For example, a service item to be promoted by a male user may be "hair transplant", a service item to be promoted by a female user may be "breast enhancement", a binding relationship between a user gender and a male, an interface identifier of a certain jump interface and a routing address of a page corresponding to "hair transplant" may be set in the server, and a binding relationship between a user gender and a female, an interface identifier of the jump interface and a routing address of a page corresponding to "breast enhancement" may be set in the server.
After the routing address corresponding to each skip interface in each page is set in the server in the manner, when the client displays a certain page, the client sends an address acquisition request to the server, wherein the address acquisition request carries the page identification information of the current page. The server obtains page identification information included in the request according to the address, determines interface identifications of all the jump interfaces included in the current page from the corresponding relation between the page identification information and the interface identifications, then determines a routing address corresponding to each jump interface in the current page from the binding relation between the interface identifications and the routing addresses according to the interface identifications of the jump interfaces included in the current page, and sends the corresponding relation between the interface identifications and the routing addresses of each jump interface to the client. The client caches the corresponding relation between the interface identification of each jump interface and the routing address included in the current page.
When the client monitors that a user clicks a certain jump interface in the current page, the corresponding routing address is obtained from the corresponding relation between the cached interface identification and the routing address according to the interface identification of the clicked jump interface, and the page corresponding to the routing address is jumped from the current page according to the obtained routing address.
Just because a developer or an operator sets a routing address required to be bound by the jump interface in the server, the client can realize the page jump operation. The development of the client and the development of the server are usually responsible for different technicians, only the technician responsible for developing the client knows the routing address of the page written by the technician, and other personnel do not know the routing address of the page of the client. Therefore, before setting the binding relationship between the hop interface and the routing address, a developer or an operator in charge of developing the server needs to first obtain the routing address of the page of the client. In the related art, developers or operators in charge of developing the server can only ask technicians in charge of developing the client for the routing address, and the technicians in charge of developing the client need to search program codes written by the developers or the operators to find the routing address of the page, so that the routing address of the page is acquired manually, the efficiency is low, and errors are easy to occur.
Based on this, the embodiment of the application provides a method for acquiring a page routing address, by which a routing address of any page can be conveniently acquired without requiring a technician responsible for developing a client to ask for the routing address of the page, so that the automation degree is high, and the efficiency of acquiring the routing address is very high.
The execution subject of the embodiment of the application is the client of the application program. Before the routing address of the page of the client is obtained by the method provided by the embodiment of the application, a preset mapping table is required to be configured locally at the client, and the corresponding relation between the page identification information of each page and the local routing address is stored in the preset mapping table. The local routing address of the page is a part of a complete routing address of the page, the complete routing address of the page comprises the local routing address of the page and a jump parameter required for jumping to the page, the local routing address is used for identifying the page, the page can be jumped to according to the local routing address, but only a page frame of the page can be displayed, the jump parameter is a parameter required for displaying page content of the page, and the page content embedded in the page frame needs to be obtained from a server according to the jump parameter.
For example, the complete routing address of a commodity detail page is "app. souung:// product from _ action _ view ═ XXX & horizontal _ id ═ XXX & exposure _ ext ═ XXX", wherein the local routing address is "app. souung:// product", and the hop parameter is "from _ action _ view ═ XXX & horizontal _ id ═ XXX & exposure _ ext ═ XXX". The method includes that a user can jump to a commodity detail page only according to a local routing address "app.
When developing the client, the technical staff sets page identification information such as the page name or the page number of each page, and sets a local routing address of each page. The method and the device for processing the page identification information obtain the local routing address and the page identification information of each page, and convert the data type of the local routing address and the page identification information of each page into the preset data type. The preset data type may be int (integer) or string (character) and so on. And after the data type is converted, packaging the local routing address and the page identification information of each converted page by adopting a preset data structure to obtain a preset mapping table. The preset data structure may be a HashMap (hash mapping) or a table structure, etc.
For example, assume that the preset data type is string type, the local routing address of the commodity detail page is "App. After converting to string type, the page identification information of the commodity detail page may be "Product detail activity", the page identification information of the Shopping cart page may be "Shopping cart", and the page identification information of the Home page may be "Home page". The preset mapping table shown in table 2 may be generated.
TABLE 2
Page identification information Local routing address
Product detail activity App.soyoung://product
Shopping cart App.soyoung://cart
Home page App.soyoung://home
And after the preset mapping table is generated, the preset mapping table is stored in the local client. Then, the complete routing address of any page can be obtained through the following operations of steps 101 and 103, which refer to fig. 1, specifically include:
step 101: a route view request for a current page is received.
The embodiment of the application provides an interface for viewing the complete routing address of the page for the user in the client, and the interface is called a routing viewing button, and the routing viewing button can be a floating button. The floating button floats above a current page displayed by a client, and is always displayed in a display area no matter how the page jumps, so that a user can click the floating button at any time to check a complete routing address of the current page, and the user can change the position of the floating button in the display area by dragging the floating button to avoid the floating button from blocking the page content of the current page. The method comprises the steps that a client monitors a suspension button used for viewing a routing address in a display area in real time in the process of displaying a current page, and when a user clicks the suspension button, the client monitors a click event triggered by the suspension button, so that a routing viewing request of the current page is determined to be received.
As shown in fig. 2, a schematic diagram of a route viewing button implemented by using a suspension button is shown, in fig. 2, a client is installed on a mobile phone as an example, a current page displayed by the client is a commodity detail page of "laser speckle removal", and the suspension button "route viewing" is suspended above the commodity detail page.
In order to improve the reuse rate of the suspension button, in the embodiment of the application, the suspension button can be set as a viewing interface with multiple functions including a route viewing function, when a user clicks the suspension button, a client displays a page corresponding to the suspension button, the page includes a fixed button corresponding to each function, the fixed button corresponding to the route viewing function is included, and when the client monitors a click event triggered by the fixed button corresponding to the route viewing function, the client determines to receive a route viewing request of a current page. As an example, the hover button is set to "other" as shown in (a) of fig. 3, and when the user clicks the hover button "other", a common tool page shown in (b) of fig. 3 is displayed, and the common tool page includes fixed buttons "APP basic information", "developer option", "log viewing", "cleaning cache", and "viewing routing address". When the user clicks the fixed button 'view route address', the client determines that the route view request of the current page is received.
In the embodiment of the present application, a fixed button for viewing the complete routing address of the page may also be directly set in each page, and fig. 4 shows the fixed button for viewing the routing address in the current page. And the client monitors the fixed button in the current page in real time in the process of displaying the current page. When a user clicks a fixed button used for viewing a routing address in a current page, a client monitors a click event triggered by the fixed button, and therefore a routing viewing request of the current page is determined to be received.
Step 102: and acquiring page identification information and jump parameters of the current page.
When developing the client, technical personnel compile page variables corresponding to each page, wherein the page variables comprise page identification information, skip parameters, interface identifications and the like of the pages. The page variables may be stored in the form of any data structure such as an array, stack, tree, or graph. After receiving a route viewing request of a current page, a client acquires a page variable of the current page from the local, and extracts page identification information and a skip parameter of the current page from the page variable of the current page. The page identification information of the current page may be a page name or a page number of the current page. The skip parameter of the current page may be a parameter required for displaying the page content of the current page.
Step 103: and generating a complete routing address of the current page according to the page identification information, the jump parameter and a preset mapping table of the current page, wherein the preset mapping table comprises the corresponding relation between the page identification information and the local routing address, and the jump parameter is a parameter which is included in the complete routing address and is required for displaying the page content of the current page.
And according to the page identification information of the current page, acquiring the local routing address of the current page from a locally stored preset mapping table. And splicing the local routing address and the jump parameter of the current page into a complete routing address of the current page. Specifically, a preset character is added at the end of the local routing address, and then a jump parameter is added after the preset character, so that a complete routing address of the current page is obtained. The preset character may be "? "," - ","! "and the like.
For example, assume that the current page is a Product detail page, the page identification information of the Product detail page is "Product detail activity", and the client locally stores the preset mapping table shown in table 2. Then the corresponding local routing address "app. Let a predetermined character be "? ", the jump parameter obtained from the page variable of the product detail page is" from _ action _ view ═ XXX & horizontal _ id ═ XXX & pid ═ XXX & exposure _ ext ═ XXX ". A preset character is first added at the end of the local routing address, resulting in "app. ", then at a preset character"? "adding a jump parameter behind to obtain a complete routing address of a detailed page of a commodity" app. from _ action _ view, XXX & horizontal id, XXX & pid, XXX & exposure _ ext, XXX.
After the complete routing address of the current page is generated by the method provided by the embodiment of the application, the route viewing page can be displayed and at least comprises the complete routing address of the current page, so that a user can intuitively browse the complete routing address of the current page. The route view page may also include page identification information for the current page. As an example, the route view page shown in fig. 5 shows the page identification information of the goods detail page, and the page identification information in fig. 5 is exemplified by a page name, and the page name of the goods detail page is "Product detail activity". Also shown in fig. 5 is the full routing address "app. souung:// product from _ action _ view ═ XXX & host _ id ═ XXX & pid ═ XXX & exposure _ ext ═ XXX" for the item detail page.
The user clicks the hover button "view route" shown in fig. 2, or clicks the fixed button "view route address" included in the diagram (b) in fig. 3, or clicks the fixed button "view route address" in fig. 4, and the client automatically generates the complete route address of the current page according to the method provided by the embodiment of the present application, and jumps to the route view page shown in fig. 5, so that the user can visually view the complete route address of the current page.
After a developer or an operator and other users obtain the complete routing address of the current page through the method provided by the embodiment of the application, the complete routing address of the current page and one or more jump interfaces in other pages can be bound according to an operation policy, that is, a corresponding relationship between the interface identifier of one or more jump interfaces and the complete routing address of the current page is stored in the server. In the embodiment of the application, a page including a jump interface having a binding relationship with a complete routing address of a current page is referred to as a page associated with the current page, that is, a jump interface corresponding to the current page is set in the associated page. When the client displays the page related to the current page, the complete routing address bound by each jump interface in the related page is obtained from the server, wherein the complete routing address bound by the jump interface corresponding to the current page is included. When the client monitors a page jump event triggered by a jump interface corresponding to the current page, the client jumps to the current page according to a local routing address included in a complete routing address bound by the jump interface, and at the moment, a page frame of the current page can be obtained. And according to the jump parameters included in the complete routing address, acquiring the page content included in the current page from the server, and embedding the acquired page content into the page frame of the current page, so that the complete picture of the current page can be displayed.
For example, assume that the current page is a "laser speckle removal" commodity detail page shown in fig. 2, the page associated with the current page is a home page, and the home page includes a skip interface "speckle removal" that can trigger a skip to the "laser speckle removal" commodity detail page. After the user clicks the suspension button "route check" in fig. 2, the client automatically generates the complete route address of the "laser speckle removal" commodity detail page by the method provided by the embodiment of the present application, and displays the complete route address of the "laser speckle removal" commodity detail page to the user by the route check page shown in fig. 5. The user is a developer or an operator in charge of developing the server, and after obtaining the complete routing address of the commodity detail page with the laser spot removal function, the user configures the binding relationship between the spot removal function of the skip interface in the home page and the complete routing address of the commodity detail page with the laser spot removal function in the server. When a common user as a consumer browses a home page, a client displays the home page, and acquires a complete routing address bound by each skip interface in the home page from a server, wherein the complete routing address bound by the skip interface for removing freckles is included, namely the complete routing address of a commodity detail page for removing freckles by laser. When the user clicks the skip interface to remove the spots, the client can skip to the commodity detail page of laser spot removal shown in fig. 2 according to the complete routing address of the commodity detail page of laser spot removal.
The embodiment of the application locally stores a preset mapping table in the client, wherein the preset mapping table comprises the corresponding relation between the page identification information of each page of the client and the local routing address. When a user such as a server developer or an operator needs to obtain a complete routing address of a certain page, a client can locally obtain page identification information and a jump parameter of the page, a local routing address of the page can be obtained from a preset mapping table only according to the page identification information of the page, and then the local routing address of the page and the jump parameter are spliced into the complete routing address of the page. The method and the device realize automatic generation of the complete routing address of the page, do not need to ask for the routing address for technical personnel in charge of developing the client, improve the efficiency of obtaining the complete routing address and are not easy to make mistakes.
An embodiment of the present application provides an apparatus for obtaining a page routing address, where the apparatus is configured to execute the method for obtaining a page routing address according to the foregoing embodiment, and referring to fig. 6, the apparatus includes:
a receiving module 601, configured to receive a route viewing request of a current page;
an obtaining module 602, configured to obtain page identification information and a skip parameter of a current page;
a generating module 603, configured to generate a complete routing address of the current page according to the page identification information, the jump parameter, and a preset mapping table, where the preset mapping table includes a correspondence between the page identification information and the local routing address, and the jump parameter is a parameter included in the complete routing address and required for displaying page content of the current page.
The generating module 603 includes:
the acquiring unit is used for acquiring a local routing address of the current page from a preset mapping table according to the page identification information;
and the splicing unit is used for splicing the local routing address and the jump parameter into a complete routing address of the current page.
The splicing unit is specifically configured to add a preset character at the end of the local routing address; and adding a jump parameter after the characters are preset to obtain a complete routing address of the current page.
The device also includes: the mapping table generating module is used for acquiring the local routing address and the page identification information of each page; converting the data type of the local routing address and the page identification information of each page into a preset data type; and packaging the local routing address and the page identification information of each converted page by adopting a preset data structure to obtain a preset mapping table.
The receiving module 601 is configured to monitor a route viewing button in real time, where the route viewing button is a floating button or a fixed button in a current page; and monitoring a click event triggered by a route viewing button, and determining that a route viewing request of the current page is received.
The device also includes: the skip module is used for displaying a page related to the current page, and a skip interface corresponding to the current page is arranged in the related page; acquiring a complete routing address bound with the jump interface from the server; monitoring a page jump event triggered by a jump interface, and jumping to a current page according to a local routing address included in a complete routing address; and according to the jump parameters included in the complete routing address, acquiring the page content included in the current page from the server.
The device also includes: and the display module is used for displaying the route viewing page, and the route viewing page comprises the complete route address of the current page.
The device for acquiring a page routing address provided by the above embodiment of the present application and the method for acquiring a page routing address provided by the embodiment of the present application have the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by the application program stored in the device.
The embodiment of the present application further provides an electronic device corresponding to the method for acquiring a page routing address provided in the foregoing embodiment, so as to execute the method for acquiring a page routing address. The embodiments of the present application are not limited.
Please refer to fig. 7, which illustrates a schematic diagram of an electronic device according to some embodiments of the present application. As shown in fig. 7, the electronic device 2 includes: the system comprises a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the method for obtaining a page routing address provided in any of the foregoing embodiments when executing the computer program.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 202 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the method for obtaining a page routing address disclosed in any embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
The electronic device provided by the embodiment of the application and the method for acquiring the page routing address provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Referring to fig. 8, the computer-readable storage medium is an optical disc 30, and a computer program (i.e., a program product) is stored thereon, and when being executed by a processor, the computer program executes the method for acquiring a page routing address according to any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the method for obtaining a page routing address provided by the embodiment of the present application have the same beneficial effects as the method adopted, run, or implemented by the application program stored in the computer-readable storage medium.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for obtaining a page routing address, the method comprising;
receiving a route viewing request of a current page;
acquiring page identification information and jump parameters of the current page;
generating a complete routing address of the current page according to a preset mapping table, the page identification information and the jump parameter, wherein the preset mapping table comprises a corresponding relation between the page identification information and a local routing address;
and the jumping parameter is a parameter which is included in the complete routing address and is required for displaying the page content of the current page.
2. The method of claim 1, wherein the generating a complete routing address of the current page according to the page identification information, the jumping parameter and a preset mapping table comprises:
acquiring a local routing address of the current page from a preset mapping table according to the page identification information;
and splicing the local routing address and the jump parameter into a complete routing address of the current page.
3. The method of claim 2, wherein the stitching the local routing address and the jump parameter into a complete routing address of the current page comprises:
adding a preset character at the tail of the local routing address;
and adding the jump parameter after the preset character to obtain a complete routing address of the current page.
4. The method according to any one of claims 1 to 3, wherein before generating the complete routing address of the current page according to the page identification information, the jump parameter and a preset mapping table, the method further comprises:
acquiring a local routing address and page identification information of each page;
converting the data type of the local routing address and the page identification information of each page into a preset data type;
and packaging the local routing address and the page identification information of each converted page by adopting a preset data structure to obtain a preset mapping table.
5. The method of any of claims 1-3, wherein receiving a route view request for a current page comprises:
monitoring a route viewing button in real time, wherein the route viewing button is a suspension button or a fixed button in a current page;
and monitoring a click event triggered by the route viewing button, and determining that a route viewing request of the current page is received.
6. The method of any of claims 1-3, wherein after receiving the route view request for the current page, the method further comprises:
displaying a page associated with the current page, wherein a skip interface corresponding to the current page is arranged in the associated page;
acquiring a complete routing address bound with the jump interface from a server;
monitoring a page jump event triggered by the jump interface, and jumping to the current page according to a local routing address included in the complete routing address;
and acquiring the page content included in the current page from the server according to the jumping parameters included in the complete routing address.
7. The method of any of claims 1-3, wherein after generating the complete routing address for the current page, further comprising:
displaying a route view page, the route view page including a complete routing address of the current page.
8. An apparatus for obtaining a page routing address, the apparatus comprising;
the receiving module is used for receiving a route viewing request of a current page;
the acquisition module is used for acquiring the page identification information and the jump parameter of the current page;
a generating module, configured to generate a complete routing address of the current page according to a preset mapping table, the page identification information, and the skip parameter, where the preset mapping table includes a correspondence between the page identification information and a local routing address;
and the jumping parameter is a parameter which is included in the complete routing address and is required for displaying the page content of the current page.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method according to any of claims 1-7.
CN202010614646.4A 2020-06-30 2020-06-30 Method, device, electronic equipment and storage medium for acquiring page routing address Active CN113452613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010614646.4A CN113452613B (en) 2020-06-30 2020-06-30 Method, device, electronic equipment and storage medium for acquiring page routing address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010614646.4A CN113452613B (en) 2020-06-30 2020-06-30 Method, device, electronic equipment and storage medium for acquiring page routing address

Publications (2)

Publication Number Publication Date
CN113452613A true CN113452613A (en) 2021-09-28
CN113452613B CN113452613B (en) 2023-06-06

Family

ID=77808355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010614646.4A Active CN113452613B (en) 2020-06-30 2020-06-30 Method, device, electronic equipment and storage medium for acquiring page routing address

Country Status (1)

Country Link
CN (1) CN113452613B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900755A (en) * 2021-10-11 2022-01-07 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN114047853A (en) * 2021-11-17 2022-02-15 深圳市普渡科技有限公司 Terminal status bar display method and device, robot, equipment and storage medium
CN116578801A (en) * 2023-06-08 2023-08-11 曙光云计算集团有限公司 Page rendering method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037912A (en) * 2017-12-15 2018-05-15 北京小米移动软件有限公司 Show the method, apparatus of page info
US20180278671A1 (en) * 2015-11-27 2018-09-27 Alibaba Group Holding Limited Page jump method and apparatus
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109783742A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 For developing method for page jump, device and the computer equipment of auxiliary
CN110673907A (en) * 2019-08-30 2020-01-10 深圳壹账通智能科技有限公司 Multi-role page jumping method and device, computer equipment and readable storage medium
CN110795181A (en) * 2019-09-18 2020-02-14 北京你财富计算机科技有限公司 Application program interface display method and device based on skip protocol and electronic equipment
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180278671A1 (en) * 2015-11-27 2018-09-27 Alibaba Group Holding Limited Page jump method and apparatus
CN108037912A (en) * 2017-12-15 2018-05-15 北京小米移动软件有限公司 Show the method, apparatus of page info
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109783742A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 For developing method for page jump, device and the computer equipment of auxiliary
CN110673907A (en) * 2019-08-30 2020-01-10 深圳壹账通智能科技有限公司 Multi-role page jumping method and device, computer equipment and readable storage medium
CN110795181A (en) * 2019-09-18 2020-02-14 北京你财富计算机科技有限公司 Application program interface display method and device based on skip protocol and electronic equipment
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900755A (en) * 2021-10-11 2022-01-07 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN113900755B (en) * 2021-10-11 2024-04-16 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN114047853A (en) * 2021-11-17 2022-02-15 深圳市普渡科技有限公司 Terminal status bar display method and device, robot, equipment and storage medium
CN116578801A (en) * 2023-06-08 2023-08-11 曙光云计算集团有限公司 Page rendering method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113452613B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN113452613B (en) Method, device, electronic equipment and storage medium for acquiring page routing address
US8060414B1 (en) Encoding and decoding of product properties in a uniform resource locator
US20160124914A1 (en) Page Processing for Mobile App
CN109062563B (en) Method and device for generating page
CN109933593B (en) Asset data recording method, device and equipment
CN106933887B (en) Data visualization method and device
CN108984652B (en) Configurable data cleaning system and method
US9552600B1 (en) Generating and updating recommendations for merchants
CN104035863B (en) A kind of browser testing method and device
CN108134812B (en) Data processing method and device
CN104036011A (en) Webpage element display method and browser device.
US10078579B1 (en) Metrics-based analysis for testing a service
US9396053B2 (en) Error handling in a network resource generation environment
CN107015903B (en) Interface test program generation method and device and electronic equipment
US20140379925A1 (en) Apparatus and method for interworking between app store servers to share application information
US8959426B1 (en) Loading customer-supplied network page generation code
CN113703785A (en) Component-based platform deployment method, device, equipment and storage medium
CN111552463A (en) Page jump method and device, computer equipment and storage medium
US8862984B1 (en) Data contracts for network page generation code
US8640099B1 (en) Detecting feature conflicts in a vendor account configuration
CN111209028B (en) Data processing method and device, electronic equipment and storage medium
CN115993971A (en) Active page generation method, computing device and computer storage medium
JP2016133946A (en) Source code reviewing method and system therefor
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
CN105808543B (en) Information display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant