CN105989083B - Method and device for switching access environment - Google Patents
Method and device for switching access environment Download PDFInfo
- Publication number
- CN105989083B CN105989083B CN201510073348.8A CN201510073348A CN105989083B CN 105989083 B CN105989083 B CN 105989083B CN 201510073348 A CN201510073348 A CN 201510073348A CN 105989083 B CN105989083 B CN 105989083B
- Authority
- CN
- China
- Prior art keywords
- address
- page
- local application
- access
- target
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the application discloses a method and a device for switching access environments, wherein the method comprises the following steps: after the transfer page is loaded, reading the target page address through the preset script in the transfer page, and determining the target page address parameter; generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page; and starting a local application, and transmitting the local application access address to the local application, so that the target network content is accessed according to the local application access address after the local application is started. By the embodiment of the application, consistency of access targets and continuity of access processes can be achieved after access environments are switched.
Description
Technical Field
The present application relates to the field of page access technologies, and in particular, to a method and an apparatus for switching access environments.
Background
With the rapid development of the mobile internet, the types of terminal devices of users are more and more, and the access environments are different. For example, also accessing information of a certain page in a certain website, a user may access through multiple ways: for example, the application can be a web browser on a PC side, or can be a web browser on a mobile side (including a mobile phone, a tablet computer, etc.), or can be a native application installed in the mobile terminal device.
For an enterprise, different products may be developed and different product deployment strategies may be used, corresponding to different capabilities of different terminals and different access environments. For example, for products on the PC side and the mobile side, since the PC side generally does not have a touch screen, a gyroscope, or other sensing devices, some functions that can be implemented on the mobile side may not be implemented on the PC side. For another example, the mobile terminal is also a product on the mobile terminal, but compared with a web browser on the mobile phone, a native application on the mobile phone has higher processing performance and stronger support for multimedia and device interface calling. This is because native applications are operating system level programs, which are excellent in performance and call capability to the hardware level. The web page and the operating system are separated by a layer of browser, and in order to realize cross-platform performance large deferral, the difference between the performance and the native technology still depends on the improvement of hardware and browser performance. And due to the diversity of the devices and the operating systems, the calling capability of the web page to the hardware level is weak.
Therefore, in practical application, in order to enable a user to obtain better performance, the access environment of the user can be monitored, and when the current access environment can be optimized, the user can be guided to be switched to the better access environment for access. For example, when it is found that the user accesses a tianmao website by using a browser of a PC terminal or a mobile phone terminal, the user may be prompted to access by using a tianmao client of the mobile phone terminal.
In the prior art, in order to facilitate the switching of the access environment, some convenient ways are generally provided. For example, a two-dimensional code is provided in a page of a PC browser, and when a user needs to switch an access environment, a corresponding native application in a mobile phone can be started in a manner that the mobile phone scans the two-dimensional code. Or providing some clickable buttons and the like in a page of the browser at the mobile phone end, displaying prompt information related to switching to the native application on the buttons, and starting the native application in the mobile phone by a user in a mode of clicking the buttons.
The above-described method may improve the switching efficiency of the access environment to some extent, but there may be the following problems: before switching access environments, a user may be accessing a specific web page in a website, and after switching to a new access environment, the user may still want to continue accessing the web page. From the perspective of system resources, in a new access environment, resources on a user operation path need to be reloaded, thereby causing waste of network resources.
Therefore, how to shorten the operation path of the user and reduce the waste of network resources in the process of switching the access environment becomes a technical problem to be solved by the technical personnel in the field.
Disclosure of Invention
The application provides a method and a device for switching access environments, which can realize consistency of access targets and continuity of access processes after switching of the access environments.
The application provides the following scheme:
a method for switching access environment is provided, a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and a preset address of a transit page to a mobile terminal device, so that the mobile terminal device accesses the transit page according to the address of the transit page, the transit page is used for loading a preset script, and the method comprises the following steps:
after the transfer page is loaded, reading the target page address through the preset script in the transfer page, and determining the target page address parameter;
generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and starting a local application, and transmitting the local application access address to the local application, so that the target network content is accessed according to the local application access address after the local application is started.
A method of switching access contexts, comprising:
a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, a local application access address of target network content is carried in the starting request, and the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and a target page address parameter; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
acquiring the local application access address of the target network content from the starting request, and analyzing;
and loading the target network content according to the analysis result.
A method for switching access environment is provided, a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and a preset address of a transit page to a mobile terminal device, so that the mobile terminal device accesses the transit page according to the address of the transit page, the transit page is used for loading a preset script, and the method comprises the following steps:
after the transfer page is loaded, reading the target page address through the preset script in the transfer page;
and starting a local application, and transmitting the target page address to the local application, so that after the local application is started, according to a preset access protocol for accessing network content by the local application and the target page address parameter, a local application access address for accessing target network content by the local application is generated, and the target network content is accessed according to the local application access address, wherein the target network content corresponds to the content of the target page.
A method of switching access contexts, comprising:
a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, and the starting request carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
acquiring the target page address from the starting request and determining target page address parameters;
generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
accessing the target web content according to the local application access address.
A method for switching access environment, presetting a trigger element in a target page, wherein the trigger element is used for transmitting the address of the target page to a mobile terminal device, and the method comprises the following steps:
the local application in the mobile terminal equipment acquires the target page address by processing the trigger element and determines a target page address parameter;
generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
accessing the target web content according to the local application access address.
A device for switching access environment is provided, a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, the transfer page is used for loading a preset script, and the device comprises:
the first target page address reading unit is used for reading the target page address through the preset script in the transfer page after the transfer page is loaded, and determining target page address parameters;
the first address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
the first starting unit is used for starting a local application and transmitting the local application access address to the local application, so that the target network content can be accessed according to the local application access address after the local application is started.
An apparatus for switching an access environment, comprising:
the system comprises a first starting unit, a second starting unit and a third starting unit, wherein the first starting unit is used for starting after receiving a starting request, the starting request is sent by a preset script in a transfer page, a local application access address of target network content is carried in the starting request, and the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and target page address parameters; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
the first address analysis unit is used for acquiring the local application access address of the target network content from the starting request and analyzing the local application access address;
and the first network content loading unit is used for loading the target network content according to the analysis result.
A device for switching access environment is provided, a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, the transfer page is used for loading a preset script, and the device comprises:
the second target page address reading unit is used for reading the target page address through the preset script in the transfer page after the transfer page is loaded;
and the second starting unit is used for starting a local application and transmitting the target page address to the local application, so that after the local application is started, a local application access address used for the local application to access the target network content is generated according to a preset access protocol for the local application to access the network content and the target page address parameter, and the target network content is accessed according to the local application access address and corresponds to the content of the target page.
An apparatus for switching an access environment, comprising:
the second starting unit is used for starting after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page and carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
the second target page address reading unit is used for acquiring the target page address from the starting request and determining target page address parameters;
the second address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and the second network content loading unit is used for accessing the target network content according to the local application access address.
An apparatus for switching access environment, a trigger element is preset in a target page, and the trigger element is used for transmitting an address of the target page to a mobile terminal device, and the apparatus comprises:
the third target page address reading unit is used for processing the trigger element to obtain the target page address and determine target page address parameters;
the third address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and the third network content loading unit is used for accessing the target network content according to the local application access address.
According to the specific embodiments provided herein, the present application discloses the following technical effects:
according to the method and the device for switching the local application access, after a switching event from a browser to the local application access is triggered, a transfer page is started in the mobile terminal device, a preset script is provided in the transfer page, a target page address can be obtained through the script, a local application access address for the local application to access the corresponding network content is generated according to the address information and a preset access protocol for the local application to access the network content, and then the local application can be started to access the corresponding network content. The target page address and the local application access address have a corresponding relation, and the network contents identified by the target page address and the local application access address have consistency, so that the content consistent with that in the browser can be accessed in the local application after the switching of the access environment is realized, and the consistency of the access target and the continuity of the access process after the switching of the access environment are ensured.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a first method provided by an embodiment of the present application;
FIG. 2 is a flow chart of a second method provided by an embodiment of the present application;
FIG. 3 is a flow chart of a third method provided by embodiments of the present application;
FIG. 4 is a flow chart of a fourth method provided by embodiments of the present application;
FIG. 5 is a flow chart of a fifth method provided by embodiments of the present application;
FIG. 6 is a schematic diagram of a first apparatus provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a second apparatus provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a third apparatus provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a fourth apparatus provided by an embodiment of the present application;
fig. 10 is a schematic diagram of a fifth apparatus provided in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
The embodiment of the application provides a method for switching access environments, which can enable access to the same target page to be switched to other access environments more smoothly when switching is performed among different access environments, and maintain consistency of access targets and continuity of access processes.
The switching of the access environment mainly refers to switching between the access from the browser to the access of the local application of the mobile terminal device. The browser may be a browser program installed in a PC device, or a browser application installed in a portable mobile terminal device, such as a smart phone, a tablet computer, and the like, and the local application in the mobile terminal device may be a non-browser application installed in the mobile terminal device, for example, a shopping application APP and the like. That is, the local application access in the specified mobile terminal device may be switched from the browser access in the other terminal device, or the local application access of the mobile terminal device itself may be switched from the browser access in the mobile terminal device. For example, suppose a user accesses a target page (e.g., a detailed page of a commodity object) in a skatecat website using a browser on a PC, and can switch to a skatecat application installed on his cell phone; or, assuming that the user is accessing a detailed page of a certain commodity object in a skatecat by using a mobile phone browser before, switching to a skatecat application installed on the mobile phone; in any case, after the switching, the detailed page of the commodity object can be directly displayed in the skatecat application, and the user is not required to search in the skatecat application step by step.
In a specific implementation, the event for switching the access environment may be triggered by a user, and in order to facilitate user operation, a trigger element may be preset in a page of a website in advance, so that when the user accesses the pages using a browser, the user can view the trigger element and initiate an instruction for switching the access environment through the trigger element.
Among them, the so-called trigger element may have different expressions when accessing the target page using the browser installed in the PC and when accessing the target page using the browser in the mobile terminal device. Wherein, for the former, a certain switching medium can be provided in the target page. For example, it may be a two-dimensional code containing specific information, and when the switching of the access environment needs to be performed, the two-dimensional code may be scanned by using a related application in the mobile terminal device, so as to initiate an event of environment switching. For the latter, that is, when the access of the browser application in the mobile terminal device is switched to the local application, because the mobile terminal device generally cannot scan the two-dimensional code displayed on the display screen of the local mobile terminal device, a specific operation option may be provided in the page accessed in the mobile terminal device, and such an operation option may exist in a specific area of the display screen in the form of a hyperlink button or the like, for example, above or below the display screen; moreover, words such as "switch to a certain application" or "access the page using a certain local application" may be displayed on the operation option, and when the user needs to switch the access environment, the user may directly issue a corresponding switching instruction by operating the option.
In relation to the case that the two-dimensional code is scanned by using the relevant application in the mobile terminal device to initiate switching, the application for scanning the two-dimensional code may be a local application to be switched to in advance, for example, a tianmao application may provide a function of scanning the two-dimensional code, or may also be a third-party application, at this time, the function of scanning the two-dimensional code of the third-party application may be turned on first, and a camera of the mobile terminal device is aligned with the two-dimensional code displayed in a display screen of the PC device, and then, a target local application to be switched to, for example, the tianmao application, and the like may be started by means of the third-party application. In order to be able to launch the target local application, it can also be implemented by means of a transit page, and a preset script is provided in the transit page, and by loading the script, some related processing is implemented so as to implement smooth switching. Therefore, the address of the transfer page can be carried in the two-dimensional code, so that after the third-party application scans the two-dimensional code, the browser in the mobile terminal device can be called first to load the transfer page, and correspondingly, the script can also be loaded for executing subsequent operations.
The switching from the browser access of the mobile terminal device to the local application access may also be implemented by means of a transit page, and at this time, an address of the transit page may be written in the hyperlink, so that after the hyperlink button for switching the access environment is clicked, the browser in the mobile terminal device may also be called first to load the transit page, and accordingly, a script may also be loaded for performing subsequent operations.
That is, the switching from the PC browser access to the mobile terminal device native application access and the switching from the mobile terminal device browser access to the native application access can be realized by means of the transit page, and regarding the switching from the PC browser access to the mobile terminal device native application access, the switching of the access environment can be realized by directly using the two-dimensional code scanning function of the native application itself in addition to the transit page.
The specific implementations of the various modes are described in detail below.
Example one
In the first embodiment, a description is mainly given of an implementation by means of a transit page. That is to say, in the first embodiment, a trigger element may be preset in the target page, where the trigger element is used to transmit an address of the transit page to the mobile terminal device, so that the mobile terminal device starts a browser to access the transit page; in addition, in the embodiment of the present application, the trigger element is also used to transmit an address of a target page to the mobile terminal device, where the target page is a page that is being accessed by using a browser of the PC or the mobile terminal before switching, for example, a detailed page of a certain merchandise object, and the like. During specific implementation, the target page address can be transmitted to the mobile terminal device in the form of parameters in the transfer page address.
For example, assume that the address of the target page accessed by the user through the browser is: detail. 34560604204, and the address of the transfer page is: www.tmall.com/xxx. In order to implement the transmission of the address information of the target page, in one implementation, the address of the intermediate page and the address of the target page may be spliced together to form a new address, where the address of the target page is used as a parameter of the newly formed address, for example, the address of the intermediate page and the address of the target page may be spliced into the following form:
www.tmall.com/xxx.php?url=detail.tmall.com/item.htm?id=34560604204
in this way, the information transmitted by the trigger element to the mobile terminal device may be the newly formed address, the browser in the mobile terminal device may access the transit page according to www.tmall.com/xxx. "the parameter portion after" is determined as the address of the target page.
The embodiment provides a method for switching access environment from the script perspective, and referring to fig. 1, the method may include the following steps:
s101: after the transfer page is loaded, reading the target page address through the preset script in the transfer page, and determining the target page address parameter;
since the trigger element includes the address of the target page in addition to the address of the transit page, the script can read the address of the target page from the transit page after being loaded. For example, it is assumed that in a manner of delivering a transit page address and a target page address in a manner of splicing addresses, when the mobile terminal device accesses the spliced address, the mobile terminal device can access the transit page, and can obtain the address of the target page according to parameters of the spliced address. For example, in the target page, a scannable two-dimensional code is provided, and the address of the above-described concatenation is included in the two-dimensional code. When a user accesses the target page through a browser installed in a device such as a PC (personal computer), the two-dimensional code in the page can be scanned by using the mobile terminal device, and the access to the splicing address is initiated. Or a clickable hyperlink object is preset in the target page, the splicing address is used as a jump target address of the hyperlink object, and when a user accesses the target page by using a browser in the mobile terminal device, the mobile terminal device can be triggered to access the splicing address by clicking the hyperlink object. In the process of accessing the splicing address, the browser can automatically load the preset script in the transit page, and the target page address existing in the splicing address in a parameter form can be extracted through the preset script.
The address of the target page is unique identification information of the target page when the target page is accessed by using a browser, and may be, for example, a uniform resource locator URL of the page. Such addresses may typically include parameters, each having a particular meaning. For example, for an address of a certain item detail page: detail. Com may indicate that this page is a product detail page, id 35471604204 indicates that the id of the product object is 35471604204, this URL address itself also indicates that this is a detail page, and the product id corresponding to the current detail page is 35471604204.
Therefore, in the embodiment of the present application, a page address parameter may also be determined from the target page address, and the specific parameter may include a page type keyword, a type keyword of a business object, an ID keyword of a business object, and the like, or a combination of information of multiple keywords, and the like. The ID of the business object can uniquely identify the business object in the website; the combination of the ID of the business object and the type key of the business object can uniquely identify a specific type of business object in the website, for example, when a store is used as the business object of the e-commerce platform website, the type key "shop" can be used as the type key of the store, and the number sequence can be used as the ID of the store, at this time, the combination of the key information like "shop" and "123456" can uniquely identify a store or a page corresponding to the store. For another example, if the type key of a certain commodity object is "item", the ID of the item is identified by a specific number sequence, and if the page type key is "details", the combination of key information similar to "item", "205953" and "details" can identify the detailed page of a certain commodity object in the website.
S102: generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
accessing web content using a native application in a mobile terminal device will typically differ from browser application access in both aspects of the access object and the access method. Firstly, when accessing web content through a browser from an access object, particularly when accessing web content through a mobile terminal device, the calling capability of the browser to device platform resources is relatively limited compared with that of a local application, and when providing certain web content on a page, certain local application can be realized, but the content or functions which cannot be realized in the browser are abandoned, for example, a positioning function which can be used by the local application and derivative content based on the function are abandoned; in addition, due to the cross-platform factor of the network content, when the network content is provided in the page, some content or functions with poor compatibility under different platforms need to be abandoned. And the local application can call more local data processing functions or methods of the mobile terminal equipment, and compared with the method that the same content is displayed in a page, the local application is often more efficient to use, and the realized effect is more ideal. This is also one of the reasons for the need to switch access contexts.
On the access method, in some local applications, some special methods can be called or a proprietary protocol is used for accessing the network content, when the network content is accessed by using the special methods or the proprietary protocol, the address information used for accessing the network content is different from the address information used for accessing the corresponding content by the browser, but the address is generated according to the requirements of the specific special method or the proprietary protocol.
Therefore, in the embodiment of the present application, in order to implement smooth switching from browser access to local application access, after the address information of the target page is extracted, a local application access address for the local application to access the target web content may be further generated according to a preset access protocol for the local application to access the web content and a target page address parameter, where the target web content corresponds to the content of the target page. Therefore, the local application can load the target network content according to the generated local application access address. For example, when the destination page address information is a URL of the destination page, the URL of the destination page may be used as a parameter of a dedicated method or a proprietary protocol, thereby generating the local application access address. Or, a local application access address may also be generated according to specific keyword information in the URL, for example, when the first address information is detail. When ID is 34560604204, it may be determined that the page is a detail page of a business object with ID "34560604204" according to the keyword information "item", "34560604204" and "detail", and after determining the keyword information, a local application access address may be generated according to the keyword information, for example, obtaining tmall:// tmallclient/? And (3) using item id 34560604204 as a local application access address, and accessing the corresponding target network content by using a proprietary access protocol according to the local application access address in the local application.
In addition, in order to facilitate the processing of the local application, some local pages dedicated for the local application to load are correspondingly provided corresponding to some network contents accessed by the browser, and such local pages may be designed and optimized for different platforms and written based on the programming language used by the local application, so as to improve the efficiency of loading and processing on the corresponding platform, provide more functions, and so on. Therefore, when the access environment is switched, whether the target page corresponds to the local page or not can be judged, and if the target page corresponds to the local page, the local page is used as much as possible to display the target network content.
Specifically, it may be determined whether a local page corresponding to the target page exists according to the target page address parameter and a preset rule. The preset rule can be pre-stored in the script, so that the script can judge whether the corresponding local page exists according to the parameters contained in the target page address accessed by the browser.
For example, a rule is:
and a target page address is detail. 34560604204, the address matches the rule successfully, so it can be determined that there is a local page corresponding to the target page. Otherwise, if the address of a certain target page is nvzhuang.tmall.com, and the address and each rule in the rule base are judged to be not successfully matched, it can be determined that no local page corresponding to the target page exists.
For the local application, the loading mode is often different for the local page and the non-local page, so that in order to facilitate the local application to distinguish whether the network content to be loaded is the local page content, a distinction can be made when generating the local application access address. That is, the generated local application access address may be generated according to different rules, depending on whether there is a corresponding local page.
For example, if there is a local page corresponding to the target page, keywords may be extracted from the target page address and a local application access address generated based on the access protocol of the local application to access the web content and such keywords. In this way, when the local application access address is generated, the page type identifier, the service object identifier, or the search keyword may be spliced with other fields such as a protocol name in the access protocol, for example, the local application access address may be converted into the following form:
(protocol name):// …/? (type): ID ═ (ID value)
The type and the ID value are keywords extracted from the address information of the target page.
For example, when the destination page address information is: detail. When id is 34560604204, extracting the keyword information from the target page address information may include: "item" and ID value "34560604204", and further splicing the type identification and ID value with a protocol name tmall:// tmallclient, and obtaining a local application access address as follows:
tmall://tmallclient/?item:id=34560604204
based on the second address information, the mobile terminal device can access the network content corresponding to the target page as the local page. In this example, the page type may include a business object detail type, such as a type represented by keyword information "item" extracted from the target page address information, an ID of the business object, and the like. Of course, according to actual application requirements, the types of keywords may be other types, for example, when a browser is used to search a business object, a target page may be a search result page, at this time, address information of the target page may include a search keyword, and when a keyword is extracted from address information of the target page, the search keyword may be extracted as a keyword. For example, when the target page accessed through the browser is a search page as follows:
list.tmall.com/search_product.htm?q=clothes
the type of the target page can be determined as a search type through the keyword "search _ product", and a corresponding search keyword can be extracted from the search type as "tooths", and then the local application access address generated according to the type and the search keyword can be:
tmall://tmallclient?search:q=clothes
therefore, in the local application of the mobile terminal device, when the network content is accessed according to the local application access address, the search result page with the tooths as the search key word can be continuously accessed.
It should be noted that the above description is only exemplary, and in practical applications, there may be other page types, and more and other keywords may also be extracted from the destination page address information, and used as reference information for generating a local application access address, for example, a page number when a current destination page browses a search result, so as to further improve the continuity of an access object after access switching is performed and the continuity of an access process.
In addition, if the local page corresponding to the target page does not exist, the local application access addresses can be directly spliced according to the local protocol name and the target page address. For example, when the target page is nvzhuang.tmall.com, and a corresponding native page is not prepared for the target page, when the access environment is switched, in order to maintain consistency of access objects, the URL of the target page may be spliced with the local protocol name to generate a local application access address, which is as follows:
tmall://tmallclient/?link:url=nvzhuang.tmall.com
thus, after the local application is started, the access address of the local application can be analyzed to determine whether the local application is a local page, if the parameter after the protocol name is item, shop, search, and the like, and then the parameters such as the service object ID, the search keyword, and the like are connected, the local application can be determined to be the local page, and if the parameter after the protocol name is "link", the local application can be determined to be the non-local page. If the local page is the local page, the keyword in the local application access address can be directly utilized to position the local page and load the local page, otherwise, the browser built in the local application can be utilized to load the content corresponding to the target page address.
S103: and starting a local application, and transmitting the local application access address to the local application, so that the target network content is accessed according to the local application access address after the local application is started.
After generating the local application access address, the local application may be launched and passed the local application access address to the local application. The local application may load the corresponding target network content according to the local application access address. Because the local application access address is generated according to the address information of the target page, the two addresses have a corresponding relation, and the identified network contents also have consistency, the content consistent with that in the browser can be accessed in the local application after the switching of the access environment is realized, so that the consistency of the access target and the continuity of the access process after the switching of the access environment are ensured.
It should be noted that, in the process of switching the access environments, the mobile terminal device used by the user may not have the corresponding local application installed yet, at this time, it may also be detected whether the local application is installed or not, and if not, the relevant local application may be downloaded and installed first, or the user may be guided to download and install, and then the local application is started. During specific implementation, the script generally cannot directly detect whether the local application is installed or not, because privacy problems of users may be involved, it may also detect whether the local application is installed in the current device or not by trying to start, and if the corresponding local application is not installed in the mobile terminal, a download link of the local application may be provided, or a page corresponding to application management software may be opened, the user may be guided to install the corresponding application, or downloading and installation of the application may be automatically performed.
The method for switching access environments provided in the first embodiment of the present application is described in detail above, and by using the method, after a switching event for accessing a local application from a browser is triggered, a transfer page is started in a mobile terminal device, where a preset script is provided in the transfer page, and by using the script, a target page address can be obtained, and according to the address information and a preset access protocol for accessing network content by the local application, a local application access address for the local application to access the corresponding network content is generated, so that the local application can be started to access the corresponding network content. The target page address and the local application access address have a corresponding relation, and the network contents identified by the target page address and the local application access address have consistency, so that the content consistent with that in the browser can be accessed in the local application after the switching of the access environment is realized, and the consistency of the access target and the continuity of the access process after the switching of the access environment are ensured. Furthermore, when the local application access address is used for accessing the local page, the problem that the content and the function are simplified for cross-platform consideration when the browser loads the webpage content can be avoided, the local application is more efficient in loading and processing the local page, and compared with the content and the function provided in the webpage form, the content and the function which can be realized by the local page are richer.
Example two
The second embodiment corresponds to the first embodiment, and provides a method for switching access environments from the perspective of a local application, referring to fig. 2, where the method may include the following steps:
s201: a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, a local application access address of target network content is carried in the starting request, and the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and a target page address parameter; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
s202: acquiring the local application access address of the target network content from the starting request, and analyzing;
s203: and loading the target network content according to the analysis result.
Specifically, when loading target network content, determining whether a local page for displaying the target network content exists according to the local application access address, if so, extracting keywords from the local application access address, and then positioning the local page by using the keywords and loading; if the local page is not the local page, the target page address can be extracted from the local application access address, and then a browser (webview) built in the local application is used for loading the content corresponding to the target page address.
It should be noted that opening a page in the webview of the local application is more suitable than directly opening the page in the web browser of the mobile terminal device, because the local application itself can provide a stronger API support for the webview, and some APIs that only the local application can call are injected into the webview, so that the webview is stronger than a pure web browser. For example, the support of the webview interface can be added in the local application, so as to smoothly use tools such as a camera and a gyroscope in the terminal device.
The second embodiment corresponds to the first embodiment, and specific implementation of the second embodiment may refer to the description in the first embodiment, which is not described herein again.
EXAMPLE III
In the third embodiment, a trigger element may also be preset in the target page, where the trigger element is configured to transmit the address of the target page and the address of a preset transfer page to the mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, and the transfer page is configured to load a preset script. However, unlike the first and second embodiments, the script in the transit page may be used only to pass the target page address to the local application, and the address translation and subsequent loading may be performed by the local application. Referring to fig. 3, the third embodiment provides another method for switching access environments, which may include the following steps:
s301: after the transfer page is loaded, reading the target page address through the preset script in the transfer page;
s302: and starting a local application, and transmitting the target page address to the local application, so that after the local application is started, according to a preset access protocol for accessing network content by the local application and the target page address parameter, a local application access address for accessing target network content by the local application is generated, and the target network content is accessed according to the local application access address, wherein the target network content corresponds to the content of the target page.
The generation process of the specific local application access address may be the same as the conversion process performed by the script in the first embodiment, and therefore, reference may be made to the description in the first embodiment, and details are not described here.
Example four
The fourth embodiment corresponds to the third embodiment, and provides a method for switching access environments from the perspective of local applications, and referring to fig. 4, the method may include the following steps:
s401: a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, and the starting request carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
s402: acquiring the target page address from the starting request and determining target page address parameters;
s403: generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
s404: accessing the target web content according to the local application access address.
The specific implementation of each step in the fourth embodiment may also refer to the description in the first embodiment, and is not described herein again.
EXAMPLE five
As described above, if the user has installed the local application in his mobile terminal device and the local application is in the started state, the address of the target page may also be obtained by using the functions of two-dimensional code scanning and the like carried by the local application, and at this time, the transfer through the transfer page may not be necessary. Referring to fig. 5, a fifth embodiment provides another method for switching access environments, and similarly, a trigger element may also be preset in a target page, where the trigger element is used to deliver an address of the target page to a mobile terminal device, and the method may include the following steps:
s501: the local application in the mobile terminal equipment acquires the target page address by processing the trigger element and determines a target page address parameter;
for example, the address of the target page may be carried in a two-dimensional code manner, at this time, the local application may be firstly opened by the mobile terminal device, the two-dimensional code scanning function of the local application is started, and then the camera of the mobile terminal device is aligned with the two-dimensional code in the page, so that the local application may acquire the address of the target page, and the page address parameter may be determined therefrom.
S502: generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
s503: accessing the target web content according to the local application access address.
Subsequent steps S502 and S503 may be the same as steps S402 and S403, and therefore, reference may also be made to the description in the first embodiment, which is not described herein again.
Corresponding to the method for switching an access environment provided in the first embodiment, an embodiment of the present application further provides a device for switching an access environment, where a trigger element is preset in a target page, and the trigger element is configured to transmit an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, where the transfer page is used to load a preset script, where as shown in fig. 6, the device includes:
a first target page address reading unit 601, configured to read the target page address through the preset script in the transfer page after the transfer page is loaded, and determine a target page address parameter;
a first address translation unit 602, configured to generate a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
a first starting unit 603, configured to start a local application, and transfer the local application access address to the local application, so that after the local application is started, the target web content is accessed according to the local application access address.
The first address translation unit 602 may specifically include:
the first judgment subunit is used for determining whether a local page corresponding to the target page exists or not according to the target page address parameter and a preset rule; the local page is a page written based on the programming language of the local application and used for displaying the target network content;
and the first generation subunit is used for extracting a keyword from the target page address if the judgment result of the judgment subunit is yes, and generating the local application access address based on the access protocol of the local application for accessing the network content and the keyword.
Wherein the extracting the keywords from the target page address comprises:
and extracting a page type identifier, a service object identifier or a search keyword from the target page address.
In addition, the first address translation unit 602 may further include:
and the second generation subunit is used for generating the local application access address based on the access protocol of the local application for accessing the network content and the target page address if the local page corresponding to the target page does not exist.
Corresponding to the method for switching access environment provided by the second embodiment, an embodiment of the present application further provides an apparatus for switching access environment, referring to fig. 7, where the apparatus includes:
a first starting unit 701, configured to start after receiving a start request, where the start request is sent by a preset script in a transit page, and a local application access address of a target network content is carried in the start request, where the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and a target page address parameter; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
a first address resolution unit 702, configured to obtain the local application access address to the target network content from the start request, and perform resolution;
a first network content loading unit 703 is configured to load the target network content according to the analysis result.
The first network content loading unit 703 includes:
the second judgment subunit is configured to determine whether a local page for displaying the target network content exists according to the local application access address;
a keyword extraction subunit, configured to extract a keyword from the local application access address if a determination result of the determination subunit is yes;
and the first loading subunit is used for positioning the local page by using the keyword and loading the local page.
In addition, the first network content loading unit 703 may further include:
the target page address extracting subunit is used for extracting the target page address from the local application access address if the local page is not the local page;
and the second loading subunit is used for loading the content corresponding to the target page address by using the browser built in the local application.
Corresponding to the method for switching an access environment provided in the third embodiment, an embodiment of the present application further provides a device for switching an access environment, where a trigger element is preset in a target page, and the trigger element is configured to transmit an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, where the transfer page is used to load a preset script, and referring to fig. 8, the device includes:
a second target page address reading unit 801, configured to read the target page address through the preset script in the transfer page after the transfer page is loaded;
a second starting unit 802, configured to start a local application, and transmit the target page address to the local application, so that after the local application is started, according to a preset access protocol for the local application to access network content and the target page address parameter, a local application access address for the local application to access target network content is generated, and the target network content is accessed according to the local application access address, where the target network content corresponds to the content of the target page.
Corresponding to the method for switching access environment provided by the fourth embodiment, an embodiment of the present application further provides an apparatus for switching access environment, and referring to fig. 9, the apparatus may include:
a second starting unit 901, configured to start after receiving a start request, where the start request is sent by a preset script in a transit page, and the start request carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
a second target page address reading unit 902, configured to obtain the target page address from the start request, and determine a target page address parameter;
a second address conversion unit 903, configured to generate a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
a second network content loading unit 904, configured to access the target network content according to the local application access address.
Corresponding to the method for switching an access environment provided in the fifth embodiment, an embodiment of the present application further provides an apparatus for switching an access environment, where a trigger element is preset in a target page, and the trigger element is used to transfer an address of the target page to a mobile terminal device, and referring to fig. 10, the apparatus may include:
a third target page address reading unit 1001, configured to obtain the target page address by processing the trigger element, and determine a target page address parameter;
a third address translation unit 1002, configured to generate a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
a third network content loading unit 1003, configured to access the target network content according to the local application access address.
In summary, according to the embodiment of the present application, after a switching event from a browser to a local application access is triggered, a relay page is started in a mobile terminal device, a preset script is provided in the relay page, a target page address can be obtained through the script, and a local application access address for the local application to access a corresponding network content is generated according to the address information and a preset access protocol for the local application to access the network content, so that the local application can be started to access the corresponding network content. The target page address and the local application access address have a corresponding relation, and the network contents identified by the target page address and the local application access address have consistency, so that the content consistent with that in the browser can be accessed in the local application after the switching of the access environment is realized, and the consistency of the access target and the continuity of the access process after the switching of the access environment are ensured. Furthermore, when the local application access address is used for accessing the local page, the problem that the content and the function are simplified for cross-platform consideration when the browser loads the webpage content can be avoided, the local application is more efficient in loading and processing the local page, and compared with the content and the function provided in the webpage form, the content and the function which can be realized by the local page are richer.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and the apparatus for switching access environments provided by the present application are introduced in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.
Claims (20)
1. A method for switching access environment is characterized in that a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and a preset address of a transit page to a mobile terminal device, so that the mobile terminal device accesses the transit page according to the address of the transit page, and the transit page is used for loading a preset script, and the method comprises the following steps:
after the transfer page is loaded, reading the target page address through the preset script in the transfer page, and determining the target page address parameter; wherein the address of the target page is a uniform resource locator of the target page;
generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and starting a local application, and transmitting the local application access address to the local application, so that the target network content is accessed according to the local application access address after the local application is started.
2. The method of claim 1, wherein generating the local application access address for the local application to access the target web content comprises:
determining whether a local page corresponding to the target page exists or not according to the target page address parameter and a preset rule; the local page is a page written based on the programming language of the local application and used for displaying the target network content;
if yes, extracting keywords from the target page address, and generating the local application access address based on the access protocol of the local application for accessing the network content and the keywords.
3. The method of claim 2, wherein extracting keywords from the target page address comprises:
and extracting a page type identifier, a service object identifier or a search keyword from the target page address.
4. The method of claim 2, further comprising:
and if the local page corresponding to the target page does not exist, generating the local application access address based on the access protocol of the local application for accessing the network content and the target page address.
5. A method for switching access contexts, comprising:
a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, a local application access address of target network content is carried in the starting request, and the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and a target page address parameter; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script; wherein the address of the target page is a uniform resource locator of the target page;
acquiring a local application access address of the target network content from the starting request, and analyzing;
and loading the target network content according to the analysis result.
6. The method of claim 5, wherein the loading the target web content according to the parsing result comprises:
determining whether a local page for displaying the target network content exists according to the local application access address;
if yes, extracting keywords from the local application access address;
and positioning the local page by using the keywords and loading.
7. The method of claim 6, further comprising:
if the local page does not exist, extracting the target page address from a local application access address;
and loading the content corresponding to the target page address by using a browser built in the local application.
8. A method for switching access environment is characterized in that a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and a preset address of a transit page to a mobile terminal device, so that the mobile terminal device accesses the transit page according to the address of the transit page, and the transit page is used for loading a preset script, and the method comprises the following steps:
after the transfer page is loaded, reading the target page address through the preset script in the transfer page;
and starting a local application, and transmitting the target page address to the local application, so that after the local application is started, a local application access address for the local application to access target network content is generated according to a preset access protocol for the local application to access the network content and a target page address parameter, and the target network content is accessed according to the local application access address, wherein the target network content corresponds to the content of the target page.
9. A method for switching access contexts, comprising:
a local application in the mobile terminal equipment is started after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page, and the starting request carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
acquiring the target page address from the starting request and determining target page address parameters; generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
accessing the target web content according to the local application access address.
10. A method for switching access environment is characterized in that a trigger element is preset in a target page, and the trigger element is used for transmitting the address of the target page to a mobile terminal device, and comprises the following steps:
the local application in the mobile terminal equipment acquires the target page address by processing the trigger element and determines a target page address parameter; wherein the target page address is a uniform resource locator of the target page;
generating a local application access address for the local application to access the target network content according to a preset access protocol for the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
accessing the target web content according to the local application access address.
11. A device for switching access environment is characterized in that a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, and the transfer page is used for loading a preset script, and the device comprises:
the first target page address reading unit is used for reading the target page address through the preset script in the transfer page after the transfer page is loaded, and determining target page address parameters; wherein the address of the target page is a uniform resource locator of the target page;
the first address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
the first starting unit is used for starting a local application and transmitting the local application access address to the local application, so that the target network content can be accessed according to the local application access address after the local application is started.
12. The apparatus of claim 11, wherein the first address translation unit comprises:
the first judgment subunit is used for determining whether a local page corresponding to the target page exists or not according to the target page address parameter and a preset rule; the local page is a page written based on the programming language of the local application and used for displaying the target network content;
and the first generation subunit is used for extracting a keyword from the target page address if the judgment result of the judgment subunit is yes, and generating the local application access address based on the access protocol of the local application for accessing the network content and the keyword.
13. The apparatus of claim 12, wherein the extracting the keywords from the target page address comprises:
and extracting a page type identifier, a service object identifier or a search keyword from the target page address.
14. The apparatus of claim 12, wherein the first address translation unit further comprises:
and the second generation subunit is used for generating the local application access address based on the access protocol of the local application for accessing the network content and the target page address if the local page corresponding to the target page does not exist.
15. An apparatus for switching an access environment, comprising:
the system comprises a first starting unit, a second starting unit and a third starting unit, wherein the first starting unit is used for starting after receiving a starting request, the starting request is sent by a preset script in a transfer page, a local application access address of target network content is carried in the starting request, and the local application access address is generated by the preset script according to a preset access protocol for accessing the network content by the local application and target page address parameters; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script; wherein the address of the target page is a uniform resource locator of the target page;
the first address analysis unit is used for acquiring a local application access address of the target network content from the starting request and analyzing the local application access address;
and the first network content loading unit is used for loading the target network content according to the analysis result.
16. The apparatus of claim 15, wherein the first network content loading unit comprises:
the second judgment subunit is configured to determine whether a local page for displaying the target network content exists according to the local application access address;
a keyword extraction subunit, configured to extract a keyword from the local application access address if a determination result of the determination subunit is yes;
and the first loading subunit is used for positioning the local page by using the keyword and loading the local page.
17. The apparatus of claim 16, wherein the first network content loading unit further comprises:
the target page address extracting subunit is used for extracting the target page address from the local application access address if the local page does not exist;
and the second loading subunit is used for loading the content corresponding to the target page address by using the browser built in the local application.
18. A device for switching access environment is characterized in that a trigger element is preset in a target page, the trigger element is used for transmitting an address of the target page and an address of a preset transfer page to a mobile terminal device, so that the mobile terminal device accesses the transfer page according to the address of the transfer page, and the transfer page is used for loading a preset script, and the device comprises:
the second target page address reading unit is used for reading the target page address through the preset script in the transfer page after the transfer page is loaded;
and the second starting unit is used for starting the local application and transmitting the target page address to the local application, so that after the local application is started, a local application access address used for the local application to access the target network content is generated according to a preset access protocol for the local application to access the network content and the target page address parameter, and the target network content is accessed according to the local application access address and corresponds to the content of the target page.
19. An apparatus for switching an access environment, comprising:
the second starting unit is used for starting after receiving a starting request, wherein the starting request is sent by a preset script in a transfer page and carries a target page address; a trigger element is preset in the target page, and the trigger element is used for transmitting the address of the target page and the address of the transfer page to a mobile terminal device, so that the mobile terminal device can access the transfer page according to the address of the transfer page and load the preset script;
the second target page address reading unit is used for acquiring the target page address from the starting request and determining target page address parameters; wherein the address of the target page is a uniform resource locator of the target page;
the second address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and the second network content loading unit is used for accessing the target network content according to the local application access address.
20. An apparatus for switching access environment, wherein a trigger element is preset in a target page, and the trigger element is used for transmitting an address of the target page to a mobile terminal device, and the apparatus comprises:
the third target page address reading unit is used for processing the trigger element to obtain the target page address and determine target page address parameters; wherein the address of the target page is a uniform resource locator of the target page;
the third address conversion unit is used for generating a local application access address used for the local application to access the target network content according to a preset access protocol of the local application to access the network content and the target page address parameter; the target network content corresponds to the content of the target page;
and the third network content loading unit is used for accessing the target network content according to the local application access address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510073348.8A CN105989083B (en) | 2015-02-11 | 2015-02-11 | Method and device for switching access environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510073348.8A CN105989083B (en) | 2015-02-11 | 2015-02-11 | Method and device for switching access environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105989083A CN105989083A (en) | 2016-10-05 |
CN105989083B true CN105989083B (en) | 2020-01-14 |
Family
ID=57041200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510073348.8A Active CN105989083B (en) | 2015-02-11 | 2015-02-11 | Method and device for switching access environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105989083B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108287839B (en) * | 2017-01-09 | 2022-01-28 | 阿里巴巴集团控股有限公司 | Page loading method and equipment |
CN108052334B (en) * | 2017-12-22 | 2020-11-06 | 平安养老保险股份有限公司 | Page jump method, device, computer equipment and storage medium |
CN108459888B (en) * | 2018-01-08 | 2019-10-08 | 平安科技(深圳)有限公司 | Multi-page switching method, device, terminal device and storage medium |
CN108595234A (en) * | 2018-03-13 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Five application page switching method, device and equipment |
CN111639275B (en) * | 2019-03-01 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Routing information processing method, device, electronic equipment and computer storage medium |
CN110333999B (en) * | 2019-05-06 | 2021-02-23 | 盛威时代科技集团有限公司 | Method for switching test environments of mobile phone client |
CN111597474A (en) * | 2020-04-03 | 2020-08-28 | 多点(深圳)数字科技有限公司 | Two-dimensional code design and skip method compatible with multi-client environment |
CN112214698A (en) * | 2020-09-29 | 2021-01-12 | 瑞庭网络技术(上海)有限公司 | Information processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815093A (en) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device |
CN101977233A (en) * | 2010-11-01 | 2011-02-16 | 优视科技有限公司 | Method and system for leading mobile terminal to browse webpage in reading mode |
CN102999595A (en) * | 2012-11-16 | 2013-03-27 | 北京百度网讯科技有限公司 | Method and equipment for providing access page corresponding to page information |
CN103051684A (en) * | 2012-12-07 | 2013-04-17 | 百度在线网络技术(北京)有限公司 | Method, system and device for converting website into Web App for displaying |
US8930443B1 (en) * | 2010-03-19 | 2015-01-06 | Amazon Technologies, Inc. | Distributed network page generation |
-
2015
- 2015-02-11 CN CN201510073348.8A patent/CN105989083B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815093A (en) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device |
US8930443B1 (en) * | 2010-03-19 | 2015-01-06 | Amazon Technologies, Inc. | Distributed network page generation |
CN101977233A (en) * | 2010-11-01 | 2011-02-16 | 优视科技有限公司 | Method and system for leading mobile terminal to browse webpage in reading mode |
CN102999595A (en) * | 2012-11-16 | 2013-03-27 | 北京百度网讯科技有限公司 | Method and equipment for providing access page corresponding to page information |
CN103051684A (en) * | 2012-12-07 | 2013-04-17 | 百度在线网络技术(北京)有限公司 | Method, system and device for converting website into Web App for displaying |
Non-Patent Citations (2)
Title |
---|
点击页面判断是否安装app并打开,否则跳转app store的方法;xyxjn;《https://blog.csdn.net/xyxjn/article/details/41805365》;20141208;1-3 * |
用户体验小细节:如何让Web链接完美的跳转到App;kingtent;《https://www.uisdc.com/how-to-make-a-perfect-user-experience-with-link-jumping-to-app》;20130314;1-3 * |
Also Published As
Publication number | Publication date |
---|---|
CN105989083A (en) | 2016-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105989083B (en) | Method and device for switching access environment | |
CN107622135B (en) | Method and apparatus for displaying information | |
CN110221872B (en) | Page jump method and device, electronic equipment and storage medium | |
US20170163753A1 (en) | Method and apparatus for controlling play device to play video | |
CN105122760B (en) | Page operation processing method, device and terminal | |
US20170185580A1 (en) | Emoji input method and device thereof | |
CN102929971B (en) | Multimedia information playing method and system | |
CN107679214B (en) | Link positioning method, device, terminal and computer readable storage medium | |
CN111666518B (en) | DOI display method and device | |
JP2020532784A (en) | Information transmission method and device | |
CN110825370B (en) | Mobile terminal application development method, device and system | |
CN113536185B (en) | Application page loading method, storage medium and related equipment | |
CN111010437A (en) | Intelligent media playing system and control method | |
CN110968331A (en) | Method and device for running application program | |
CN111767109A (en) | H5 page display method and device based on terminal application and readable storage medium | |
CN105809162B (en) | Method and device for acquiring WIFI hotspot and picture associated information | |
CN106681767B (en) | Light application adding method and device | |
CN106021319A (en) | Voice interaction method, device and system | |
JP2018500670A (en) | Handling unstructured messages | |
CN107943921B (en) | Page sharing information generation method and device, computer equipment and storage medium | |
CN105824523A (en) | Method for downloading application software and mobile terminal | |
CN105354490A (en) | Method and device for processing hijacked browser | |
CN111679828A (en) | Data processing method and device, electronic equipment and storage medium | |
US8942534B2 (en) | Information processing apparatus, information processing method, program, and information processing system | |
CN114528510A (en) | Webpage data processing method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1229470 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |