Webpage access method and device

By parsing and address generation of access addresses that do not contain protocol fields within the application, the problem of online access of web pages in the existing technology is solved, and web page access between different operating systems is realized, accessing access between accesses and development efficiency is improved.

CN119598053APending Publication Date: 2025-03-11ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411746627.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

During the access process of embedded web pages in the application, the prior art is difficult to effectively process access addresses that do not contain protocol fields, resulting in the inability to directly realize online access to the web page.

Method used

By obtaining the access address, if the protocol field is not included, the address field is parsed, the address type is determined, and the web page address is generated according to the parsing results, so that the web page view interface can be called to obtain web page data and load and display.

Benefits of technology

It realizes online access to web pages of different types of access addresses within the application, improves access success rate and reduces development costs, especially in web page access implementations between different operating systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598053A_ABST
    Figure CN119598053A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a webpage access method and device.The webpage access method comprises the steps that in the webpage access process in an application program, an access address for webpage access is obtained, if the access address does not contain a protocol field, an address field contained in the access address is analyzed, and if the address field does not contain the protocol field, the address field is sent to the application program; and a webpage address is generated according to an address generation mode corresponding to an analysis result, a webpage view interface is called by taking the webpage address as an input parameter to obtain webpage data, and webpage loading display is performed, so that webpage access processing is realized in the application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of web page technology, and in particular to a web page access method and device. Background Art

[0002] As the Internet continues to develop and spread, the use of Internet-based applications is becoming more and more widespread. Many applications often have web pages embedded in them. When users access embedded web pages in an application, the application obtains the web page data of the embedded web page from the web server, and loads and displays the embedded web page in the application based on the obtained web page data. However, as the application of embedded web pages in applications becomes more and more widespread in actual scenarios, higher requirements are placed on the access to the embedded web pages of applications. Summary of the invention

[0003] One or more embodiments of the present specification provide a web page access method, which is applied to an application program, and the method includes: obtaining an access address for accessing a web page in the application program. If the access address does not contain a protocol field, parsing the address field contained in the access address to obtain a parsing result. Generate a web page address according to the address generation method corresponding to the parsing result. Call a web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

[0004] One or more embodiments of the present specification provide a web page access device that runs in an application, the device comprising: an address acquisition module, configured to obtain an access address for accessing a web page within the application. An address resolution module, configured to resolve an address field contained in the access address to obtain a resolution result if the access address does not contain a protocol field. An address generation module, configured to generate a web page address in accordance with an address generation method corresponding to the resolution result. An interface call module, configured to call a web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

[0005] One or more embodiments of the present specification provide a web page access device, including: a processor; and a memory configured to store computer executable instructions, wherein when the computer executable instructions are executed, the processor: obtains an access address for accessing a web page within an application. If the access address does not contain a protocol field, the address field contained in the access address is parsed to obtain a parsing result. A web page address is generated according to the address generation method corresponding to the parsing result. The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

[0006] One or more embodiments of the present specification provide a computer-readable storage medium for storing computer-executable instructions, which implement the following process when executed: obtain an access address for accessing a web page within an application. If the access address does not contain a protocol field, parse the address field contained in the access address to obtain a parsing result. Generate a web page address according to the address generation method corresponding to the parsing result. Call a web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor. Figure 1 A schematic diagram of an implementation environment of a web page access method provided by one or more embodiments of this specification; Figure 2 A processing flow chart of a web page access method provided by one or more embodiments of this specification; Figure 3 A processing flow chart of a web page access method applied to a web page access scenario provided by one or more embodiments of this specification; Figure 4 A schematic diagram of an embodiment of a web page access device provided by one or more embodiments of this specification; Figure 5 A schematic diagram of the structure of a web page access device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0008] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0009] The web page access method provided by one or more embodiments of this specification can be applied to the implementation environment of the application program. Figure 1 , the implementation environment at least includes: A user terminal 101 with an application installed, and a web server 102; The user terminal 101 is used to access the webpage embedded in the application. The user terminal 101 may be a mobile phone, a personal computer, a tablet computer, an e-book reader, a device for information interaction based on VR (Virtual Reality), a vehicle terminal, an IoT device, a wearable smart device, a laptop computer, a desktop computer, etc. The web page server 102 is used to cooperate with the user terminal 101 to access the web page embedded in the application. The web page server 102 may be a server deployed for access processing of the web page embedded in the application.

