CN114090921A - Page display method and device, storage medium and electronic device - Google Patents

Page display method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114090921A
CN114090921A CN202111289761.XA CN202111289761A CN114090921A CN 114090921 A CN114090921 A CN 114090921A CN 202111289761 A CN202111289761 A CN 202111289761A CN 114090921 A CN114090921 A CN 114090921A
Authority
CN
China
Prior art keywords
page
target
parameter
identifier
domain name
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.)
Pending
Application number
CN202111289761.XA
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111289761.XA priority Critical patent/CN114090921A/en
Publication of CN114090921A publication Critical patent/CN114090921A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a page display method and device, a storage medium and an electronic device, wherein the method comprises the following steps: detecting a trigger operation executed on a first page, wherein the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter positioned behind the target domain name address in a page address of the second page; responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; and under the condition of acquiring the target page parameter matched with the target parameter identifier, acquiring the page resource of the second page by using the target page parameter, and displaying the page resource of the second page through the initial page so as to display the second page. By the method and the device, the problem that page jump abnormity is caused due to the fact that the length of the page address exceeds the length limit in page jump in the related technology is solved.

Description

Page display method and device, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for displaying a page, a storage medium, and an electronic apparatus.
Background
Some front-end pages (e.g., advertising pages, activity pages, etc.) may be drained by embedding into multiple third-party applications. Embedded front-end pages often communicate by means of splicing parameters in a URL (Uniform Resource Locator). However, if the page needs more information, the URL will become very long, which may exceed the limit requirement of the browser on the URL length, resulting in an abnormal page jump, or even being unable to be embedded into the third-party application.
Currently, the length of a URL can be reduced by abbreviating a field for a parameter, for example, the productiname field is abbreviated "pn". However, the above method only reduces the length of the parameter field, but cannot reduce the length of the field value, and there is still a requirement that the length of the URL exceeds the limit of the browser on the length of the URL.
Therefore, the page jump display mode in the related art has the problem of page jump abnormity caused by the fact that the length of the page address exceeds the length limit requirement.
Disclosure of Invention
The embodiment of the application provides a page display method and device, a storage medium and an electronic device, which are used for solving the problem that page jump abnormity is caused due to the fact that the length of a page address exceeds a length limit requirement in a page jump display mode in the related art.
According to an aspect of an embodiment of the present application, there is provided a method for displaying a page, including: detecting a trigger operation executed on a first page, wherein the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter located behind the target domain name address in a page address of the second page; responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; and under the condition of acquiring the target page parameter matched with the target parameter identifier, acquiring the page resource of the second page by using the target page parameter, and displaying the page resource of the second page through the initial page so as to display the second page.
In an exemplary embodiment, after the detecting of the trigger operation performed on the first page, the method further includes: acquiring page address information of the second page embedded into the first page, wherein the page address information comprises the target domain name address and the target parameter identifier; matching preset domain name features with the page address information to obtain the target domain name address, wherein the preset domain name features are features corresponding to the domain name address; and matching preset identification features with the page address information to obtain the target parameter identification, wherein the preset identification features are features contained in the parameter identification.
In an exemplary embodiment, the obtaining the page parameter matching the target parameter identification includes: calling a first application program interface of a first service end, and transmitting the target parameter identifier into the first service end, wherein the first application program interface is an application program interface used for decompressing the parameter identifier into a corresponding page parameter; and receiving the target page parameters which are returned by the first server through the first application program interface and are matched with the target parameter identification.
In an exemplary embodiment, the obtaining the page parameter matching the target parameter identification includes: and under the condition that the target parameter identifier comprises a plurality of parameter identifiers, respectively obtaining page parameters matched with each parameter identifier in the plurality of parameter identifiers to obtain a plurality of page parameters, wherein the plurality of page parameters are combined into the page parameters matched with the target parameter identifier according to a preset sequence.
In an exemplary embodiment, before the detecting of the trigger operation performed on the first page, the method further includes: calling a second application program port of a second server, and transmitting the target page parameters to the second server, wherein the second application program interface is an application program interface used for compressing the page parameters into corresponding parameter identifiers; and receiving the target parameter identification which is returned by the second server through the second application program interface and is matched with the target page parameter.
In an exemplary embodiment, before extracting the second page address from the first page address, the method further includes: the second server receives the target page parameters transmitted by the target equipment through the second application program port; the second server generates a parameter identifier corresponding to the target page parameter to obtain the target parameter identifier; and the second server sends the target parameter identifier to the target equipment, wherein the target page parameter is stored in a database of the second server.
In an exemplary embodiment, after the obtaining of the page parameter matching the target parameter identification, the method further includes: and displaying abnormal prompt information through the initial page under the condition that the page parameter matched with the target parameter identifier is not acquired, wherein the abnormal prompt information is used for prompting data abnormality of the second page.
According to another aspect of the embodiments of the present application, there is also provided a display apparatus of a page, including: the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting a trigger operation executed on a first page, the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter positioned behind the target domain name address in a page address of the second page; the first execution unit is used for responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; and the second execution unit is used for acquiring the page resource of the second page by using the target page parameter under the condition of acquiring the target page parameter matched with the target parameter identifier, and displaying the page resource of the second page through the initial page so as to display the second page.
In one exemplary embodiment, the apparatus further comprises: an obtaining unit, configured to obtain page address information of the second page embedded in the first page after the trigger operation performed on the first page is detected, where the page address information includes the target domain name address and the target parameter identifier; the first matching unit is used for matching preset domain name features with the page address information to obtain the target domain name address, wherein the preset domain name features are features corresponding to the domain name address; and the second matching unit is used for matching preset identification features with the page address information to obtain the target parameter identification, wherein the preset identification features are features corresponding to the parameter identification.
In one exemplary embodiment, the first execution unit includes: the transmission module is used for calling a first application program interface of a first service end and transmitting the target parameter identifier into the first service end, wherein the first application program interface is an application program interface used for decompressing the parameter identifier into a corresponding page parameter; and the receiving module is used for receiving the target page parameters which are returned by the first service end through the first application program interface and are matched with the target parameter identification.
In one exemplary embodiment, the first execution unit includes: and the obtaining module is used for respectively obtaining the page parameters matched with each parameter identifier in the parameter identifiers to obtain a plurality of page parameters under the condition that the target parameter identifier comprises a plurality of parameter identifiers, wherein the page parameters are combined into the page parameters matched with the target parameter identifier according to a preset sequence.
In one exemplary embodiment, the apparatus further comprises: the incoming unit is used for calling a second application program port of a second server before the trigger operation executed on the first page is detected, and transmitting the target page parameters into the second server, wherein the second application program port is an application program port used for compressing the page parameters into corresponding parameter identifiers; and the first receiving unit is used for receiving the target parameter identifier which is returned by the second server through the second application program interface and is matched with the target page parameter.
In one exemplary embodiment, the apparatus further comprises: a second receiving unit, configured to receive, before a second page address is extracted from the first page address, the target page parameter that is transmitted by a target device through the second application port; the generating unit is used for generating a parameter identifier corresponding to the target page parameter to obtain the target parameter identifier; and the sending unit is used for sending the target parameter identifier to the target equipment, wherein the target page parameter is stored in a database of the second server.
In one exemplary embodiment, the apparatus further comprises: and the display unit is used for displaying abnormal prompt information through the initial page under the condition that the page parameter matched with the target parameter identifier is not acquired after the page parameter matched with the target parameter identifier is acquired, wherein the abnormal prompt information is used for prompting data abnormality of the second page.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned page display method when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for displaying the page through the computer program.
In the embodiment of the application, a mode that a parameter identifier is used for representing a page parameter in a page address is adopted, and a trigger operation executed on a first page is detected, wherein the trigger operation is used for triggering to jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying the page parameter located behind the target domain name address in the page address of the second page; responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; under the condition that the target page parameter matched with the target parameter identifier is obtained, the target page parameter is used for obtaining the page resource of the second page, the page resource of the second page is displayed through the initial page so as to display the second page, and the page parameter after the domain name address in the page address is represented by using the parameter identifier, so that the purpose of shortening the length of page address information embedded into other pages can be achieved, the technical effect of improving the success rate of page jump is achieved, and the problem of page jump abnormity caused by the fact that the length of the page address exceeds the length limit requirement in the page jump display mode in the related technology is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a diagram illustrating a hardware environment for an alternative page display method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for displaying an optional page according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an alternative page display method according to an embodiment of the present application;
FIG. 4 is a block diagram of an alternative page display device according to an embodiment of the present application;
fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for displaying a page is provided. Alternatively, in this embodiment, the page display method may be applied to a hardware environment formed by the terminal 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal 102 through a network, and may be configured to provide services (e.g., application services, etc.) for the terminal or a client installed on the terminal, and may be configured with a database on the server or separately from the server, and configured to provide data storage services for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.
The page display method according to the embodiment of the present application may be executed by the server 104, or executed by the terminal 102, or executed by both the server 104 and the terminal 102. The terminal 102 may execute the page display method according to the embodiment of the present application by a client installed thereon.
Taking the display method of the page in the embodiment executed by the terminal 102 as an example, fig. 2 is a schematic flow chart of a display method of an optional page according to the embodiment of the present application, and as shown in fig. 2, the flow of the method may include the following steps:
step S202, detecting a trigger operation executed on the first page, wherein the trigger operation is used for triggering to jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter located behind the target domain name address in a page address of the second page.
The page display method in this embodiment can be applied to a scene in which display is performed by jumping from one page to another page. The two pages may be pages belonging to the same application, i.e. jumping from one page of the application to another page of the application, or pages belonging to different applications, i.e. jumping from one page belonging to a first application to one page belonging to a second application. For example, the second page may be a front-end page, e.g., an advertisement page, a campaign page, etc., where the first page may be a page in a third-party application that may be used to drain from the third-party application.
Alternatively, the first page may be a page in a first application, and the first application may be an installed application program, a fast application or an installation-free applet, and the like, which may be a social application, a media application, and the like, on the terminal device. The second page may be a page in a second application, where the second application may be an installed application, a fast application, or an installation-free applet on the terminal device, and may be an e-commerce platform application, or other types of applications. The first application may connect to the network and identify and jump to a page in the second application, where the jumped page may be a detail page for an item under an accessible sub-category item catalog of the second application.
In the related art, when a page is jumped from one page to another page for display, a page jump failure may occur due to too long address information of the jumped page. In this embodiment, in order to solve the above problem, a parameter identifier may be used to identify a page parameter in a page address. For a second page embedded in the first page, the second page may be represented by a target domain name address and a target parameter identifier, where the target parameter identifier is used to identify a page parameter located after the target domain name address in a page address of the second page.
For example, the page address information of the second page in the first page is: and https:// xx.com ═ xxxx, wherein "https:// xx.com" is the target domain name address and "xxxx" is the target parameter identification.
The terminal device can display a first page, and a user can execute a trigger operation on the first page, wherein the trigger operation is used for triggering jump to a second page. The terminal device may detect the above-mentioned trigger operation, and trigger a jump from the first page to the second page. The above-described trigger operation may be a trigger operation performed on a page identification of a second page included in the first page. The page identification of the second page may be a popup, a hyperlink, or the like, and the trigger operation may be a first type of operation or a second type of operation, where the first type of operation is an operation performed by a contact-type input/output component, and the second type of operation is an operation performed by a non-contact-type input/output component.
For example, the user may perform a first type of operation, such as clicking, double-clicking, sliding, etc., on the page identifier of the second page, triggering a jump to the second page. The first type of operation may be an operation performed on an input/output component of the terminal device, such as a touch screen, a mouse, and a keyboard, which are directly contacted through limbs. For another example, the user may perform a second type of operation, such as a gesture operation, a voice input operation, and the like, on the page identifier of the second page, and trigger the jump to the second page. The second type of operation may be an operation performed on an audio acquisition component (e.g., a microphone array), an image acquisition component (e.g., a camera) of the terminal device, or an input/output component indirectly controlled by a limb.
It should be noted that, in addition to the above triggering operation performed on the terminal device, the above triggering operation may be performed on the first page by using other devices or by using a remote connection, and the execution manner of the triggering operation is not limited in this embodiment.
And step S204, responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring the page parameter matched with the target parameter identifier.
The terminal equipment responds to the trigger operation and can execute the page jump operation. The page jump operation may be performed directly or based on the authorization of the user. Before the page jump operation is executed, the terminal device may send first prompt information (for example, send the prompt information in a pop-up window or the like) to a target object to prompt whether the target object allows the page jump operation to be executed, where the target object is an object corresponding to the user. And in the case that the target object is determined to allow the page jump operation to be executed, executing the operation of jumping to the second page.
The second page may be a page opened by a client of the second application installed on the terminal device, or may be a page opened by a browser or a page engine. The terminal device may first determine whether the client of the second application is already installed, and send second prompt information to the target object (for example, send the prompt information in a pop-up window or the like) to prompt the target object whether to allow the client of the second application to open, in a case where the client of the second application is already installed. And in the case that the target object is determined to allow the client of the second application to be opened, opening the client of the second application and jumping to display a second page. And under the condition that the terminal equipment does not install the client of the second application or the target object is determined not to allow the client of the second application to be opened, opening the second page through the browser or the page engine.
When performing the page jump, the terminal device may first jump to an initial page corresponding to the second page based on the target domain name address, where the initial page may be a blank page corresponding to the target domain name address, for example, a blank advertisement page, a blank activity page, and the like. Subsequent operations after opening the initial page may be performed by a client, browser, or page engine of the second application that opened the initial page.
After jumping to the initial page, the terminal device may obtain the page parameter matching the target parameter identifier. The above-mentioned operation of acquiring the page parameter may be performed by an inquiry request carrying the target parameter identifier to the server corresponding to the second page, or may be performed by inquiring a locally stored page parameter, for example, the locally stored page parameter is a page parameter corresponding to all parameter identifiers embedded in the first page, which is acquired by the terminal device from the server in advance, and may be stored locally by the terminal device in advance.
It should be noted that, if it is determined that the target object does not allow the page jump operation to be performed, the terminal device may refuse to perform the page jump operation, and continue to display the first page. If the page parameter matched with the target parameter identifier is not acquired, error prompt information can be sent out on the terminal equipment in a pop-up window mode and the like so as to prompt page display failure and prompt the reason of the page display failure.
Step S206, under the condition that the target page parameter matched with the target parameter identification is obtained, the page resource of the second page is obtained by using the target page parameter, and the page resource of the second page is displayed through the initial page so as to display the second page.
If the page parameter matched with the target parameter identifier is obtained, that is, the target page parameter, the terminal device may obtain the page resource of the second page using the target page parameter, where the page resource may include page elements constituting the page, attributes of the page elements, and an arrangement manner of the page elements, the page elements may be characters, pictures, and the like, the attributes may be features of distinguishing elements, such as a size, a font, a color, and a resolution of the pictures, and the arrangement manner of the elements may be an arrangement manner of the page elements in the page, such as a display position, a centered display, and the like.
After the page resources of the second page are acquired, the page resources of the second page may be displayed through the initial page, for example, the page rendering may be performed by using the page resources of the second page, all the page resources may be analyzed at one time after the terminal device acquires all the page resources of the second page, and then the second page is rendered according to an analysis sequence, or after the server analyzes and groups and packages all the acquired page resources, the terminal device sequentially acquires all the grouped page resources according to a grouping sequence, and sequentially renders the second page according to the acquisition sequence, for example, renders the first group of page resources, renders the second group of page resources, and so on, so that the second page may be displayed on the terminal device.
In this embodiment, the parameter identifier is used to identify the page parameter located after the domain name address in the page address, so that the length of the page address can be greatly reduced, page jump failure caused by too long page address can be avoided, and the page jump success rate can be improved.
In addition, the page parameters behind the domain name address are represented through the parameter identification, so that the potential risk caused by the fact that the parameters are still identified in the mode of taking the parameter fields as the abbreviated fields can be avoided, and the information safety is improved.
Through the steps, a trigger operation executed on the first page is detected, wherein the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter positioned behind the target domain name address in a page address of the second page; responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; under the condition that the target page parameter matched with the target parameter identifier is obtained, the target page parameter is used for obtaining the page resource of the second page, the page resource of the second page is displayed through the initial page so as to display the second page, the problem that page jump abnormity is caused due to the fact that the length of the page address exceeds the length limit requirement in a page jump display mode in the related technology is solved, and the page jump success rate is improved.
In an exemplary embodiment, after detecting the triggering operation performed on the first page, the method further includes:
s11, acquiring page address information of a second page embedded into the first page, wherein the page address information comprises a target domain name address and a target parameter identifier;
s12, matching preset domain name features with page address information to obtain a target domain name address, wherein the preset domain name features are features corresponding to the domain name address;
and S13, matching the preset identification characteristics with the page address information to obtain the target parameter identification, wherein the preset identification characteristics are characteristics corresponding to the parameter identification.
After detecting the trigger operation, the terminal device may first obtain page address information of a second page embedded in the first page, where the page address information includes a target domain name address and a target parameter identifier. After obtaining the page address information, the terminal device may analyze the page address information, and extract the domain name address and the parameter identifier included therein, thereby obtaining the target domain name address and the target parameter identifier.
When the domain name address is resolved, the terminal device may use a preset domain name feature to match with the page address information, where the preset domain name feature may be a feature corresponding to the domain name address. Alternatively, the preset domain name feature may be an address feature included in a domain name address, and for example, may be a general top-level domain name (". com",. org ", etc.), a country top-level domain name (". cn ", etc.), or other types of address features. The preset identification feature may also be an address feature before the domain name address, or an address feature after the domain name address, e.g. the first "? ", the first"/"(not"// "), etc., which are not limited in this embodiment.
When the parameter identifier is parsed, the terminal device may use a preset identifier feature to match with the page address information, where the preset identifier feature may be a feature corresponding to the parameter identifier. Alternatively, the predetermined identification feature may be a feature included in the parameter identification, for example, a set of characters of limited length, which may be numbers, letters, or general symbols (e.g., punctuation marks). The preset identification feature may also be an address feature before the parameter identification, or an address feature before the parameter identification, for example, "id ═ or the like, which is not limited in this embodiment.
Optionally, the domain name address contained in the page address information and the parameter identifier contained in the page address information may be obtained by a regular expression. The regular expression may extract the domain name address and the parameter identifier included in the page address information through a given character string (e.g., a character string including a preset domain name feature, a character string including a preset identifier feature), and may also obtain other desired information from the page address information, which is not limited in this embodiment.
Through the embodiment, the preset domain name characteristics and the preset identification characteristics are matched with the page address information of the page, so that the required domain name address and the page identification are obtained, and the convenience of information acquisition can be improved.
In one exemplary embodiment, obtaining the page parameter matching the target parameter identification includes:
s21, calling a first application program interface of the first service end, and transmitting the target parameter identifier into the first service end, wherein the first application program interface is used for decompressing the parameter identifier into a corresponding page parameter;
s22, receiving the target page parameter matched with the target parameter identification returned by the first server through the first application program interface.
When the page parameter matching the target parameter identifier is obtained, the terminal device may query the page parameter by calling an Application Programming Interface (API) provided by the server. The server may open a parameter decompression API, which may be named uncompress, and has the following functions: receiving a parameter ID (Identifier), and inquiring corresponding parameter data from the database.
For the target parameter identifier, the terminal device may call a first API of the first service end, and transmit the target parameter identifier to the first service end. The type of the first API may be matched with a communication Protocol used by the terminal device and the first service end, and may be an HTTP (Hyper Text Transfer Protocol) interface, an RPC (Remote Procedure Call) interface, an SOAP (Simple Object Access Protocol) interface, or other types of APIs, where the type of the first API is not limited in this embodiment.
The first server may receive a target parameter identifier transmitted by the terminal device, obtain a page parameter matched with the target parameter identifier, that is, a target page parameter, by querying corresponding parameter data from the database, and return the page parameter to the terminal device through the first API. The terminal device may receive the page parameter returned by the first service end through the first API, so as to obtain the target page parameter.
According to the embodiment, the terminal device calls the parameter decompression API opened by the server to transmit the parameter identifier to the server, and the server decompresses the transmitted parameter identifier into the corresponding page parameter and returns the page parameter, so that convenience in acquiring the page parameter can be improved, and occupation of storage resources of the terminal device is reduced (the terminal device does not need to store the page parameter corresponding to the parameter identifier).
In one exemplary embodiment, obtaining the page parameter matching the target parameter identification includes:
and S31, respectively acquiring the page parameters matched with each parameter identifier in the multiple parameter identifiers under the condition that the target parameter identifier comprises the multiple parameter identifiers to obtain multiple page parameters, wherein the multiple page parameters are combined into the page parameters matched with the target parameter identifier according to a preset sequence.
In this embodiment, the page parameters after the domain name address may be represented by one or more parameter identifiers. When the page parameter matched with the target parameter identifier is acquired, the terminal device may determine the number of the acquired target parameter identifiers. Optionally, in order to determine whether the target parameter identifier includes multiple parameter identifiers, the target parameter identifier may be identified and extracted through a regular expression, if character substrings of multiple sets of parameter identifiers may be obtained, the number of parameter identifiers included in the target parameter identifier may be determined to be multiple, otherwise, the number of parameter identifiers included in the target parameter identifier is determined to be one.
If the number of the parameter identifications contained in the target parameter identification is one, the page parameters matched with the parameter identifications can be directly obtained. If the number of the parameter identifications included in the target parameter identification is multiple, the terminal device can respectively obtain the page parameters matched with each parameter identification, so that multiple page parameters are obtained. The manner of obtaining the page parameter matched with each parameter identifier may be similar to the foregoing manner, for example, the first API is called multiple times to obtain the page parameter matched with each parameter identifier, or the page parameters of multiple parameter identifiers are obtained at the same time, for example, the first API is called and multiple parameter identifiers are introduced to obtain the page parameter matched with multiple parameter identifiers, or other manners, which is not limited in this embodiment.
In order to obtain the complete page resource of the second page, it is required to ensure that the page parameter matched with each parameter identifier is obtained. In this embodiment, the page parameters matched with each parameter identifier may be sequentially acquired, if the matched page parameters can be acquired, the page parameters matched with the next parameter identifier are continuously acquired, otherwise, the page parameters matched with the target parameter identifier may be determined to be acquired, and the failure of page acquisition may be prompted by the prompt information.
After the multiple page parameters are obtained, the terminal device may directly obtain the page resources of the second page by using the multiple page parameters, or may combine the multiple page parameters according to a preset sequence to obtain target page parameters matched with the target parameter identifier, and obtain the page resources of the second page by using the target page parameters. The multiple page parameters may be combined in multiple ways, for example, the multiple page parameters may be combined sequentially according to the order of the parameter identifiers in the page address information, may also be combined sequentially according to the priority order of the identifier types, and may also be combined in other ways, which is not limited in this embodiment.
According to the embodiment, when the target parameter identifier comprises a plurality of parameter identifiers, the page parameters matched with each parameter identifier are respectively obtained, so that the page parameters matched with the target parameter identifier are obtained, and the accuracy and the flexibility of information acquisition can be improved.
In an exemplary embodiment, before detecting the trigger operation performed on the first page, the method further includes:
s41, calling a second application program port of a second server, and transmitting the target page parameters into the second server, wherein the second application program port is an application program port used for compressing the page parameters into corresponding parameter identifiers;
and S42, receiving a target parameter identifier which is returned by the second server through the second application program interface and is matched with the target page parameter.
Before embedding the page address information of the second page into the first page, the staff member associated with the first page or the second page may perform an operation of acquiring a target parameter identifier matching the target page parameter on its terminal device (the terminal device may be the first device, and the terminal device may be the second device) or other devices. For example, when the second device is executed, the second device may perform parameter compression by calling an API provided by the server. The server may open a parameter compression API, which may be named compress, and its function is as follows: receiving a piece of parameter data (for example, parameter data in json format), saving the parameter data to a database, and returning a unique ID corresponding to the parameter data in the database.
For the target page parameter, the second device may call a second API of the second server, and transfer the target page parameter into the second server. The type of the second API may be matched with a communication protocol used by the second device and the second server, and may be an HTTP interface, an RPC interface, an SOAP interface, or another type of API, where the type of the second API is not limited in this embodiment.
The second server may receive the target page parameter transmitted by the second device, store the target page parameter in the database, and return a target parameter identifier for uniquely identifying the target page parameter to the second device. The target parameter identifier may be a unique ID corresponding to the target page parameter in the database, and the unique ID corresponding to the target page parameter in the database may refer to: the ID may be identification information related to a storage location of the target page parameter in the database, and the ID may be used to quickly find the corresponding parameter data in the database. The second device may receive the parameter identifier returned by the second server through the second API, so as to obtain the target parameter identifier.
For example, before the third-party application is embedded into the page, the compress API may be called, a parameter to be spliced in the URL participating in the page is entered to obtain an id, and the id is spliced in the URL as the parameter, for example, the spliced URL is: https:// xx.com ═ xxxx, through which the corresponding page can be accessed.
According to the embodiment, the page parameters are transmitted to the server by calling the parameter compression API opened by the server, and the transmitted page parameters are compressed into the corresponding parameter identifiers and returned by the server, so that the convenience of page access can be improved, and the success rate of page jump is improved.
In an exemplary embodiment, before extracting the second page address from the first page address, the method further includes:
s51, the second server receives the target page parameters transmitted by the target device through the second application program port;
s52, the second server generates a parameter identifier corresponding to the target page parameter to obtain a target parameter identifier;
and S53, the second server sends the target parameter identifier to the target device, wherein the target page parameter is stored in a database of the second server.
For the second server, it may receive a target page parameter that is transmitted by the target device (i.e., the aforementioned second device) through the second API, where the target page parameter may include one or more page parameters. When the target page parameter includes a plurality of page parameters, the target device or the second server may split the page parameter. When receiving the target page parameter, the second server may generate a parameter identifier corresponding to the target page parameter, that is, a target parameter identifier. Under the condition that the target page parameter comprises a plurality of page parameters, the second server can obtain a plurality of parameter identifications respectively corresponding to each page parameter, and the target parameter identification comprises a plurality of parameter identifications. The second server may first store the target page parameter in the database, and generate the parameter identifier corresponding to the target page parameter in the same or similar manner as in the foregoing embodiment, which has already been described, and is not described herein again.
After the target parameter identifier is obtained, the second server sends the generated target parameter identifier to the target device, and the target page parameter may be stored in a database of the second server. When the target parameter identifier includes multiple parameter identifiers, the multiple parameter identifiers may be sorted according to the order of the multiple page parameters in the page address of the second page, or processed in other manners, so that the target device obtains the corresponding relationship between the parameter identifiers and the page parameters.
Optionally, when Data (e.g., page parameters, parameter identifiers, etc.) is transmitted between the server and the device, or between the devices, the transmitted Data may be encrypted, for example, the transmitted Data is encrypted through DEA (Data Encryption Algorithm) or other Encryption algorithms (e.g., symmetric Encryption Algorithm, asymmetric Encryption Algorithm, etc.), and the process of Data transmission is not limited in this embodiment.
According to the embodiment, the server receives the page parameters transmitted by the terminal equipment through the parameter compression API, generates the parameter identifiers corresponding to the page parameters and returns the parameter identifiers to the terminal equipment, and the page parameters are stored, so that convenience in compressing the page parameters can be improved.
In an exemplary embodiment, after obtaining the page parameter matching the target parameter identification, the method further includes:
and S61, displaying abnormal prompt information through the initial page when the page parameter matched with the target parameter identification is not acquired, wherein the abnormal prompt information is used for prompting data abnormality of the second page.
If the page parameter matched with the target parameter identifier is not acquired, the terminal device may send an exception prompting message to the target object through the initial page (for example, send the exception message in a pop-up window or other manner) to prompt that the data of the second page of the target object is abnormal.
Optionally, after the abnormal prompt information is displayed through the initial page, the terminal device may also report the target parameter identifier, for example, send the target parameter identifier to a relevant worker, and perform page maintenance processing by the worker. The related personnel may be the staff related to the first page, the staff related to the second page, or other related personnel. If the target parameter identifier includes multiple parameter identifiers, the terminal device may also report the abnormal parameter identifier, and the processing manner of the abnormal parameter identifier is not limited in this embodiment.
According to the embodiment, when the matched page parameter is not acquired, the abnormal prompt information is sent to the user to prompt the page jump abnormity, so that the user can know the page jump condition conveniently, and the convenience and timeliness of information acquisition are improved; in addition, the page can be conveniently maintained by reporting the abnormal information, and the efficiency of abnormal processing is improved.
The following explains a display method of a page in the embodiment of the present application with reference to an optional example. In this optional example, the first API is uncompressis API, the second API is compressing API, and the first service end and the second service end are the same service end.
The optional example provides a scheme for compressing URL access parameters when the URL is docked with a third-party application, where parameters spliced by the URL are compressed, a unique ID is stored in the server, and the target page reads corresponding parameters from the back end after receiving the ID, so as to avoid a situation of page jump failure caused by an excessively long URL.
With reference to fig. 3, the flow of the page display method in this alternative example may include the following steps:
in step S302, the third party application calls an API.
For a target page to be embedded in a third-party application (the page is a page of the target application), the third-party application may collect parameter data (i.e., page parameters) in a URL of the target page, call a compression parameter api, i.e., a compression api, of the server, and transmit the parameter data to the server.
And step S304, the server compresses the parameters and returns the ID.
After receiving the page parameters, the server stores the page parameters into the database and returns corresponding ID, wherein all the page parameters are compressed into one ID.
Step S306, the ID is spliced to the URL.
After the third-party application obtains the ID returned by the server, the ID may be spliced to the URL of the target page (after being spliced to the domain name address of the target page), a new URL is obtained, and the new URL is embedded into the third-party application, for example, a certain page or certain pages of the third-party application.
Step S308, reading the ID by the target page and calling the API.
If the URL of the target page embedded in the third party application is triggered (visited), the third party application may pass the domain name address and ID of the target page to the target application. And the target application opens a target page by using the domain name address, the target page is a blank page at the moment, and the page content needs to be obtained by using the page parameter. The target page may read the ID and call the uncompressis api of the server, passing in the read ID.
Step S310, the server receives the ID and inquires the parameters corresponding to the ID.
The server can receive the ID transmitted by the target page, and query the page parameters corresponding to the ID in the database, that is, decompress the ID into all correct parameters.
In step S312, the server determines whether the query is successful, if so, performs step S314, otherwise, performs step S316.
In step S314, the target page obtains the real page parameters.
And if the query is successful, the server returns the page parameters corresponding to the ID to the target page. The target page can acquire correct page parameters and execute subsequent operations.
And step S316, returning abnormal information and prompting the user.
If the query fails (i.e., if the ID is abnormal), the server may return abnormal information to the user, prompting the user that the data is abnormal.
By the optional example, all needed parameters of the page are compressed into one ID by compressing the page parameters, and the page is jumped in a mode that the ID represents the page parameters, no matter how long the parameters are, only one ID needs to be transmitted finally, so that the length of the URL can be shortened, the condition that the page jump fails due to overlong length of the URL is avoided, and the success rate of page access is improved; in addition, parameters are represented by the ID, clear text transmission is avoided, the ID cannot be identified by a user, potential risks caused by the fact that the page parameters are identified can be avoided, and the safety of the page is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present application.
According to another aspect of the embodiment of the application, a display device of the page for implementing the display method of the page is also provided. Fig. 4 is a block diagram of a display device for displaying an optional page according to an embodiment of the present application, and as shown in fig. 4, the display device may include:
a detecting unit 402, configured to detect a trigger operation performed on a first page, where the trigger operation is used to trigger a jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used to identify a page parameter located after the target domain name address in a page address of the second page;
a first executing unit 404, connected to the detecting unit 402, configured to jump to an initial page corresponding to the second page based on the target domain name address in response to the trigger operation, and obtain a page parameter matching the target parameter identifier;
and the second executing unit 406, connected to the first executing unit 404, is configured to, when a target page parameter matching the target parameter identifier is obtained, obtain a page resource of the second page using the target page parameter, and display the page resource of the second page through the initial page, so as to display the second page.
It should be noted that the detecting unit 402 in this embodiment may be configured to execute the step S202, the first executing unit 404 in this embodiment may be configured to execute the step S204, and the second executing unit 406 in this embodiment may be configured to execute the step S206.
Detecting a trigger operation mode executed on a first page through the module, wherein the trigger operation is used for triggering to jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter positioned behind the target domain name address in a page address of the second page; responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier; under the condition that the target page parameter matched with the target parameter identifier is obtained, the target page parameter is used for obtaining the page resource of the second page, the page resource of the second page is displayed through the initial page so as to display the second page, the problem that page jump abnormity is caused due to the fact that the length of the page address exceeds the length limit requirement in a page jump display mode in the related technology is solved, and the page jump success rate is improved.
In an exemplary embodiment, the apparatus further includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring page address information of a second page embedded into a first page after detecting a trigger operation executed on the first page, and the page address information comprises a target domain name address and a target parameter identifier;
the first matching unit is used for matching preset domain name features with page address information to obtain a target domain name address, wherein the preset domain name features are features corresponding to the domain name address;
and the second matching unit is used for matching the preset identification features with the page address information to obtain the target parameter identification, wherein the preset identification features are features corresponding to the parameter identification.
In one exemplary embodiment, the first execution unit includes:
the system comprises an incoming module, a first service end and an incoming module, wherein the incoming module is used for calling a first application program interface of the first service end and transmitting a target parameter identifier into the first service end, and the first application program interface is used for decompressing the parameter identifier into a corresponding page parameter;
and the receiving module is used for receiving the target page parameters which are returned by the first service end through the first application program interface and are matched with the target parameter identification.
In one exemplary embodiment, the first execution unit includes:
the acquisition module is used for respectively acquiring the page parameters matched with each parameter identifier in the parameter identifiers to obtain a plurality of page parameters under the condition that the target parameter identifier comprises the parameter identifiers, wherein the page parameters are combined into the page parameters matched with the target parameter identifier according to a preset sequence.
In an exemplary embodiment, the apparatus further includes:
the system comprises an incoming unit, a first service end and a second service end, wherein the incoming unit is used for calling a first application program port of the first service end before detecting a trigger operation executed on a first page and transmitting a target page parameter into the first service end, and the first application program port is used for compressing the page parameter into a corresponding parameter identifier;
and the first receiving unit is used for receiving a target parameter identifier which is returned by the second server through the second application program interface and is matched with the target page parameter.
The above-mentioned incoming unit and the first receiving unit are program modules located on a target device, and the target device may be an application server to which the first page belongs, or other devices.
In an exemplary embodiment, the apparatus further includes:
the second receiving unit is used for receiving target page parameters transmitted by the target equipment through a second application program port before the second page address is extracted from the first page address;
the generating unit is used for generating a parameter identifier corresponding to the target page parameter to obtain a target parameter identifier;
and the sending unit is used for sending the target parameter identifier to the target equipment, wherein the target page parameter is stored in a database of the second server.
The second receiving unit, the generating unit and the sending unit may be program modules located on the second server.
In an exemplary embodiment, the apparatus further includes:
and the display unit is used for displaying abnormal prompt information through the initial page under the condition that the page parameter matched with the target parameter identifier is not acquired after the page parameter matched with the target parameter identifier is acquired, wherein the abnormal prompt information is used for prompting data abnormality of the second page.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of any one of the page display methods in this embodiment of the present application.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, detecting a trigger operation executed on the first page, wherein the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter located behind the target domain name address in the page address of the second page;
s2, responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier;
and S3, under the condition that the target page parameter matched with the target parameter identifier is obtained, obtaining the page resource of the second page by using the target page parameter, and displaying the page resource of the second page through the initial page to display the second page.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the method for displaying a page, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 5 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 5, including a processor 502, a communication interface 504, a memory 506, and a communication bus 508, wherein the processor 502, the communication interface 504, and the memory 506 are communicated with each other via the communication bus 508, and wherein,
a memory 506 for storing a computer program;
the processor 502, when executing the computer program stored in the memory 506, implements the following steps:
s1, acquiring target context information corresponding to a plurality of interfaces to be tested, wherein the target context information is used for indicating the display execution sequence of a plurality of pages to be tested;
s2, sequentially calling each interface to be tested in the plurality of interfaces to be tested according to the test execution sequence;
and S3, determining the display execution result of each to-be-tested page according to the return result of each to-be-tested interface and the expected result of each to-be-tested interface, wherein the display execution result of each to-be-tested page is used for indicating whether each to-be-tested interface is abnormal or not.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, the memory 506 may include, but is not limited to, the detection unit 402, the first execution unit 404, and the second execution unit 406 in the display device including the page. In addition, other module units in the display device of the above page may also be included, but are not limited to this, and are not described in detail in this example.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration, and the device implementing the display method of the page may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 5 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for displaying a page, comprising:
detecting a trigger operation executed on a first page, wherein the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter located behind the target domain name address in a page address of the second page;
responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier;
and under the condition of acquiring the target page parameter matched with the target parameter identifier, acquiring the page resource of the second page by using the target page parameter, and displaying the page resource of the second page through the initial page so as to display the second page.
2. The method of claim 1, wherein after the detecting the triggering operation performed on the first page, the method further comprises:
acquiring page address information of the second page embedded into the first page, wherein the page address information comprises the target domain name address and the target parameter identifier;
matching preset domain name features with the page address information to obtain the target domain name address, wherein the preset domain name features are features corresponding to the domain name address;
and matching preset identification features with the page address information to obtain the target parameter identification, wherein the preset identification features are features corresponding to the parameter identification.
3. The method of claim 1, wherein the obtaining page parameters matching the target parameter identification comprises:
calling a first application program interface of a first service end, and transmitting the target parameter identifier into the first service end, wherein the first application program interface is an application program interface used for decompressing the parameter identifier into a corresponding page parameter;
and receiving the target page parameters which are returned by the first server through the first application program interface and are matched with the target parameter identification.
4. The method of claim 1, wherein the obtaining page parameters matching the target parameter identification comprises:
and under the condition that the target parameter identifier comprises a plurality of parameter identifiers, respectively obtaining page parameters matched with each parameter identifier in the plurality of parameter identifiers to obtain a plurality of page parameters, wherein the plurality of page parameters are combined into the page parameters matched with the target parameter identifier according to a preset sequence.
5. The method of claim 1, wherein prior to the detecting the triggering operation performed on the first page, the method further comprises:
calling a second application program port of a second server, and transmitting the target page parameters to the second server, wherein the second application program interface is an application program interface used for compressing the page parameters into corresponding parameter identifiers;
and receiving the target parameter identification which is returned by the second server through the second application program interface and is matched with the target page parameter.
6. The method of claim 5, wherein before extracting the second page address from the first page address, the method further comprises:
the second server receives the target page parameters transmitted by the target equipment through the second application program port;
the second server generates a parameter identifier corresponding to the target page parameter to obtain the target parameter identifier;
and the second server sends the target parameter identifier to the target equipment, wherein the target page parameter is stored in a database of the second server.
7. The method according to any one of claims 1 to 6, wherein after said obtaining page parameters matching said target parameter identification, said method further comprises:
and displaying abnormal prompt information through the initial page under the condition that the page parameter matched with the target parameter identifier is not acquired, wherein the abnormal prompt information is used for prompting data abnormality of the second page.
8. A display device for a page, comprising:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting a trigger operation executed on a first page, the trigger operation is used for triggering jump to a second page, the second page is represented by a target domain name address and a target parameter identifier, and the target parameter identifier is used for identifying a page parameter positioned behind the target domain name address in a page address of the second page;
the first execution unit is used for responding to the trigger operation, jumping to an initial page corresponding to the second page based on the target domain name address, and acquiring a page parameter matched with the target parameter identifier;
and the second execution unit is used for acquiring the page resource of the second page by using the target page parameter under the condition of acquiring the target page parameter matched with the target parameter identifier, and displaying the page resource of the second page through the initial page so as to display the second page.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202111289761.XA 2021-11-02 2021-11-02 Page display method and device, storage medium and electronic device Pending CN114090921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111289761.XA CN114090921A (en) 2021-11-02 2021-11-02 Page display method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111289761.XA CN114090921A (en) 2021-11-02 2021-11-02 Page display method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114090921A true CN114090921A (en) 2022-02-25

Family

ID=80298587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111289761.XA Pending CN114090921A (en) 2021-11-02 2021-11-02 Page display method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114090921A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150645A (en) * 2022-06-28 2022-10-04 海信视像科技股份有限公司 Display device and display method of screen projection function page
CN115334154A (en) * 2022-10-12 2022-11-11 阿里健康科技(杭州)有限公司 Page access method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150645A (en) * 2022-06-28 2022-10-04 海信视像科技股份有限公司 Display device and display method of screen projection function page
CN115334154A (en) * 2022-10-12 2022-11-11 阿里健康科技(杭州)有限公司 Page access method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10635735B2 (en) Method and apparatus for displaying information
CN114090921A (en) Page display method and device, storage medium and electronic device
CN110798380B (en) Data acquisition method, system, device, test equipment and test server
CN110099047B (en) Registration information processing method and device, computer equipment and storage medium
CN110069413B (en) Test data communication, test method, device, equipment and storage medium
US11244153B2 (en) Method and apparatus for processing information
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN111177623A (en) Information processing method and device
CN105515887A (en) Application test method, server and system
CN113923144A (en) Service test system, method, electronic device and storage medium
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium
CN112965711A (en) Job test method and apparatus, electronic device, and storage medium
CN105224870A (en) Suspected virus applies the method and apparatus uploaded
CN110113296B (en) Method for processing data
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN112671615B (en) Method, system and storage medium for collecting front-end user operation behavior data
CN112817816B (en) Embedded point processing method and device, computer equipment and storage medium
US20190147860A1 (en) Method and apparatus for identifying information
CN112765022B (en) Webshell static detection method based on data stream and electronic equipment
US11258845B2 (en) Browser management system, browser management method, browser management program, and client program
CN113672460A (en) Service monitoring method and device
CN111782291A (en) Test page starting method and device
CN106843884B (en) Query data processing 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