CN109783742B - Page jump method and device for development assistance and computer equipment - Google Patents

Page jump method and device for development assistance and computer equipment Download PDF

Info

Publication number
CN109783742B
CN109783742B CN201811531519.7A CN201811531519A CN109783742B CN 109783742 B CN109783742 B CN 109783742B CN 201811531519 A CN201811531519 A CN 201811531519A CN 109783742 B CN109783742 B CN 109783742B
Authority
CN
China
Prior art keywords
page
uri
configuration file
parameter
communication protocol
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
CN201811531519.7A
Other languages
Chinese (zh)
Other versions
CN109783742A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811531519.7A priority Critical patent/CN109783742B/en
Publication of CN109783742A publication Critical patent/CN109783742A/en
Application granted granted Critical
Publication of CN109783742B publication Critical patent/CN109783742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a page jump method, a page jump device, a computer device and a storage medium for development assistance, wherein the method comprises the following steps: acquiring the URI of the page which is intended to jump; according to a pre-agreed format, analyzing the URI to obtain information: a communication protocol part and a page name part; acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file is recorded with the mapping relation between the page name part and the page address and the parameter part of the URI; and analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part. The page skip can be realized only by the URI, and the technical effect of improving the page skip speed is achieved.

Description

Page jump method and device for development assistance and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method, apparatus, computer device, and storage medium for developing an assisted page skip.
Background
In product development (APP development, etc.), for example, in the development of wireless products, we often face a large number of page jumps, and for the page bearing already determined, we can use the characteristics of the platform to complete, for example, android can use intelnt (intention) to mainly solve the communication between the components of the Android application to send messages. However, for uncertain dynamic jump requirements, some protocols are defined to describe the jump target page, such as an active pit, a wap jump native page (native page), and the like, if the jump protocol is improperly set, the jump is time-consuming and labor-consuming, and the jump target page is difficult to use, and in the case of rapid iteration of a product, a great deal of time and effort are inevitably wasted in facing an infinite new page. In addition, although the URI (uniform resource identifier ) of the page to be jumped to can be obtained, the prior art cannot jump directly to the page based on the URI alone. The prior art lacks a fast page skip solution.
Disclosure of Invention
The application mainly aims to provide a page jumping method, a device, computer equipment and a storage medium for developing assistance, which can realize page jumping only by URI and have the technical effect of improving the page jumping speed.
In order to achieve the above object, the present application proposes a page jump method for development assistance, comprising the steps of:
acquiring the URI of the page which is intended to jump;
according to a pre-agreed format, analyzing the URI to obtain information: a communication protocol part and a page name part;
acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file is recorded with the mapping relation between the page name part and the page address and the parameter part of the URI;
and analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
Further, the analyzing the URI according to the predetermined format to obtain information: a communication protocol part and a page name part, comprising:
intercepting a character string before the number/in the URI to obtain the communication protocol part;
intercept the last of the URIs? The last/number before the number and the? And obtaining the page name part by the character string between the numbers.
Further, before the step of obtaining the URI of the page that is intended to jump, the method includes:
mapping the page name part to a preset class in the configuration file in a JSON language mode, wherein the preset class comprises the page address information;
parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI;
and recording the parameter part in the URI in the configuration file in the form of an attribute command line.
Further, the step of recording the parameter part in the URI in the configuration file in the form of an attribute command line includes:
judging whether the parameter part in the URI is empty or not;
if the parameter part is not empty, recording the parameter part in the URI in the configuration file in the form of an attribute command line, and setting the type of the parameter part as string.
Further, before the step of obtaining the URI of the page that is intended to jump, the method includes:
mapping the page name part to a preset class in the configuration file in an XML language mode, wherein the preset class comprises the page address information;
Parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI;
and recording the parameter part in the URI in the configuration file in the form of an attribute command line, wherein the configuration file comprises notes.
Further, the step of obtaining the URI of the page that is intended to jump includes:
acquiring input information;
judging whether the input information is a URI which is not a URL;
and if the input information is the URI of the non-URL, marking the URI of the non-URL as the URI of the page which is intended to jump.
Further, after the step of determining whether the input information is a URI other than URL, the method includes:
if the input information is a URL, analyzing the URL to obtain a communication protocol part, a parameter part and a page address part of the URL;
and according to the communication protocol part, the parameter part and the page address part of the URL, jumping to the page which is intended to jump.
The application provides a page jumping device for development assistance, comprising:
a URI acquisition unit configured to acquire a URI of a page for which a jump is intended;
a URI parsing unit, configured to parse the URI obtaining information according to a format agreed in advance: a communication protocol part and a page name part;
A configuration file obtaining unit, configured to obtain a configuration file corresponding to the page name part according to the page name recorded in the page name part by using a preset correspondence between the page name part and the configuration file, where the configuration file records a mapping relationship between the page name part and the page address and a parameter part of the URI;
and the page jumping unit is used for analyzing the configuration file, obtaining the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
The present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
The present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
According to the page jump method, the page jump device, the computer equipment and the storage medium for development assistance, according to the communication protocol part, the page name part and the parameter part which are obtained by analyzing the URI, through the mapping relation between the page name part and the page address which are pre-stored in the configuration file, the purpose of jumping the page through the URI is realized.
Drawings
FIG. 1 is a flow chart illustrating a method for developing assisted page jumps according to an embodiment of the present application;
FIG. 2 is a block diagram schematically illustrating a structure of a page jumping apparatus for developing assist according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, an embodiment of the present application provides a page jump method for developing assistance, including the steps of:
s1, acquiring a URI of a page which is intended to jump;
s2, analyzing the URI to obtain information according to a pre-agreed format: a communication protocol part and a page name part;
s3, acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file records the mapping relation between the page name part and the page address and the parameter part of the URI;
S4, analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
The URI of the page that is intended to be jumped is obtained as described in step S1 above. The method is used for development assistance, namely the method can assist development (software development, back-end development and the like), namely the development is completed in a rapid page skip mode. The URI is preferably a non-URL URI in this embodiment, where URL refers to a uniform resource locator, a compact representation of the location and access method of resources available on the Internet, and the address of a standard resource on the Internet.
As described in the above step S2, the URI is parsed according to a predetermined format to obtain information: a communication protocol section and a page name section. The URI is displayed in a pre-agreed format, so that the information of the URI can be reversely analyzed according to the pre-agreed format to obtain the information: a communication protocol section, a page name section, and a parameter section. For example, test:// test. Remove. Com/page/testpageparam1=paramtex, is a URI of an ampere Zhuo Yemian, according to a pre-agreed format: communication protocol part? The parameter part can obtain the information of the android page through analysis: the communication protocol part is test, the page name part is testPage, and the parameter part is param1=parametext. Further, the URI may not include a domain name.
According to the page name recorded in the page name part, the configuration file corresponding to the page name part is obtained by using the corresponding relation between the preset page name part and the configuration file, wherein the mapping relation between the page name part and the page address and the parameter part of the URI are recorded in the configuration file. Wherein the mapping relation between the page name part and the page address, and the parameter part are already preset in a configuration file, the configuration file corresponds to the page name part according to a certain rule, for example, the name of the configuration file is set to include the page name. Since the URI does not necessarily include the address of the page, the page cannot be jumped by means of the URI alone. And mapping the page name in the URI to the page address in the configuration file, so that the page address information can be obtained from the page name according to the mapping relation. In addition, the configuration file also records a parameter part, so that the page can be jumped according to the combination of the page address and the parameter part.
And (4) analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part. The communication protocol is generally http, https, ftp, mailto, etc., and may be a custom communication protocol. The page can be accessed on the premise of having a communication protocol, a page address and parameters (for example, URL address, the page address and parameters are provided, so that the page can be directly accessed according to the URL address). As described above, the page address is obtained according to the mapping relation, and the jump to the page can be realized according to the parameter part and the communication protocol of the URI.
In one embodiment, the parsing the URI according to a pre-agreed format obtains information: step S2 of the communication protocol part and the page name part, includes:
s201, intercepting a character string in front of the number/in the URI to obtain the communication protocol part;
s203, intercept the last of the URIs? The last/number before the number and the? And obtaining the page name part by the character string between the numbers.
As described in the above steps, obtaining information is achieved: a communication protocol section, a page name section, and a parameter section. In the present embodiment, a format which is agreed in advance: communication protocol part? Parameter part, i.e. the URI is in the communication protocol part? The format of the parameter part is generated so that the string preceding? The character strings following the numbers represent the parameter parts, in? The last/number before the number and? Characters between the numbers represent a page name part, from which a communication protocol part, a page name part, and a parameter part can be obtained. Further, the URI may not include a domain name.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes:
s001, mapping the page name part to a preset class in the configuration file in a JSON language mode, wherein the preset class comprises the page address information;
s002, parse the URI, intercept the last one of the URIs? The character string after the number obtains the parameter part of the URI;
S003, recording the parameter part in the URI in the configuration file in the form of an attribute command line.
As described above, the mapping relationship between the page name part and the page address and the parameter part of the URI are recorded in the configuration file. For example, for a URI test// test. Demo. Com/page/testPageParam1=paramtex, using the JSON language, the page name part testPage is mapped in the configuration file to class "com. Page. Resource locator. Demo. TestActivity", and the parameter part paramam1=paramtex is described. In addition, according to a pre-agreed format: communication protocol part? A parameter section that intercepts the last of the URIs by parsing the URIs? And (5) obtaining the parameter part of the URI by the character string after the number. Wherein JSON (JavaScript Object Notation, JS object numbered musical notation) is a data exchange language of a lightweight data exchange grid. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency. And, the preset class includes the page address information. Accordingly, the page address information corresponding to the page name part can be obtained through the preset class in the configuration file. Wherein an attribute command line (a kind of record instruction) is used to record the parameter part.
In one embodiment, the step S303 of recording the parameter portion in the URI in the configuration file in the form of an attribute command line includes:
s3031, judging whether a parameter part in the URI is empty or not;
s3032, if the parameter part is not empty, the parameter part in the URI is recorded in the configuration file in the form of an attribute command line, and the type of the parameter part is set as string.
As described above, it is achieved that the parameter part is recorded in the configuration file, and the type of the parameter part is set as string (character string). For describing parameters to be transferred in the JSON language and in the form of an attribute command line, the type of the parameters must be set to string. The parameter part in the URI is not necessarily described as a parameter, and may be empty. When the parameter part is not empty, as described above, the type of parameter needs to be set to string (string) to avoid reporting errors. Thereby realizing the above arrangement.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes:
s011, mapping the page name part to a preset class in the configuration file in an XML language mode, wherein the preset class comprises the page address information;
S012, analyzing the URI, intercepting the last one of the URI? The character string after the number obtains the parameter part of the URI;
and S013, recording the parameter part in the URI in the configuration file in the form of an attribute command line, wherein the configuration file comprises notes.
As described above, it is realized that the mapping relationship between the page name part and the page address, and the parameter part are recorded in the configuration file in the XML language. For example, using XML language, the page name part testPage is mapped in the configuration file as class "com.page. Resource locator.testactivity", and the parameter part param1=paramtetext is described. In addition, according to a pre-agreed format: communication protocol part? A parameter section that intercepts the last of the URIs by parsing the URIs? And (5) obtaining the parameter part of the URI by the character string after the number. Wherein XML is an extensible markup language, a subset of a standard generic markup language, a markup language used to mark electronic documents to be structured. Since annotations are added in the XML language, understanding and possible later modifications are facilitated.
In one embodiment, the step S1 of obtaining the URI of the page that is intended to jump includes:
s101, acquiring input information;
s102, judging whether the input information is a URI which is not a URL;
and S103, if the input information is a URI of a non-URL, marking the URI of the non-URL as the URI of the page which is intended to jump.
As described above, the acquisition of URIs is implemented. When the page which is intended to jump is a page on the Internet and the URL of the page is known, the jump to the page can be realized directly through the URL. When the input information is a non-URL URI, since the page cannot be directly accessed only through the URI, the subsequent steps of resolving the URI and resolving the configuration file are required to achieve the purpose of obtaining the page address and parameters, so as to jump to the page. When the input information is a URI which is not URL, the target page can not be directly jumped to by only relying on the URI, so the URI which is not URL is marked as the URI of the page which is intended to be jumped to, and then the corresponding configuration file is acquired to obtain the corresponding page address, and the page is jumped to.
In one embodiment, after the step S102 of determining whether the input information is a URI other than URL, the method includes:
S104, if the input information is a URL, analyzing the URL to obtain a communication protocol part, a parameter part and a page address part of the URL;
s105, jumping to the page which is intended to jump according to the communication protocol part, the parameter part and the page address part of the URL.
As described above, a direct jump to the page is achieved. The URL is a uniform resource locator, which is a compact representation of the location and access method of resources available on the internet, and is the address of a standard resource on the internet. That is, the URL defines the unique address of the page, in which the communication protocol part, the parameter part and the page address part are recorded, and then the page can be directly skipped according to the communication protocol, the parameter information and the page address part attached to the URL.
According to the page jump method for development assistance, according to the communication protocol part, the page name part and the parameter part which are obtained by analyzing the URI, the purpose of jumping pages only through the URI is achieved through the mapping relation between the page name part and the page address which are pre-stored in the configuration file.
Referring to fig. 2, an embodiment of the present application provides a page jumping apparatus for developing assistance, including:
A URI obtaining unit 10 for obtaining a URI of a page intended to be jumped;
a URI parsing unit 20, configured to parse the URI according to a format agreed in advance to obtain information: a communication protocol part and a page name part;
a configuration file obtaining unit 30, configured to obtain, according to the page name recorded in the page name portion, a configuration file corresponding to the page name portion by using a preset correspondence between the page name portion and the configuration file, where the configuration file records a mapping relationship between the page name portion and the page address and a parameter portion of the URI;
and a page jump unit 40, configured to parse the configuration file, obtain the page address and the parameter portion of the URI, and jump to the page according to the page address, the parameter portion of the URI, and the communication protocol portion.
As described in element 10 above, the URI of the page that is intended to be jumped is obtained. The method is used for development assistance, namely the method can assist development (software development, back-end development and the like), namely the development is completed in a rapid page skip mode. The URI is preferably a non-URL URI in this embodiment, where URL refers to a uniform resource locator, a compact representation of the location and access method of resources available on the Internet, and the address of a standard resource on the Internet.
As described in the above unit 20, the URI is parsed according to a predetermined format to obtain information: a communication protocol section and a page name section. The URI is displayed in a pre-agreed format, so that the information of the URI can be reversely analyzed according to the pre-agreed format to obtain the information: a communication protocol section, a page name section, and a parameter section. For example, test:// test. Remove. Com/page/testpageparam1=paramtex, is a URI of an ampere Zhuo Yemian, according to a pre-agreed format: communication protocol part? The parameter part can obtain the information of the android page through analysis: the communication protocol part is test, the page name part is testPage, and the parameter part is param1=parametext. Further, the URI may not include a domain name.
As described in the above unit 30, according to the page name recorded in the page name part, a configuration file corresponding to the page name part is obtained by using a preset correspondence between the page name part and the configuration file, wherein the configuration file records the mapping relationship between the page name part and the page address and the parameter part of the URI. Wherein the mapping relation between the page name part and the page address, and the parameter part are already preset in a configuration file, the configuration file corresponds to the page name part according to a certain rule, for example, the name of the configuration file is set to include the page name. Since the URI does not necessarily include the address of the page, the page cannot be jumped by means of the URI alone. And mapping the page name in the URI to the page address in the configuration file, so that the page address information can be obtained from the page name according to the mapping relation. In addition, the configuration file also records a parameter part, so that the page can be jumped according to the combination of the page address and the parameter part.
As described in the above unit 40, the configuration file is parsed to obtain the page address and the parameter portion of the URI, and the page is skipped according to the page address, the parameter portion of the URI, and the communication protocol portion. The communication protocol is generally http, https, ftp, mailto, etc., and may be a custom communication protocol. The page can be accessed on the premise of having a communication protocol, a page address and parameters (for example, URL address, the page address and parameters are provided, so that the page can be directly accessed according to the URL address). As described above, the page address is obtained according to the mapping relation, and the jump to the page can be realized according to the parameter part and the communication protocol of the URI.
In one embodiment, the URI parsing unit 20 includes:
a communication protocol part obtaining subunit, configured to intercept a character string before the number// in the URI, and obtain the communication protocol part;
a page name part acquisition subunit for intercepting the last one of the URIs? The last/number before the number and the? And obtaining the page name part by the character string between the numbers.
As described above, obtaining information is achieved: a communication protocol section, a page name section, and a parameter section. In the present embodiment, a format which is agreed in advance: communication protocol part? Parameter part, i.e. the URI is in the communication protocol part? The format of the parameter part is generated so that the string preceding? The character strings following the numbers represent the parameter parts, in? The last/number before the number and? Characters between the numbers represent a page name part, from which a communication protocol part, a page name part, and a parameter part can be obtained. Further, the URI may not include a domain name.
In one embodiment, the apparatus includes a profile acquisition unit, the profile acquisition unit including:
a first page name part mapping subunit, configured to map, in the configuration file, the page name part to a preset class in a JSON language manner, where the preset class includes the page address information;
a first parameter part obtaining subunit, configured to parse the URI, and intercept the last one of the URIs? The character string after the number obtains the parameter part of the URI;
And the first parameter part recording subunit is used for recording the parameter part in the URI in the configuration file in the form of an attribute command line.
As described above, the mapping relationship between the page name part and the page address and the parameter part of the URI are recorded in the configuration file. For example, for a URI test// test. Demo. Com/page/testPageParam1=paramtex, using the JSON language, the page name part testPage is mapped in the configuration file to class "com. Page. Resource locator. Demo. TestActivity", and the parameter part paramam1=paramtex is described. In addition, according to a pre-agreed format: communication protocol part? A parameter section that intercepts the last of the URIs by parsing the URIs? And (5) obtaining the parameter part of the URI by the character string after the number. Wherein JSON (JavaScript Object Notation, JS object numbered musical notation) is a data exchange language of a lightweight data exchange grid. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency. And, the preset class includes the page address information. Accordingly, the page address information corresponding to the page name part can be obtained through the preset class in the configuration file.
In one embodiment, the parameter part describes a subunit, including:
a parameter part judging module, configured to judge whether a parameter part in the URI is empty;
and the parameter part setting module is used for recording the parameter part in the URI in the configuration file in the form of an attribute command line if the parameter part is not empty, and setting the type of the parameter part as string.
As described above, it is achieved that the parameter part is recorded in the configuration file, and the type of the parameter part is set as string (character string). For describing parameters to be transferred in the JSON language and in the form of an attribute command line, the type of the parameters must be set to string. The parameter part in the URI is not necessarily described as a parameter, and may be empty. When the parameter part is not empty, as described above, the type of parameter needs to be set to string (string) to avoid reporting errors. Thereby realizing the above arrangement.
In one embodiment, the apparatus includes a profile acquisition unit, the profile acquisition unit including:
a second page name part mapping subunit, configured to map, in the configuration file, the page name part to a preset class in an XML language manner, where the preset class includes the page address information;
A second parameter part obtaining subunit, configured to parse the URI, and intercept the last one of the URIs? The character string after the number obtains the parameter part of the URI;
and the second parameter part recording subunit is used for recording the parameter part in the URI in the configuration file in the form of an attribute command line, wherein the configuration file comprises notes.
As described above, it is realized that the mapping relationship between the page name part and the page address, and the parameter part are recorded in the configuration file in the XML language. For example, using XML language, the page name part testPage is mapped in the configuration file as class "com.page. Resource locator.testactivity", and the parameter part param1=paramtetext is described. In addition, according to a pre-agreed format: communication protocol part? A parameter section that intercepts the last of the URIs by parsing the URIs? And (5) obtaining the parameter part of the URI by the character string after the number. Wherein XML is an extensible markup language, a subset of a standard generic markup language, a markup language used to mark electronic documents to be structured. Since annotations are added in the XML language, understanding and possible later modifications are facilitated.
In one embodiment, the URI obtaining unit 10 includes:
an input information acquisition subunit for acquiring input information;
a URL determining subunit configured to determine whether the input information is a URI other than a URL;
and the URI determination subunit is used for marking the URI of the non-URL as the URI of the page which is intended to jump if the input information is the URI of the non-URL.
As described above, the acquisition of URIs is implemented. When the page which is intended to jump is a page on the Internet and the URL of the page is known, the jump to the page can be realized directly through the URL. When the input information is a non-URL URI, since the page cannot be directly accessed only through the URI, the subsequent steps of resolving the URI and resolving the configuration file are required to achieve the purpose of obtaining the page address and parameters, so as to jump to the page. When the input information is a URI which is not URL, the target page can not be directly jumped to by only relying on the URI, so the URI which is not URL is marked as the URI of the page which is intended to be jumped to, and then the corresponding configuration file is acquired to obtain the corresponding page address, and the page is jumped to.
In one embodiment, the apparatus comprises:
The URL analysis unit is used for analyzing the URL if the input information is the URL and obtaining a communication protocol part, a parameter part and a page address part of the URL;
and the URL jumping unit is used for jumping to the page which is intended to jump according to the communication protocol part, the parameter part and the page address part of the URL.
As described above, a direct jump to the page is achieved. The URL is a uniform resource locator, which is a compact representation of the location and access method of resources available on the internet, and is the address of a standard resource on the internet. That is, the URL defines the unique address of the page, in which the communication protocol part, the parameter part and the page address part are recorded, and then the page can be directly skipped according to the communication protocol, the parameter information and the page address part attached to the URL.
According to the page jumping device for development assistance, according to the communication protocol part, the page name part and the parameter part which are obtained by analyzing the URI, the purpose of jumping pages only through the URI is achieved through the mapping relation between the page name part and the page address which are pre-stored in the configuration file.
Referring to fig. 3, in an embodiment of the present invention, there is further provided a computer device, which may be a server, and the internal structure of which may be as shown in the drawing. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store data for developing the assisted page jump method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for developing assisted page jumps.
The processor executes the page jump method for developing assistance, and the method comprises the following steps: acquiring the URI of the page which is intended to jump; according to a pre-agreed format, analyzing the URI to obtain information: a communication protocol part and a page name part; acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file is recorded with the mapping relation between the page name part and the page address and the parameter part of the URI; and analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
In one embodiment, the parsing the URI according to a pre-agreed format obtains information: a communication protocol part and a page name part, comprising: intercepting a character string before the number/in the URI to obtain the communication protocol part; intercept the last of the URIs? The last/number before the number and the? And obtaining the page name part by the character string between the numbers.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes: mapping the page name part to a preset class in the configuration file in a JSON language mode, wherein the preset class comprises the page address information; parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI; and recording the parameter part in the URI in the configuration file in the form of an attribute command line.
In one embodiment, the step of recording the parameter part in the URI in the configuration file in the form of an attribute command line includes: judging whether the parameter part in the URI is empty or not; if the parameter part is not empty, recording the parameter part in the URI in the configuration file in the form of an attribute command line, and setting the type of the parameter part as string.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes: mapping the page name part to a preset class in the configuration file in an XML language mode, wherein the preset class comprises the page address information; parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI; and recording the parameter part in the URI in the configuration file in the form of an attribute command line, wherein the configuration file comprises notes.
In one embodiment, the step of obtaining the URI of the page intended to jump includes: acquiring input information; judging whether the input information is a URI which is not a URL; and if the input information is the URI of the non-URL, marking the URI of the non-URL as the URI of the page which is intended to jump.
In one embodiment, after the step of determining whether the input information is a URI other than URL, the method includes: if the input information is a URL, analyzing the URL to obtain a communication protocol part, a parameter part and a page address part of the URL; and according to the communication protocol part, the parameter part and the page address part of the URL, jumping to the page which is intended to jump.
It will be appreciated by persons skilled in the art that the structures shown in the drawings are only block diagrams of portions of structures that may be associated with the aspects of the application and are not intended to limit the scope of the computer apparatus to which the aspects of the application may be applied.
According to the communication protocol part, the page name part and the parameter part which are obtained by analyzing the URI, the computer equipment realizes the purpose of skipping the page only through the URI by the mapping relation between the page name part and the page address which are pre-stored in the configuration file.
An embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a page jump method for development assistance, comprising the steps of: acquiring the URI of the page which is intended to jump; according to a pre-agreed format, analyzing the URI to obtain information: a communication protocol part and a page name part; acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file is recorded with the mapping relation between the page name part and the page address and the parameter part of the URI; and analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
In one embodiment, the parsing the URI according to a pre-agreed format obtains information: a communication protocol part and a page name part, comprising: intercepting a character string before the number/in the URI to obtain the communication protocol part; intercept the last of the URIs? The last/number before the number and the? And obtaining the page name part by the character string between the numbers.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes: mapping the page name part to a preset class in the configuration file in a JSON language mode, wherein the preset class comprises the page address information; parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI; and recording the parameter part in the URI in the configuration file in the form of an attribute command line.
In one embodiment, the step of recording the parameter part in the URI in the configuration file in the form of an attribute command line includes: judging whether the parameter part in the URI is empty or not; if the parameter part is not empty, recording the parameter part in the URI in the configuration file in the form of an attribute command line, and setting the type of the parameter part as string.
In one embodiment, before the step of obtaining the URI of the page intended to jump, it includes: mapping the page name part to a preset class in the configuration file in an XML language mode, wherein the preset class comprises the page address information; parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI; and recording the parameter part in the URI in the configuration file in the form of an attribute command line, wherein the configuration file comprises notes.
In one embodiment, the step of obtaining the URI of the page intended to jump includes: acquiring input information; judging whether the input information is a URI which is not a URL; and if the input information is the URI of the non-URL, marking the URI of the non-URL as the URI of the page which is intended to jump.
In one embodiment, after the step of determining whether the input information is a URI other than URL, the method includes: if the input information is a URL, analyzing the URL to obtain a communication protocol part, a parameter part and a page address part of the URL; and according to the communication protocol part, the parameter part and the page address part of the URL, jumping to the page which is intended to jump.
According to the computer readable storage medium, according to the communication protocol part, the page name part and the parameter part which are obtained by analyzing the URI, the purpose of skipping the page only through the URI is achieved through the mapping relation between the page name part and the page address which are pre-stored in the configuration file.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the application.