[0010] In this implementation environment, during the process of accessing a web page in an application installed on the user terminal 101, the access address for accessing the web page is first obtained. If the access address does not contain a protocol field, the address field contained in the access address is parsed to obtain a parsing result. The address generation method is determined according to the parsing result of the address field, and the web page address is generated according to the address generation method. Finally, the web page view interface is called with the web page address as the input parameter of the interface call, and the web page data is obtained from the web page server 102 through the web page view interface. The web page view interface loads and displays the web page in the application according to the web page data, thereby realizing online access to the web page embedded in the application.

[0011] One or more embodiments of a web page access method provided in this specification are as follows: Reference Figure 2 The web page access method provided in this embodiment is applied to an application program, and the method specifically includes steps S202 to S208.

[0012] Step S202, obtaining an access address for accessing a web page within the application.

[0013] In this embodiment, web page access in an application refers to the process of a user accessing a web page embedded in an application, such as a user accessing a web page corresponding to the control by clicking a control configured on the homepage of the application, or a user accessing a web page corresponding to the web page element by clicking a web page element in a web page embedded in an application. The access address refers to the address information of the web page embedded in the application (the target access web page) to be accessed, and the access address may specifically be the web page path of the target access web page, such as the relative path of the target access web page, or the access address may also be the web page address of the target access web page.

[0014] In specific implementation, in the process of accessing a web page within an application, the access address for accessing the web page is obtained, and the access address of the target accessed web page can be read from the program code of the application. Here, the purpose of obtaining the access address is to access the web page online within the application. Online access requires an access method for online addressing access to the web page through the network. Specifically, it is an access method that requires obtaining web page data from a web server through the network and loading and displaying the web page within the application. Online access is different from offline access. Offline access refers to an access method for addressing and accessing a web page locally in the application. Specifically, web page data can be obtained from the offline web page data packet of the application and loaded and displayed within the application.

[0015] In this embodiment, based on the access address obtained, corresponding web page access processing is performed according to the specific content contained in the access address. Specifically, the web page access processing can be performed based on whether the access address contains a protocol field. For example, the web page access processing can be performed by detecting whether the access address contains the hypertext transfer protocol field "http".

[0016] Specifically, if the access address contains a protocol field, it indicates that the obtained access address can realize online access to the web page, and the web page data can be obtained based on the access address and the web page can be loaded and displayed. In an optional implementation provided by this embodiment, if the access address contains a protocol field, the web page view interface is called with the access address as an input parameter to obtain the web page data and load and display the web page; optionally, the web page data is stored in the web page data packet of the application stored in the web server.

[0017] If the access address does not contain the protocol field, it is possible that the access address is missing or the obtained access address is another type of access address. For example, the currently obtained access address is the relative path of the target access web page. In this case, online access to the target access web page cannot be achieved directly based on the access address. The web page access processing is performed through the processing method provided in the following steps S204 to S208.

[0018] In actual applications, during the application development process, it is considered that the implementation methods of accessing web pages embedded in applications may be different in different operating systems. For example, the implementation method of accessing web pages embedded in applications in a certain operating system is an offline access method, and the offline web page data package is configured in the application to support accessing web pages embedded in the application in the operating system; the implementation method of accessing web pages embedded in applications in another operating system is an online access method, and it is necessary to obtain web page data from the web page data package of the application stored in the web server to load and display the web page; In this case, if the implementation code of the embedded web page of the application is to be developed for different operating systems respectively, a large development cost is required. In view of this, in order to improve the development efficiency of accessing the embedded web page of the application in different operating systems, the web page data can be reused to reduce the development cost. For example, under a certain operating system, if the offline access is configured in the application under the premise of configuring the offline web page data packet in the application, if the online access of the embedded web page of the application needs to be implemented in another operating system, the offline web page data packet can be reused, or part of the content of the offline web page data packet can be reused. Optionally, the web page data packet includes the offline web page data packet of the second application; the application and the second application are the same application running on different operating systems. In addition, the web page data packet can also be edited and obtained through the offline web page data packet of the second application.

