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

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

Info

Publication number
CN113452613B
CN113452613B CN202010614646.4A CN202010614646A CN113452613B CN 113452613 B CN113452613 B CN 113452613B CN 202010614646 A CN202010614646 A CN 202010614646A CN 113452613 B CN113452613 B CN 113452613B
Authority
CN
China
Prior art keywords
page
address
routing address
route
identification information
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.)
Active
Application number
CN202010614646.4A
Other languages
Chinese (zh)
Other versions
CN113452613A (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, electronic equipment 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 jump parameters of a current page; and generating a complete route 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 a corresponding relation between the page identification information and the local route address, and the jump parameter is a parameter which is included by the complete route 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 route address of a certain page is required to be acquired, the local route address of the page is acquired locally, the local route address and the jump parameter are spliced into the complete route address, the complete route address is automatically generated, the route address is not required to be required by personnel responsible for developing the client, the efficiency of acquiring the complete route address is improved, and errors are not easy to occur.

Description

Method, device, electronic equipment and storage medium for acquiring page routing address
Technical Field
The application belongs to the technical field of application programs, and particularly relates to a method, a device, electronic equipment and a storage medium for acquiring a page routing address.
Background
Each page in the client of the application has a respective routing address, while the development of the client and the development of the server are generally responsible for different developers, only the developer responsible for developing the client knows the routing address of the page that he is responsible for writing. 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 by searching the program code written by the developer in charge of developing the client, thus the efficiency is low and errors are easy to occur due to the fact that the routing address of the page is obtained manually.
Disclosure of Invention
According to the method, the device, the electronic equipment and the storage medium for acquiring the page routing address, when a user such as a server developer or an operator needs to acquire the complete routing address of a certain page, the local routing address of the page is acquired from the locally stored and preset mapping table of the client, the local routing address of the page and the jump parameter are spliced into the complete routing address, the complete routing address of the page is automatically generated, a technician responsible for developing the client is not required to ask for the routing address, the efficiency of acquiring the complete routing address is improved, and errors are not prone to happening.
An embodiment of a first aspect of the present application proposes a method for obtaining a page routing address, the method including;
receiving a route viewing request of a current page;
acquiring page identification information and jump parameters of the current page;
generating a complete route 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 route address;
the jump parameter is a parameter which is included in the complete route address and is required for displaying the page content of the current page.
In some embodiments of the present application, the generating the complete routing address of the current page according to the page identification information, the jump parameter and a preset mapping table includes:
according to the page identification information, acquiring a local routing address of the current page from a preset mapping table;
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 splicing the local routing address and the hop parameter into the complete routing address of the current page includes:
Adding a preset character at the end of the local routing address;
and adding the jump parameter after the preset character to obtain the complete route 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 jump parameter and the preset mapping table, the method further includes:
acquiring local routing address and page identification information of each page;
converting the data types of the local routing address and the page identification information of each page into preset data types;
and adopting a preset data structure to package the local routing address and the page identification information of each converted page to obtain a preset mapping table.
In some embodiments of the present application, the receiving a route view request of a current page includes:
monitoring a route checking button in real time, wherein the route checking button is a suspension button or a fixed button in a current page;
and monitoring a click event triggered by the route checking button, and determining that a route checking request of the current page is received.
In some embodiments of the present application, after the receiving the route view request of the current page, the method further includes:
Displaying a page associated with the current page, wherein a jump interface corresponding to the current page is arranged in the associated page;
acquiring a complete route 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 route address included in the complete route address;
and acquiring page contents included in the current page from the server according to the jump parameter included in the complete route address.
In some embodiments of the present application, after the generating the complete routing address of the current page, the method further includes:
and displaying a route check page, wherein the route check page comprises the complete route address of the current page.
Embodiments of the second aspect of the present application provide an apparatus for acquiring a page routing address, the apparatus comprising;
the receiving module is used for receiving a route viewing request of the current page;
the acquisition module is used for acquiring page identification information and jump parameters of the current page;
the generation module is used for generating a complete route 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 the local route address;
The jump parameter is a parameter which is included in the complete route address and is required for displaying the page content of the current page.
An embodiment of a third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement the method of the first aspect.
An embodiment of the fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application has at least 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 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 acquire the complete route address of a certain page, the client can acquire the page identification information and the jump parameter of the page locally, acquire the local route address of the page from the preset mapping table according to the page identification information of the page, and splice the local route address of the page and the jump parameter into the complete route 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 a technician responsible for developing the client for the routing address, improve the efficiency of obtaining the complete routing address, and are not easy to make mistakes.
Additional aspects and advantages of the 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 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 designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of 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 of an apparatus for obtaining a routing address of a page 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 disclosure;
fig. 8 shows a schematic diagram of a storage medium according to 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 noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
The following describes a method, an apparatus, an electronic device, and a storage medium for obtaining a page routing address according to embodiments of the present application 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 generally comprises a plurality of jump interfaces, the user can click on the certain jump interface, and the client jumps from the currently displayed page to other pages corresponding to the jump interfaces clicked by the user. The client is able to implement the page jump operation because the jump interface binds the routing addresses of other pages. And the binding relationship between the jump interface and the route address is configured by the server.
Specifically, for each page in the client, all the hop interfaces included in the page are recorded in the server, and the server may record the correspondence between the page identification information of the page and the interface identification of each hop 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 the page name "shopping cart" or the page number 001, and if the shopping cart page includes the hop interface "manage" and "settle" in the shopping cart page, the interface identification of the hop interface "manage" may be the interface name "manage" or the interface number 0010, and the interface identification of the hop interface "settle" may be the interface name "settle" or the interface number 0011. If the server records the page name as the page identification information and the interface name as the interface identification, 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 hop interface in each page, developers, operators and the like in charge of developing or maintaining the server respectively set routing addresses required to be bound by each hop 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 popularize at different times. For example, the service item to be promoted in the month is "whitening needle", and the service item to be promoted in the next month is "hump nose", the interface identifier of a certain hop interface can be bound with the routing address of the page corresponding to the "whitening needle" in the server in the month, and the interface identifier of the hop interface is regulated to be bound with the routing address of the page corresponding to the "hump nose" in the server in the month.
The different user groups may be male and female users, users under the age of 30 years old, users over the age of 30 years old, etc. For example, the business item to be promoted for the male user may be "planting hair", and the business item to be promoted for the female user may be "breast enlargement", and then a binding relationship between the user gender and the male, the interface identifier of a certain jump interface, and the routing address of the page corresponding to the "planting hair" may be set in the server, and a binding relationship between the user gender and the female, the interface identifier of the jump interface, and the routing address of the page corresponding to the "breast enlargement" may be set in the server.
After the routing address corresponding to each jump port in each page is set in the server in the above 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 determines the interface identifiers of all the hop interfaces included in the current page from the corresponding relation between the page identifier information and the interface identifiers according to the page identifier information included in the address acquisition request, then determines the route address corresponding to each hop interface in the current page from the binding relation between the interface identifiers and the route address according to the interface identifiers of the hop interfaces included in the current page, and sends the corresponding relation between the interface identifiers of each hop interface and the route address to the client. The client caches the corresponding relation between the interface identification of each jump interface included in the current page and the routing address.
When the client monitors that a user clicks a certain jump interface in the current page, a corresponding route address is acquired from the corresponding relation between the cached interface identification and the route address according to the interface identification of the clicked jump interface, and the current page is jumped to the page corresponding to the route address according to the acquired route address.
The client can realize the page jumping operation just because a developer, an operator or the like sets a routing address which is required to be bound by the jumping interface in the server. The development of the client and the development of the server are generally responsible for different technicians, and only the technician responsible for developing the client knows the routing address of the page which is responsible for writing by himself, and other staff do not know the routing address of the page of the client. Therefore, before setting the binding relation between the jump interface and the routing address, a developer or operator in charge of developing the server needs to acquire the routing address of the page of the client. In the related art, developers or operators and the like responsible for developing the server can only ask for a routing address to the technicians responsible for developing the client, and the technicians responsible for developing the client can find the routing address of the page only by searching the program codes written by the technicians, so that the routing address of the page is obtained manually, the efficiency is low, and errors are easy to occur.
Based on this, the embodiment of the application provides a method for acquiring the routing address of the page, by which the routing address of any page can be conveniently acquired without requiring a technician responsible for developing the client for the routing address of the page, and the method has high automation degree and high efficiency of acquiring the routing address.
The execution subject of the embodiment of the application is a client of the application program. Before the routing address of the client page is obtained by the method provided by the embodiment of the application, a preset mapping table needs to be configured locally at the client, and the preset mapping table stores the corresponding relationship between the page identification information of each page and the local routing address. 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 is required to be obtained from a server according to the jump parameter.
For example, a full routing address of an item detail page is "app. Soyout:// product from_action_view=xxx & hostid=xxx & pid=xxx & exposure_ext=xxx", wherein the local routing address is "app. Soyout:// product", and the skip parameter is "from_action_view=xxx & hostid=xxx & pid=xxx & exposure_ext=xxx". The method can skip to the commodity detail page only according to the local routing address of 'App. Song:// product', but only the page frame of the commodity detail page can be displayed, the specific commodity information in the commodity detail page can not be displayed, and the specific commodity information of the commodity detail page, namely the detailed information of the commodity corresponding to 'pid' in the hospital corresponding to 'hop_id', can be obtained from the server only according to the skip parameter of 'from_action_view=XXX & hop_id=XXX & pid=XXX & output_ext=XXX'.
When a technician develops the client, page identification information such as page name or page number of each page is set, and a local routing address of each page is set. According to the method and the device, the local routing address and the page identification information of each page are obtained, and the data type of the local routing address and the page identification information of each page is converted into the preset data type. The preset data type may be int (integer) or string (character type), etc. After the data type is converted, a preset data structure is adopted to package the local routing address and the page identification information of each converted page, and a preset mapping table is obtained. The preset data structure may be HashMap (hash map) or a table structure, etc.
For example, assuming that the preset data type is string type, the local routing address of the commodity detail page is 'app. Soylong:// product', the local routing address of the shopping cart page is 'app. Soylong:// cart', and the local routing address of the home page is 'app. Soylong:// home'. After the Shopping cart is converted into the string type, the page identification information of the commodity detail page can be Product detail activity, the page identification information of the Shopping cart page can be a Shopping cart, and the page identification information of the first page can be a Home page. A 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
After the preset mapping table is generated, the preset mapping table is stored in the local client. The complete routing address of any page can then be obtained by the following operations of steps 101-103, see fig. 1, specifically including:
step 101: and receiving a route viewing request of the current page.
The embodiment of the application provides an interface for a user to view the complete route address of the page in the client, and the interface is called a route viewing button, which can be a hover button. The floating button is suspended above the current page displayed by the client, and the floating button is always displayed in the display area no matter how the page jumps, so that a user can click the floating button at any time to check the complete route 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 so as to avoid the shielding of the floating button on the page content of the current page. And the client monitors a suspension button for checking the route address in the display area in real time in the process of displaying the current page, and when a user clicks the suspension button, the client monitors a click event triggered by the suspension button, so that the route checking request of the current page is determined to be received.
As shown in fig. 2, a schematic diagram of the implementation of the route view button by using a hover button is shown, in fig. 2, taking the installation of the client on the mobile phone as an example, the current page displayed by the client is an item detail page of "laser spot removal", and the hover button "route view" is hovered above the item detail page.
In order to improve the multiplexing rate of the hover button, the hover button may be set as a multi-functional viewing interface including a route viewing function, when a user clicks the hover button, the client displays a page corresponding to the hover button, where the page includes a fixed button corresponding to each function, and 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, it is determined that a route viewing request of the current page is received. As an example, the hover button is set to "other" as shown in fig. 3 (a), and when the user clicks on the hover button "other", a common tool page shown in fig. 3 (b) is displayed, which includes the fixed buttons "APP basic information", "developer option", "log view", "clean cache", and "view route address". When the user clicks the fixed button "view route address", the client determines that a route view request of the current page is received.
The embodiment of the application can also directly set a fixed button for checking the complete routing address of the page in each page, and the fixed button for checking the routing address in the current page is shown in fig. 4. 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 for viewing a route address in a current page, the client monitors a click event triggered by the fixed button, so as to determine that a route viewing request of the current page is received.
Step 102: and acquiring page identification information and jump parameters of the current page.
When a technician develops the client, page variables corresponding to each page are written, wherein the page variables comprise page identification information, jump 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 the route viewing request of the current page, the client locally acquires the page variable of the current page, and extracts the page identification information and the jump 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, etc. The skip parameter of the current page may be a parameter required for displaying page content of the current page.
Step 103: and generating a complete route address of the current page according to the page identification information of the current page, 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 route address, and the jump parameter is a parameter which is included in the complete route address and is required for displaying the page content of the current page.
And acquiring the local routing address of the current page from a locally stored preset mapping table according to the page identification information of the current page. And splicing the local routing address of the current page and the jump parameter into a complete routing address of the current page. Specifically, a preset character is added at the tail end of the local routing address, and then a jump parameter is added after the preset character, so that the complete routing address of the current page is obtained. The preset character may be "? "," - ", and" -! "etc.
For example, assuming that the current page is an item detail page, the page identification information of the item detail page is "Product detail activity", the client locally stores a preset mapping table shown in table 2. The corresponding local routing address 'app. Sounding:// product' is obtained from the preset mapping table shown in table 2 according to the page identification information 'Product detail activity'. Let preset character be "? The skip parameter obtained from the page variable of the commodity detail page is "from_action_view=xxx & hop_id=xxx & pid=xxx & exposure_ext=xxx". First, a preset character is added at the end of the local routing address to get "app.soyning:// product? ", then at the preset character"? "Add jump parameter later, get the complete route address of the commodity details page" App. from_action_view=xxx & hopid=xxx & pid=xxx & exposure_ext=xxx.
After the complete route address of the current page is generated by the method provided by the embodiment of the invention, the route checking page can be displayed, and the route checking page at least comprises the complete route address of the current page, so that a user can intuitively browse the complete route 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 as shown in fig. 5 shows page identification information of the item detail page, the page identification information in fig. 5 being exemplified by a page name, the page name of the item detail page being "Product detail activity". Also shown in fig. 5 is the full routing address "app. Source:// production from_action_view = XXX & hospital_id = XXX & pid = XXX & exposure_ext = XXX" for the item detail page.
The user clicks the "route view" of the hover button shown in fig. 2, or clicks the "view route address" of the fixed button included in the (b) diagram in fig. 3, or clicks the "view route address" of the fixed button 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 application, and jumps to display the route view page shown in fig. 5, so that the user can intuitively view the complete route address of the current page.
After a developer, an operator or 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 hop interfaces in other pages can be bound according to an operation policy, namely, the corresponding relation between the interface identifiers of the one or more hop interfaces and the complete routing address of the current page is stored in a 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, the associated page is provided with the jump interface corresponding to the current page. When the client displays the page associated with the current page, the complete route address of each hop interface binding in the associated page is obtained from the server, wherein the complete route address of the hop interface binding 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 local route address included in the complete route address bound by the jump interface jumps to the current page, and at the moment, the page frame of the current page can be obtained. And acquiring page contents included in the current page from the server according to the jump parameters included in the complete routing address, and embedding the acquired page contents into a page frame of the current page, so that the full view of the current page can be displayed.
For example, assuming that the current page is the item detail page of "laser spot removal" shown in fig. 2, the page associated with the current page is the top page, and the top page includes a jump interface "spot removal" capable of triggering a jump to the item detail page of "laser spot removal". After the user clicks the "route view" of the suspension button in fig. 2, the client automatically generates a complete route address of the product detail page of "laser spot removal" through the method provided by the embodiment of the application, and displays the complete route address of the product detail page of "laser spot removal" to the user through the route view page shown in fig. 5. The user is a developer or operator responsible for developing the server, and after the user obtains the complete routing address of the commodity detail page of 'laser spot removal', the binding relation between the jump interface 'spot removal' in the home page and the complete routing address of the commodity detail page of 'laser spot removal' is configured in the server. When a common user as a consumer browses the home page, the client displays the home page, and obtains the complete route address bound by each jump interface in the home page from the server, wherein the complete route address bound by the jump interface 'spot removing' is included, namely the complete route address of the commodity detail page of 'laser spot removing'. When the user clicks the jump port for 'spot removal', the client can jump to the commodity detail page of 'laser spot removal' shown in fig. 2 according to the complete route 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 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 acquire the complete routing address of a certain page, the client can acquire the page identification information and the jump parameter of the page locally, and can acquire the local routing address of the page from the preset mapping table only 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 a technician responsible for developing the client for the routing address, improve the efficiency of obtaining the complete routing address, and are not easy to make mistakes.
The embodiment of the application provides a device for acquiring a page routing address, which is used for executing the method for acquiring the page routing address described in the above embodiment, referring to fig. 6, and the device includes:
a receiving module 601, configured to receive a route view request of a current page;
the acquisition module 602 is configured to acquire page identification information and a skip parameter of a current page;
The generating module 603 is configured to generate a complete routing address of the current page according to the page identification information, a skip 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 skip 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 acquisition unit is used for acquiring the 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 used for adding a preset character at the tail end of the local routing address; and adding a jump parameter after the preset character to obtain the complete route address of the current page.
The apparatus further comprises: the mapping table generation module is used for acquiring the local routing address and page identification information of each page; converting the data types of the local routing address and the page identification information of each page into preset data types; and adopting a preset data structure to package the local routing address and the page identification information of each converted page 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 suspension button or a fixed button in a current page; and monitoring a click event triggered by a route check button, and determining that a route check request of the current page is received.
The apparatus further comprises: the jump module is used for displaying a page associated with the current page, and a jump interface corresponding to the current page is arranged in the associated page; acquiring a complete route address bound with a jump interface from a server; monitoring a page jump event triggered by a jump interface, and jumping to a current page according to a local route address included in the complete route address; and acquiring page contents included in the current page from the server according to the jump parameters included in the complete routing address.
The apparatus further comprises: the display module is used for displaying a route checking page, wherein the route checking page comprises a complete route address of the current page.
The device for acquiring the page routing address provided by the above embodiment of the present application and the method for acquiring the page routing address provided by the embodiment of the present application are the same inventive concept, and have the same advantages as the method adopted, operated or implemented by the application program stored therein.
The embodiment of the application also provides electronic equipment corresponding to the method for acquiring the page routing address provided by the embodiment, so as to execute the method for acquiring the page routing address. The embodiments of the present application are not limited.
Referring to fig. 7, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 7, the electronic device 2 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, the processor 200, the communication interface 203 and the memory 201 being connected by the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, where the processor 200 executes the method for acquiring a routing address of a page provided in any of the foregoing embodiments of the present application when executing the computer program.
The memory 201 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 203 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 202 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, 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 with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 200 or by instructions in the form of software. The processor 200 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks 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 a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as 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 in combination with its hardware, performs the steps of the above method.
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 are the same in inventive concept, and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
The present embodiment also provides a computer readable storage medium corresponding to the method for obtaining a page routing address provided in the foregoing embodiment, referring to fig. 8, the computer readable storage medium is shown as an optical disc 30, on which a computer program (i.e. a program product) is stored, where the computer program, when executed by a processor, performs the method for obtaining a page routing address provided in 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, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiment of the present application and the method for obtaining the routing address of the page provided by the embodiment of the present application are the same inventive concept, and have the same advantages as the method adopted, operated or implemented by the application program stored therein.
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 also be used with the teachings herein. The required structure for the construction of such devices is apparent from the description above. In addition, the present 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 the above description of specific languages is provided for disclosure of preferred embodiments of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present 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 construed as reflecting the intention that: i.e., the claimed application requires more features than are expressly recited in each claim. 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 apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units 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 but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
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 some or all of the functions of some or all of the components in the creation means of a virtual machine according to embodiments of the present application may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present application may also be embodied as an apparatus or device program (e.g., computer program and computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present application may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided 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 use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The foregoing is merely a preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the technical scope of the present application should be covered by 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 (7)

1. A method for obtaining a page routing address, the method comprising;
monitoring a route checking button in real time, wherein the route checking button is a suspension button or a fixed button in a current page;
monitoring a click event triggered by the route checking button, and determining that a route checking request of a current page is received;
obtaining a page variable of a current page from a local place, and obtaining page identification information and a jump parameter of the current page from the page variable;
acquiring a local routing address of the current page from a preset mapping table according to the page identification information, wherein the preset mapping table comprises a corresponding relation between the page identification information and the local routing address;
splicing the local routing address and the jump parameter into a complete routing address of the current page;
The jump parameter is a parameter which is included in the complete route address and is required for displaying the page content of the current page;
before acquiring the page identification information and the jump parameter of the current page from the page variable, the method further comprises:
acquiring local routing address and page identification information of each page; converting the data types of the local routing address and the page identification information of each page into preset data types; and adopting a preset data structure to package the local routing address and the page identification information of each converted page to obtain a preset mapping table, and storing the preset mapping table in the local of the client.
2. The method of claim 1, wherein the concatenating the local routing address and the hop parameter into the full routing address for the current page comprises:
adding a preset character at the end of the local routing address;
and adding the jump parameter after the preset character to obtain the complete route address of the current page.
3. The method of claim 1 or 2, 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 jump interface corresponding to the current page is arranged in the associated page;
acquiring a complete route 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 route address included in the complete route address;
and acquiring page contents included in the current page from the server according to the jump parameter included in the complete route address.
4. The method according to claim 1 or 2, further comprising, after generating the full routing address of the current page:
and displaying a route check page, wherein the route check page comprises the complete route address of the current page.
5. An apparatus for obtaining a page routing address, the apparatus comprising;
the receiving module is used for monitoring the route checking button in real time, wherein the route checking button is a suspension button or a fixed button in the current page; monitoring a click event triggered by the route checking button, and determining that a route checking request of a current page is received;
the acquisition module is used for locally acquiring a page variable of a current page and acquiring page identification information and a jump parameter of the current page from the page variable;
The generation module is used for acquiring the local routing address of the current page from a preset mapping table according to the page identification information; splicing the local routing address and the jump parameter into a complete routing address of the current page; the preset mapping table comprises a corresponding relation between page identification information and a local routing address;
the jump parameter is a parameter which is included in the complete route address and is required for displaying the page content of the current page;
the apparatus further comprises: the mapping table generation module is used for acquiring the local routing address and page identification information of each page; converting the data types of the local routing address and the page identification information of each page into preset data types; and adopting a preset data structure to package the local routing address and the page identification information of each converted page to obtain a preset mapping table, and storing the preset mapping table in the local of the client.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor runs the computer program to implement the method of any one of claims 1-4.
7. A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the method of any of claims 1-4.
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 CN113452613A (en) 2021-09-28
CN113452613B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (6)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815276B (en) * 2015-11-27 2020-06-16 阿里巴巴集团控股有限公司 Page skipping method and device

Patent Citations (6)

* 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
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

Also Published As

Publication number Publication date
CN113452613A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN113452613B (en) Method, device, electronic equipment and storage medium for acquiring page routing address
US20160124914A1 (en) Page Processing for Mobile App
CN109062563B (en) Method and device for generating page
CN104035863B (en) A kind of browser testing method and device
CN111752899B (en) Environment report generation method and device, electronic equipment and storage medium
CN106933887B (en) Data visualization method and device
TW201308209A (en) Runtime system
CN107015903B (en) Interface test program generation method and device and electronic equipment
CN107844518B (en) Method for evaluating download quantity of specified APP, data server, packaging platform and system
TW202018556A (en) Method and apparatus for performing block chain record-keeping on webpage by means of file acquisition
CN113419728A (en) Marketing page building method, marketing page building device, marketing page building equipment and storage medium
CN112307509A (en) Desensitization processing method, equipment, medium and electronic equipment
CN110908657A (en) Product generation method and device
CN110874216B (en) Complete code generation method, device, equipment and storage medium
CN108733758B (en) Hotel static data pushing method and device, electronic equipment and readable storage medium
CN111209028B (en) Data processing method and device, electronic equipment and storage medium
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
CN108897873B (en) Method and device for generating job file, storage medium and processor
CN111090825A (en) Dynamic customization method for webpage content
US11532023B2 (en) System and method for streamlining a checkout process of e-commerce websites
CN116383846A (en) Automatic recording method, device, equipment and medium of authority menu
CN116843387A (en) Application conversion attribution method and device, electronic equipment and storage medium
CN116841533A (en) Method and device for executing activity task, electronic equipment and storage medium
CN117785196A (en) Form page generation method and device with adding, deleting and checking functions
CN117435464A (en) Software testing method and device, electronic equipment and computer readable storage medium

Legal Events

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