Claims (6)

1. A method for developing assisted page jumps, comprising:
acquiring the URI of the page which is intended to jump;
according to a pre-agreed format, analyzing the URI to obtain information: a communication protocol part and a page name part;
Acquiring a configuration file corresponding to the page name part by utilizing a preset corresponding relation between the page name part and the configuration file according to the page name recorded by the page name part, wherein the configuration file is recorded with the mapping relation between the page name part and the page address and the parameter part of the URI;
analyzing the configuration file to obtain the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part;
the URI is analyzed according to a pre-agreed format to obtain information: a communication protocol part and a page name part, comprising:
intercepting a character string before the number/in the URI to obtain the communication protocol part;
intercept the last of the URIs? The last/number before the number and the? A character string between the numbers, obtaining the page name part;
before the step of obtaining the URI of the page intended to jump, the method comprises the following steps:
in the configuration file, mapping the page name part to a preset class in a JSON language or XML language mode, wherein the preset class comprises the page address information;
Parsing the URI, intercepting the last of the URIs? The character string after the number obtains the parameter part of the URI;
recording the parameter part in the URI in the configuration file in the form of an attribute command line;
the step of recording the parameter part in the URI in the configuration file in the form of an attribute command line includes:
judging whether the parameter part in the URI is empty or not;
if the parameter part is not empty, recording the parameter part in the URI in the configuration file in the form of an attribute command line, and setting the type of the parameter part as string.
2. The method for developing assisted page hopping of claim 1, wherein the step of obtaining the URI of the page that is intended to hop comprises:
acquiring input information;
judging whether the input information is a URI which is not a URL;
and if the input information is the URI of the non-URL, marking the URI of the non-URL as the URI of the page which is intended to jump.
3. The method for developing assisted page jumps of claim 2 wherein said step of determining whether said entered information is a URI other than a URL comprises:
If the input information is a URL, analyzing the URL to obtain a communication protocol part, a parameter part and a page address part of the URL;
and according to the communication protocol part, the parameter part and the page address part of the URL, jumping to the page which is intended to jump.
4. A page jumping apparatus for development assistance, for implementing the method of any one of claims 1 to 3, comprising:
a URI acquisition unit configured to acquire a URI of a page for which a jump is intended;
a URI parsing unit, configured to parse the URI obtaining information according to a format agreed in advance: a communication protocol part and a page name part;
a configuration file obtaining unit, configured to obtain a configuration file corresponding to the page name part according to the page name recorded in the page name part by using a preset correspondence between the page name part and the configuration file, where the configuration file records a mapping relationship between the page name part and the page address and a parameter part of the URI;
and the page jumping unit is used for analyzing the configuration file, obtaining the page address and the parameter part of the URI, and jumping to the page according to the page address, the parameter part of the URI and the communication protocol part.
5. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 3 when the computer program is executed.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
CN201811531519.7A 2018-12-14 2018-12-14 Page jump method and device for development assistance and computer equipment Active CN109783742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811531519.7A CN109783742B (en) 2018-12-14 2018-12-14 Page jump method and device for development assistance and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811531519.7A CN109783742B (en) 2018-12-14 2018-12-14 Page jump method and device for development assistance and computer equipment