[0019] In the specific execution process, when accessing the web page embedded in the application, the access address can be detected based on the access address obtained, so as to enhance the security of web page access by detecting the access address. Specifically, in an optional implementation manner provided by this embodiment, the access address is detected in the following manner: Check whether the address field contained in the access address meets the web page address rules; If yes, it indicates that the access address of the target web page to be accessed currently meets the web page address rule, and the next step of processing is performed. The next step of processing may be the following step S204: if the access address does not contain the protocol field, the address field contained in the access address is parsed to obtain the parsing result. In addition, the next step of processing may also be that if the access address contains the protocol field, the web page view interface is called with the access address as an input parameter to obtain the web page data and load and display the web page; If not, it indicates that the access address of the target web page to be accessed does not conform to the web page address rule. In this case, a web page access failure reminder can be issued or no processing can be performed.

[0020] Step S204: if the access address does not include a protocol field, the address field included in the access address is parsed to obtain a parsing result.

[0021] In this embodiment, if the obtained access address does not contain a protocol field, in this case, online access to the target access web page cannot be achieved directly based on the access address. In order to achieve online access to the target access web page, in this step, the address field contained in the access address is parsed to obtain a parsing result, and then a web page address that can achieve online access to the target access web page is generated based on the parsing result.

[0022] In an optional implementation manner provided by this embodiment, parsing the address field included in the access address to obtain a parsing result includes: It is determined whether the address field contains a resource address field. If so, it is determined that the address type of the access address is the first address type; if not, it is determined that the address type of the access address is the second address type.

[0023] Among them, the resource address field refers to the address field used to represent the resource data of the target access web page, such as the resource address field of " / www / "; according to whether the address field contains two situations corresponding to the resource address field, the parsing result includes: the address type of the access address is the first address type, or the address type of the access address is the second address type.

[0024] During the specific execution process, in the process of judging whether the address field contains the resource address field, considering that the resource address field often appears in the first field of the web page address, therefore, in order to improve the parsing efficiency of the address field contained in the access address, it is possible to judge whether the address field contains the resource address field by judging whether the first field of the address field is the resource address field.

[0025] Step S206: Generate a webpage address according to the address generation method corresponding to the analysis result.

[0026] In specific implementation, based on the parsing result obtained by parsing the address field contained in the access address as mentioned above, this step generates a web page address according to the address generation method corresponding to the parsing result. In this way, when it is impossible to directly access the web page online within the application based on the access address, the web page address is generated according to the address generation method corresponding to the parsing result. The generated web page address can be used to implement online web access within the application, thereby helping to improve the access success rate of online web access within the application.

[0027] As described above, the parsing result obtained by parsing the address field included in the access address includes: the address type of the access address is the first address type, or the address type of the access address is the second address type. The following describes the specific process of generating the web page address under these two parsing results respectively.

[0028] (1) The address type of the access address is the first address type In the case where the access address is of the first address type, that is, the address field included in the access address does not include the resource address field, in order to implement online web page access in the application, a web page address for online web page access is generated based on the access address; in an optional implementation manner provided by this embodiment, the web page address is generated according to the address generation method corresponding to the parsing result, including: If the address type of the accessed address is the first address type, deleting the resource address field in the address field to obtain the first address field; A web page address is generated based on the first address field, a built-in domain name field of the application program, and a preset protocol field.

[0029] Among them, the application's built-in domain name field refers to the field of the domain name built into the application. When the target accessed web page is a web page embedded in the application, the application's built-in domain name field can be the field of the domain name of the target accessed web page; the preset protocol field refers to the transmission protocol field used to achieve online access to the web page, such as the preset protocol field of "https: / / ".

[0030] For example, the access address of the target access webpage read from the code file of the application is: " / www / about.04d0497f.css", and the access address does not contain the transmission protocol field "http", and further by judging whether the access address contains the resource address field " / www / ", it is determined that the type of the access address is the first address type; Thereafter, in the process of generating the web page address of the target access web page according to the address generation method corresponding to the first address type, the resource address field " / www / " in " / www / about.04d0497f.css" is first deleted, and the first address field obtained is "about.04d0497f.css", and then the web page address is generated based on the preset protocol field, the built-in domain name field and the first address field. Specifically, the web page address is generated in the manner of "preset protocol field + built-in domain name field + first address field". If the preset protocol field is "https: / / " and the built-in domain name field of the application is "www.fans.com", the generated web page address is: "https: / / www.fans.com / about.04d0497f.css".

[0031] (2) The address type of the access address is the second address type In the case where the access address is of the second address type, that is, the address field included in the access address includes the resource address field, in order to implement online web page access in the application, a web page address for online web page access is generated from the access address including the resource address field; in another optional implementation manner provided by this embodiment, the web page address is generated according to the address generation method corresponding to the parsing result, including: If the address type of the access address is the second address type, reading the webpage domain name field of the previous accessed webpage of the target accessed webpage; The web page address is generated according to the web page domain name field, access address and preset protocol field of the previously visited web page.

[0032] The previously visited web page of the target visited web page refers to the web page of the currently displayed application. Optionally, the previously visited web page includes: a visited web page under the built-in domain name of the application. In addition, in actual applications, it is possible that a user jumps from one website to another during web page access within the application. Accordingly, the domain name will also change during the process of jumping from one website to another, such as jumping from the built-in domain name of the application to a third-party domain name (other domain names other than the built-in domain name). In this case, the previously visited web page can also be a visited web page under the third-party domain name.

[0033] During the specific execution process, in the process of generating a web page address based on the web page domain name field, access address and preset protocol field of the previously visited web page, in order to determine whether the web page domain name field of the previously visited web page is the domain name field of the built-in domain name or the domain name field of the third-party domain name, and then determine the web page domain name field used to generate the web page address, it can be determined whether the web page domain name of the previously visited web page is the same as the built-in domain name of the application. If they are the same, it indicates that no domain name jump occurs during the web page access process, and the web page address is generated according to the built-in domain name field, access address and preset protocol field of the application; if they are not the same, it indicates that no domain name jump occurs during the web page access process, and the web page address is generated according to the domain name field, access address and preset protocol field of the third-party domain name.

[0034] For example, the access address of the target access webpage read from the code file of the application is: "about.04d0497f.css", and the access address does not contain the transmission protocol field "http", and further by judging whether the access address contains the resource address field " / www / ", it is determined that the type of the access address is the second address type; Thereafter, in the process of generating the webpage address of the target access webpage according to the address generation method corresponding to the second address type, the webpage domain name field of the target access webpage is first read, and then it is determined whether the webpage domain name field is the same as the built-in domain name field of the application. If they are the same, the webpage address is generated based on the preset protocol field, the built-in domain name field and the access address. If the preset protocol field is "https: / / " and the built-in domain name field of the application is "www.fans.com", the generated webpage address is: "https: / / www.fans.com / about.04d0497f.css"; If the web page domain name field is different from the built-in domain name field of the application, the web page address is generated based on the preset protocol field, the web page domain name field and the access address. If the web page domain name field is the domain name field of the third-party domain name "www.xxfans.com", the generated web page address is: "https: / / www.xxfans.com / about.04d0497f.css".

[0035] Step S208, calling the web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

[0036] In specific implementation, during the process of online access to a web page based on the web page address, the web page data is obtained and the web page is loaded and displayed by calling the web view interface (WebView interface). Specifically, the interface call of the web view interface is made with the web page address as the interface input parameter. The web view interface responds to the call of the application, obtains the web page data corresponding to the web page address from the web server, that is, the web page data of the target accessed web page, and loads and displays the web page in the application based on the obtained web page data.

[0037] Optionally, the web page data is stored in a web page data packet of an application stored in a web page server; the web page server obtains the access address by parsing the web page address, and reads the web page data in the web page data packet based on the access address.

[0038] During the specific execution process, an access request carrying a web page address is sent to a web server by calling the web view interface. After receiving the access request, the web server obtains the access address by parsing the web page address carried in the access request, and reads the web page data corresponding to the access address in the web data packet of the application based on the access address and returns it to the application.

[0039] Optionally, the webpage data packet includes an offline webpage data packet of the second application; the application and the second application are the same application running on different operating systems. In addition, the webpage data packet can also be obtained by editing the offline webpage data packet of the second application.

[0040] In summary, the web page access method provided in the present embodiment starts from the access address for web page access during the process of online web page access in the application program, detects whether the access address contains a protocol field, and performs targeted web page access processing according to the detection result. On the one hand, if the access address does not contain a protocol field, in this case, the address type of the access address is determined by parsing the address field contained in the access address, so that a web page address capable of realizing online web page access can be generated according to the address generation method corresponding to the address type of the access address, and web page data is obtained by calling the web page view interface and the web page is loaded and displayed, so that when the online web page access cannot be realized directly according to the access address, the online web page access in the application program is realized on the basis of the generated web page address, thereby improving the access success rate of online web page access in the application program; On the other hand, if the access address contains a protocol field, the web page can be accessed online directly in the application according to the access address. These two methods can realize online access to web pages with different types of access addresses, further improving the online success rate of online access to web pages in the application.