Publications (2)

Publication Number Publication Date
CN109783742A CN109783742A (en) 2019-05-21
CN109783742B true CN109783742B (en) 2023-08-22

Family

ID=66496218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811531519.7A Active CN109783742B (en) 2018-12-14 2018-12-14 Page jump method and device for development assistance and computer equipment

Country Status (1)

Country Link
CN (1) CN109783742B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190492B (en) * 2019-12-25 2023-07-18 曙光信息产业(北京)有限公司 Method and device for starting KVM
CN111488151B (en) * 2020-04-17 2023-09-26 上海数禾信息科技有限公司 Page interaction method and device among Android modules
CN113452613B (en) * 2020-06-30 2023-06-06 北京新氧科技有限公司 Method, device, electronic equipment and storage medium for acquiring page routing address
CN113065079B (en) * 2021-04-13 2023-10-13 开鑫金服(南京)信息服务有限公司 Method, equipment and storage medium for realizing calling of native page based on address protocol
CN114924816B (en) * 2022-04-08 2023-06-09 青岛海尔科技有限公司 Page jump method, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016012868A1 (en) * 2014-07-24 2016-01-28 Yandex Europe Ag Method of and system for crawling a web resource
CN105354034A (en) * 2015-11-17 2016-02-24 贵阳朗玛信息技术股份有限公司 Page jump method and device for application program
CN106161656A (en) * 2016-08-31 2016-11-23 虎扑(上海)文化传播股份有限公司 The method and device that a kind of interface redirects
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN107370778A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and system for starting application
CN107506478A (en) * 2017-09-08 2017-12-22 北京京东尚科信息技术有限公司 A kind of method and apparatus for distinguishing Website page
CN107741934A (en) * 2016-08-22 2018-02-27 腾讯科技(深圳)有限公司 page processing method and page processing system
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016012868A1 (en) * 2014-07-24 2016-01-28 Yandex Europe Ag Method of and system for crawling a web resource
CN105354034A (en) * 2015-11-17 2016-02-24 贵阳朗玛信息技术股份有限公司 Page jump method and device for application program
CN107370778A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and system for starting application
CN106326396A (en) * 2016-08-19 2017-01-11 武汉斗鱼网络科技有限公司 Method and system for realizing page hopping by means of customized URL (Uniform Resource Locator) in mobile client
CN107741934A (en) * 2016-08-22 2018-02-27 腾讯科技(深圳)有限公司 page processing method and page processing system
CN106161656A (en) * 2016-08-31 2016-11-23 虎扑(上海)文化传播股份有限公司 The method and device that a kind of interface redirects
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system
CN107506478A (en) * 2017-09-08 2017-12-22 北京京东尚科信息技术有限公司 A kind of method and apparatus for distinguishing Website page