[0041] The following takes the application of a web page access method provided by this embodiment in a web page access scenario as an example. Figure 3 , the web page access method provided in this embodiment is further described, see Figure 3 , a web page access method applied to a web page access scenario specifically includes the following steps.

[0042] Step S302, obtaining an access address for accessing a web page within the application.

[0043] Step S304: If the access address contains a protocol field, the web page view interface is called with the access address as an input parameter to obtain web page data and load and display the web page.

[0044] Step S306, if the access address does not contain a protocol field, determine whether the address field contains a resource address field; If yes, execute step S308, step S310 and step S316; If not, execute steps S312 to S316.

[0045] Step S308: Delete the resource address field in the address field to obtain the first address field.

[0046] Step S310, generating a webpage address based on the first address field, the built-in domain name field of the application, and the preset protocol field.

[0047] Step S312, reading the webpage domain name field of the previous visited webpage of the target visited webpage.

[0048] Step S314, generating a web page address according to the web page domain name field, the access address and the preset protocol field.

[0049] Step S316, calling the web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

[0050] It should be noted that any one of steps S302 to S316 or any combination of multiple steps can be combined with any one of steps S202 to S208 to form a new implementation method according to the needs of implementation deployment; in addition, according to the needs of actual deployment, any one or multiple technical features can be selected from steps S302 to S316 and combined with any one or multiple technical features provided by steps S202 to S208 to form a new implementation method; or, any one or multiple technical features in steps S302 to S316 can be replaced with any one or multiple technical features provided by steps S202 to S208 to form a new implementation method according to the needs of actual deployment, which will not be repeated here.

[0051] An embodiment of a web page access device provided in this specification is as follows: In the above-mentioned embodiment, a web page access method is provided, and correspondingly, a web page access device is also provided, which will be described below in conjunction with the accompanying drawings.

[0052] Reference Figure 4 , which shows a schematic diagram of an embodiment of a web page access device provided by this embodiment.

[0053] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0054] This embodiment provides a web page access device, which runs on an application program, and includes: An address acquisition module 402 is configured to acquire an access address for accessing a web page in the application; The address parsing module 404 is configured to parse the address field included in the access address to obtain a parsing result if the access address does not include a protocol field; An address generation module 406 is configured to generate a webpage address according to an address generation method corresponding to the parsing result; The interface calling module 408 is configured to call the web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

[0055] An embodiment of a web page access device provided in this specification is as follows: Corresponding to the web page access method described above, based on the same technical concept, one or more embodiments of this specification further provide a web page access device, which is used to execute the web page access method provided above. Figure 5 A schematic diagram of the structure of a web page access device provided in one or more embodiments of this specification.

[0056] A web page access device provided in this embodiment includes: like Figure 5 As shown, the web page access device may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 may be a short-term storage or a persistent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the web page access device. Furthermore, the processor 501 may be configured to communicate with the memory 502 to execute a series of computer executable instructions in the memory 502 on the web page access device. The web page access device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input / output interfaces 505, one or more keyboards 506, etc.

[0057] In a specific embodiment, the web page access device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the web page access device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following: Get the access address for web page access within the application; If the access address does not include a protocol field, parsing the address field included in the access address to obtain a parsing result; Generate a webpage address according to the address generation method corresponding to the analysis result; The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

[0058] An embodiment of a computer-readable storage medium provided in this specification is as follows: Corresponding to the webpage access method described above, based on the same technical concept, one or more embodiments of this specification also provide a computer-readable storage medium.

[0059] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions, and the computer-executable instructions implement the following process when executed: Get the access address for web page access within the application; If the access address does not include a protocol field, parsing the address field included in the access address to obtain a parsing result; Generate a webpage address according to the address generation method corresponding to the analysis result; The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

[0060] It should be noted that the embodiment of a computer-readable storage medium in this specification and the embodiment of a web page access method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0061] An embodiment of a computer program product provided in this specification is as follows: Corresponding to the webpage access method described above, based on the same technical concept, one or more embodiments of this specification also provide a computer program product.

[0062] A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the following steps: Get the access address for web page access within the application; If the access address does not include a protocol field, parsing the address field included in the access address to obtain a parsing result; Generate a webpage address according to the address generation method corresponding to the analysis result; The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

[0063] It should be noted that an embodiment of a computer program product in this specification and an embodiment of a web page access method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0064] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. For example, the device embodiment, equipment embodiment, computer-readable storage medium embodiment, and computer program product embodiment are similar to the method embodiment, so the description is relatively simple. To read the relevant contents of the device embodiment, equipment embodiment, computer-readable storage medium embodiment, and computer program product embodiment, please refer to the partial description of the method embodiment.

[0065] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0066] In the 1930s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many of today's method flow improvements can be regarded as direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and produce dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0067] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0068] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0069] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0070] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present specification may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0071] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable web access device to produce a machine, so that the instructions executed by the processor of the computer or other programmable web access device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0072] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable web page access device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0073] These computer program instructions may also be loaded onto a computer or other programmable web access device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0074] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0075] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0076] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0077] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "includes at least one ..." do not exclude the presence of other identical elements in the process, method, commodity or device including the elements.

[0078] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0079] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. A web page access method, applied to an application program, the method comprising: Obtaining an access address for accessing a web page within the application; If the access address does not include a protocol field, parsing the address field included in the access address to obtain a parsing result; Generate a webpage address according to the address generation method corresponding to the analysis result; The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

2. The webpage access method according to claim 1, wherein the step of parsing the address field included in the access address to obtain a parsing result comprises: Determine whether the first field of the address field is a resource address field, and if so, determine that the address type of the access address is a first address type; if not, determine that the address type of the access address is a second address type.

3. The web page access method according to claim 2, wherein generating the web page address according to the address generation method corresponding to the analysis result comprises: If the address type of the access address is the first address type, deleting the resource address field in the address field to obtain the first address field; The webpage address is generated based on the first address field, the built-in domain name field of the application program, and the preset protocol field.

4. The web page access method according to claim 2, wherein generating the web page address according to the address generation method corresponding to the analysis result comprises: If the address type of the access address is the second address type, reading the webpage domain name field of the previous access webpage of the target access webpage; The web page address is generated according to the web page domain name field, the access address and the preset protocol field.

5. The web page access method according to claim 4, wherein the previously visited web page comprises: The visited web pages under the built-in domain name of the application, or the visited web pages under the third-party domain name.

6. The webpage access method according to claim 1, further comprising: If the access address contains a protocol field, the web page view interface is called with the access address as an input parameter to obtain web page data and load and display the web page.

7. The webpage access method according to claim 1, after the step of obtaining the access address for accessing the webpage in the application is executed, and before the step of parsing the address field included in the access address to obtain the parsing result if the access address does not include the protocol field is executed, further comprising: Detecting whether the address field included in the access address satisfies the web page address rule; If so, execute the step of parsing the address field included in the access address to obtain a parsing result if the access address does not include a protocol field.

8. The web page access method according to claim 1, wherein the web page data is stored in a web page data packet of the application stored in a web page server; The web page server obtains the access address by parsing the web page address, and reads the web page data in the web page data packet based on the access address.

9. The webpage access method according to claim 8, wherein the webpage data packet comprises an offline webpage data packet of the second application program; The application program and the second application program are the same application program running on different operating systems.

10. A web page access device, running on an application, the device comprising: An address acquisition module is configured to acquire an access address for accessing a web page within the application; An address parsing module is configured to parse the address field included in the access address to obtain a parsing result if the access address does not include a protocol field; An address generation module is configured to generate a webpage address according to an address generation method corresponding to the analysis result; The interface calling module is configured to call the web page view interface with the web page address as an input parameter to obtain web page data and load and display the web page.

11. A web page access device, comprising: processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Get the access address for web page access within the application; If the access address does not include a protocol field, parsing the address field included in the access address to obtain a parsing result; Generate a webpage address according to the address generation method corresponding to the analysis result; The web page view interface is called with the web page address as an input parameter to obtain web page data and load and display the web page.

12. A computer-readable storage medium for storing computer-executable instructions, wherein the computer-executable instructions implement the steps of the method of claim 1 when executed.