Also Published As

Publication number Publication date
CN109783742A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109783742B (en) Page jump method and device for development assistance and computer equipment
CN106933722B (en) Webpage application monitoring method, server and system
CN106022483B (en) The method and apparatus converted between machine learning model
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN108804159B (en) Javascript module loading method and preprocessing method and device thereof, and computer equipment
CN104063401B (en) The method and apparatus that a kind of webpage pattern address merges
CN109376291B (en) Website fingerprint information scanning method and device based on web crawler
CN109684607B (en) JSON data analysis method and device, computer equipment and storage medium
CN102750152B (en) Method and device of application for generating a plurality of programming languages based on descriptive language
CN108415804B (en) Method for acquiring information, terminal device and computer readable storage medium
CN107766344B (en) Template rendering method and device and browser
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN107995153B (en) Form data verification method and form data verification device
CN111736811A (en) Form data verification method, system, server and user terminal
CN108021564B (en) Method and equipment for redirecting page
US20210383059A1 (en) Attribution Of Link Selection By A User
CN113419729A (en) Front-end page building method, device, equipment and storage medium based on modularization
CN113704110A (en) Automatic testing method and device for user interface
EP2998885A1 (en) Method and device for information search
CN111695060A (en) Page switching method, device, equipment and storage medium
CN104980511A (en) Game data access method, game data access system and game web server
CN110929188A (en) Method and device for rendering server page
CN113032836B (en) Data desensitization method and apparatus
CN113626392A (en) Method and device for updating document data, electronic equipment and storage medium
CN113468443A (en) Page returning method, device, equipment and 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