CN109697263A - Page switching method and device - Google Patents

Page switching method and device Download PDF

Info

Publication number
CN109697263A
CN109697263A CN201811613691.7A CN201811613691A CN109697263A CN 109697263 A CN109697263 A CN 109697263A CN 201811613691 A CN201811613691 A CN 201811613691A CN 109697263 A CN109697263 A CN 109697263A
Authority
CN
China
Prior art keywords
page
identification information
touch track
switching
preset touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811613691.7A
Other languages
Chinese (zh)
Inventor
杨德立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811613691.7A priority Critical patent/CN109697263A/en
Publication of CN109697263A publication Critical patent/CN109697263A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a kind of page switching method and devices, are related to network technique field, solve the situation that flashes white occurred after existing browsing pages switching.Main technical schemes of the invention are as follows: detect whether to receive the corresponding preset touch track of browser label, the preset touch track is used to indicate switching current page;If receiving, then page identification information corresponding with current page URL is obtained from caching page info list, the corresponding multiple page load scripts of the browser label, and page URL corresponding with page load script and page identification information are cached in the caching page information list;According to the identification information in the direction of the preset touch track and the current page, target pages are obtained from caching page info list and load script;Script is loaded according to the target pages, the page after display switching.Present invention is mainly used for switching browsing pages.

Description

Page switching method and device
The application is the divisional application based on female case " page switching method and device ", female case " page switching method and dress Set " the applying date be on December 21st, 2015, application No. is 2015109697415, Publication No. CN105426538A.
Technical field
The present invention relates to network technique fields, more particularly to a kind of page switching method and device.
Background technique
In recent years, Internet technology is more and more mature with the continuous development of information technology, is browsed and believed by browser Breath has become a part in people's daily life, and the popularity rate of browser is also higher and higher.Wherein, the master that browser is supported Wanting one of function is exactly multiple Webpages to be carried in a browser label, and can carry out Webpage switching and show.
Currently, mainly being added by the same page corresponding in browser label when being switched over to browsing pages Carry the forward or backward that script webview realizes the page.However the switching that browsing pages are carried out by the same webview, Its essence is exactly to update to show different content of pages using the same webview, and the update of webview needs to render again Page up or lower one page of content, so will appear the situation that the page flashes white after switching the page, therefore the existing page advances It retreats transition effect to be restricted, is difficult to accomplish to seamlessly transit in the realization of transition effect.
Summary of the invention
In view of this, the present invention provides a kind of page switching method and device, main purpose is to improve switching browse page The effect in face.
According to the present invention on one side, a kind of page switching method is provided, this method comprises:
It detects whether to receive the corresponding preset touch track of browser label, the preset touch track, which is used to indicate, cuts Current page is changed, the browser label corresponds to multiple pages;
If receiving, page identification information corresponding with current page URL, institute are obtained from caching page info list It states and is cached with the corresponding multiple page load scripts of the browser label in caching page information list, and add with the page Carry the corresponding page URL of script and page identification information;
According to the identification information in the direction of the preset touch track and the current page, from caching page info list Middle acquisition target pages load script;
Script is loaded according to the target pages, the page after display switching.
According to the present invention on one side, a kind of page switching device is provided, which includes:
Detection unit, for detecting whether receiving the corresponding preset touch track of browser label, the preset touch Track is used to indicate switching current page, and the browser label corresponds to multiple pages;
Acquiring unit, if for receiving the corresponding preset touch track of browser label, from caching page info column Page identification information corresponding with current page URL is obtained in table, is cached with the browsing in the caching page information list The corresponding multiple pages of device label load script, and page URL corresponding with page load script and page identification information;
The acquiring unit is also used to the direction according to the preset touch track and the mark letter of the current page Breath obtains target pages from caching page info list and loads script;
Display unit, for loading script according to the target pages, the page after display switching.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
A kind of page switching method and device provided in an embodiment of the present invention, first detect whether to receive browser label Corresponding preset touch track, the preset touch track are used to indicate switching current page, and the browser label correspondence is more A page obtains page identification information corresponding with current page URL, institute from caching page info list if receiving It states and is cached with the corresponding multiple page load scripts of the browser label in caching page information list, and add with the page The corresponding page URL of script and page identification information are carried, then according to the direction of the preset touch track and the current page The identification information in face obtains target pages from caching page info list and loads script, finally added according to the target pages Carry script, the page after display switching.With the forward or backward for loading the script webview realization page by a page at present It compares, the present invention is to load script by the corresponding page of the different pages to switch over, and is realized between the different pages Switching, thus when solving the switching carried out by the same webview to browsing pages, the generated page flashes white situation, And then improve the transition effect of browsing pages.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of page switching method flow chart provided in an embodiment of the present invention;
Fig. 2 shows another page switching method flow charts provided in an embodiment of the present invention;
Fig. 3 shows a kind of page switching apparatus structure block diagram provided in an embodiment of the present invention;
Fig. 4 shows another page switching apparatus structure block diagram provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The advantages of to make technical solution of the present invention, is clearer, makees specifically to the present invention with reference to the accompanying drawings and examples It is bright.
The embodiment of the invention provides a kind of page switching methods, as shown in Figure 1, which comprises
101, it detects whether to receive the corresponding preset touch track of browser label.
Wherein, the preset touch track is used to indicate switching current page, and the browser label corresponds to multiple pages, Each browser label is a display window.It should be noted that the preset touch track can be according to the reality of user Border operational requirements are configured, and such as the touch track drawn to the right on the left of screen can be set as to switch the page forward;It will be from screen The touch track that curtain right side is drawn to the left is set as switching the page backward, or will double-click on the left of screen and be set as switching page forward Face will double-click on the right side of screen and be set as switching the page backward, and the embodiment of the present invention is not specifically limited.
If 102, receiving, page iden-tity letter corresponding with current page URL is obtained from caching page info list Breath.
Wherein, the corresponding multiple page load feet of the browser label are cached in the caching page information list Sheet, and page URL corresponding with page load script and page identification information, page load script are specifically as follows webpage Explicit function webview.The identification information of page place in caching page information list for the unique identification page Position, the identification information of the page is specifically to be defined according to the sequence of the addition page.In embodiments of the present invention, - 1 can be set by the initial value of the identification information of the page, when user newly increases a page by browser label, the page The corresponding identification information in face is just corresponding to add 1.For example, user is believed by the mark of increased first page of browser based tab navigation Breath is 0, and the identification information of second page is 1, and the identification information of the third page is 2, and so on calculating browser label The identification information of interior each page.For the embodiment of the present invention, page load script in page information list and clear is cached The page look in device label is corresponding, and can find the corresponding page from caching page info list by page URL Identification information and the page load script.
It should be noted that the present invention is by multi-page in TabPageFlipper function encapsulated tags ViewGroup manages class, and browser carries out load using multiple webview with the pages multiple in label and shows.One label pair Answer a WebViewTab function.It just by WebViewTab function setup is to allow when initial TabPageFlipper function. When increasing the page, corresponding webview object corresponding can be also added into TabPageFlipper, and add OnTouchListener event monitoring.In embodiments of the present invention, caching page information list can pass through function WebviewTab is managed, the list specifically can by be cached with the corresponding identification information of each page in browser label, The page loads script webview list mCachedPages and page URL, and the address page URL is used to identify shown page The corresponding address URL in face.
103, according to the identification information in the direction of the preset touch track and the current page, from caching page info Target pages are obtained in list loads script.
It is then root when the direction of the preset touch track is to draw to the left on the right side of screen for the embodiment of the present invention 1 is added to obtain the identification information of following page according to the corresponding identification information of current page is corresponding;When the preset touch track Direction is when drawing to the right on the left of screen, then is to subtract 1 according to the corresponding identification information correspondence of current page to obtain the previous page Identification information.Then corresponding target pages are obtained from caching page info list according to obtained page identification information to add Carry script.
For example, the direction of preset touch track is right left stroke on the left of screen, the corresponding instruction of the touch track is forward Switch the page, the corresponding identification information of current page is 2.Since the corresponding instruction of touch track preset in this example is to switch forward The page, and switching the page forward then is to subtract 1 according to the corresponding identification information correspondence of current page to obtain the mark of the previous page Information, therefore obtain the page that page identification information is 1 from caching page info list and load script, i.e., in caching page letter It ceases in list and page identification information is that the 1 corresponding page loads script.
104, script is loaded according to the target pages, the page after display switching.
For the embodiment of the present invention, script is loaded by the corresponding page of the different pages and is switched over, is realized not With the switching between the page, thus when solving the switching carried out by the same webview to browsing pages, generated page Face flashes white situation, and then improves the transition effect of browsing pages.
A kind of page switching method provided in an embodiment of the present invention first detects whether to receive browser label corresponding Preset touch track, the preset touch track are used to indicate switching current page, and the browser label corresponds to multiple pages, If receiving, page identification information corresponding with current page URL, the caching page are obtained from caching page info list It is cached with the corresponding multiple page load scripts of the browser label in the information list of face, and loads script pair with the page The page URL and page identification information answered, then according to the mark in the direction of the preset touch track and the current page Information obtains target pages from caching page info list and loads script, finally load script according to the target pages, shows The page after showing switching.Compared with loading the forward or backward that script webview realizes the page by a page at present, this hair Bright is to load script by the corresponding page of the different pages to switch over, and realizes the switching between the different pages, thus When solving the switching carried out by the same webview to browsing pages, the generated page flashes white situation, and then improves The transition effect of browsing pages.
The embodiment of the invention provides another page switching methods, as shown in Figure 2, which comprises
201, it detects whether to receive the corresponding preset touch track of browser label.
Wherein, the preset touch track is used to indicate switching current page, and the browser label corresponds to multiple pages, Each browser label is a display window.It should be noted that the preset touch track can be according to the reality of user Border operational requirements are configured, and such as the touch track drawn to the right on the left of screen can be set as to switch the page forward;It will be from screen The touch track that curtain right side is drawn to the left is set as switching the page backward, or will double-click on the left of screen and be set as switching page forward Face will double-click on the right side of screen and be set as switching the page backward, and the embodiment of the present invention is not specifically limited.
If 202, receiving, judge whether current page supports the preset touch track switching page.
It should be noted that due to there is the left and right of oneself to swipe processing, such as picture browsing in the page of certain websites The page, in this way when screen interface is drawn in left and right, user is more willing to the picture in switching display webpage, and non-switching browse page Face.Therefore, after receiving the corresponding preset touch track of browser label, need to judge whether current page supports preset touching Touch the track switching page, current page can be switched over if supporting, if do not support to be arranged according to Website page itself into The corresponding display operation of row.
If 203, current page supports preset touch track to switch the page, obtains and work as from caching page info list The corresponding page identification information of preceding page URL.
Wherein, the corresponding multiple page load feet of the browser label are cached in the caching page information list This, and page URL corresponding with page load script and page identification information, the page load script is web displaying Function webview.
204, according to the identification information in the direction of the preset touch track and the current page, from caching page info Target pages are obtained in list loads script.
It is then root when the direction of the preset touch track is to draw to the left on the right side of screen for the embodiment of the present invention 1 is added to obtain the identification information of following page according to the corresponding identification information of current page is corresponding;When the preset touch track Direction is when drawing to the right on the left of screen, then is to subtract 1 according to the corresponding identification information correspondence of current page to obtain the previous page Identification information.Then corresponding target pages are obtained from caching page info list according to obtained page identification information to add Carry script.
It is described to be believed according to the direction of the preset touch track and the mark of the current page for the embodiment of the present invention Breath, it includes: when the direction of the preset touch track is corresponding that target pages load script is obtained from caching page info list Instruction be then to be obtained and the identification information of the current page from the caching page information list when switching the page forward The page of the identification information of a corresponding upper page loads script;Or the corresponding instruction in direction when the preset touch track When to switch the page backward, then obtained from the caching page information list corresponding with the identification information of the current page The page of the identification information of next page loads script.
Further, before the step 204, the method also includes: according to corresponding multiple in the browser label The order of addition of the page is the identification information of each page configuration page, and match respectively for the identification information of each page Set the corresponding page load script, page URL;By the identification information of each corresponding page of the browser label and each The corresponding page load script of the identification information of a page, page URL are cached in the caching page information list.In this hair In bright embodiment, also it is cached with whether each page is corresponding supports preset touch track in the caching page information list Switch the result of the page.For the embodiment of the present invention, preset touch track whether is supported to switch page by each page is corresponding The result in face is saved in caching page information list, to the inspection efficiency of the page when can be improved the subsequent section page, thus Improve the efficiency of page switching.
205, script is loaded according to the target pages, the page after display switching.
It is described to load script according to the target pages for the embodiment of the present invention, if the page after display switching includes: There is no the marks of the identification information of a upper page corresponding with the identification information of the current page or next page Information then shows current page.The mark letter of a upper page corresponding with the identification information of the current page if it does not exist The identification information of breath or next page, by showing that current page can guarantee that user can normally get page letter Breath avoids the occurrence of the abnormal situation of display.
The page after the display switching includes: the page according to preset result of broadcast, after display switching;Worked as according to described The identification information of the corresponding upper page of the identification information of the preceding page or the identification information of next page correspond to described in updating The advancement commands on browser label bottom state column, the display state for retreating instruction.The preset result of broadcast can be persistently excellent Change, for example the transition effect between page-turning effect or other View and View, the embodiment of the present invention are not specifically limited.? In inventive embodiments, updates advancement commands in browser label bottom state column and retreat the display status information of instruction, it can be with Whether prompt user's current page can carry out forward or backward operation, when advancement commands are gray display in bottom state column, Then illustrate that current page is not available for advance page operation;When advancement commands are to be highlighted in bottom state column, then illustrate Current page can carry out advance page operation, and similar retrogressing instruction is also to be prompted by grey or highlighted display state Whether user can carry out back page operation.
Another kind page switching method provided in an embodiment of the present invention first detects whether that receiving browser label corresponds to Preset touch track, the preset touch track is used to indicate switching current page, and the browser label corresponds to multiple pages Face obtains page identification information corresponding with current page URL if receiving from caching page info list, described slow It deposits and is cached with the corresponding multiple page load scripts of the browser label in page info list, and load foot with the page This corresponding page URL and page identification information, then according to the direction of the preset touch track and the current page Identification information obtains target pages from caching page info list and loads script, finally loads foot according to the target pages This, the page after display switching.With the forward or backward phase for loading the script webview realization page by a page at present Than the present invention is to load script by the corresponding page of the different pages to switch over, and realizes cutting between the different pages It changes, thus when solving the switching carried out by the same webview to browsing pages, the generated page flashes white situation, into And improve the transition effect of browsing pages.
Further, the specific implementation as Fig. 1 the method, the embodiment of the present invention provide a kind of page switching device, As shown in figure 3, described device includes: detection unit 31, acquiring unit 32, display unit 33.
Detection unit 31, for detecting whether receiving the corresponding preset touch track of browser label, the preset touching It touches track and is used to indicate switching current page, the browser label corresponds to multiple pages;
Acquiring unit 32, if for receiving the corresponding preset touch track of browser label, from caching page info Page identification information corresponding with current page URL is obtained in list, is cached in the caching page information list described clear The corresponding multiple pages of device label of looking at load script, and page URL corresponding with page load script and page iden-tity are believed Breath;
The acquiring unit 32 is also used to the direction according to the preset touch track and the mark letter of the current page Breath obtains target pages from caching page info list and loads script;
Display unit 33, for loading script according to the target pages, the page after display switching.
It should be noted that other of each functional unit involved by a kind of page switching device provided in an embodiment of the present invention Corresponding description, can be with reference to the corresponding description in Fig. 1, and details are not described herein.
A kind of page switching device provided in an embodiment of the present invention first detects whether to receive browser label corresponding Preset touch track, the preset touch track are used to indicate switching current page, and the browser label corresponds to multiple pages, If receiving, page identification information corresponding with current page URL, the caching page are obtained from caching page info list It is cached with the corresponding multiple page load scripts of the browser label in the information list of face, and loads script pair with the page The page URL and page identification information answered, then according to the mark in the direction of the preset touch track and the current page Information obtains target pages from caching page info list and loads script, finally load script according to the target pages, shows The page after showing switching.Compared with loading the forward or backward that script webview realizes the page by a page at present, this hair Bright is to load script by the corresponding page of the different pages to switch over, and realizes the switching between the different pages, thus When solving the switching carried out by the same webview to browsing pages, the generated page flashes white situation, and then improves The transition effect of browsing pages.
Further, the specific implementation as Fig. 2 the method, the embodiment of the present invention provide another page switching dress It sets, as shown in figure 4, described device includes: detection unit 41, acquiring unit 42, display unit 43.
Detection unit 41, for detecting whether receiving the corresponding preset touch track of browser label, the preset touching It touches track and is used to indicate switching current page, the browser label corresponds to multiple pages;
Acquiring unit 42, if for receiving the corresponding preset touch track of browser label, from caching page info Page identification information corresponding with current page URL is obtained in list, is cached in the caching page information list described clear The corresponding multiple pages of device label of looking at load script, and page URL corresponding with page load script and page iden-tity are believed Breath;
The acquiring unit 42 is also used to the direction according to the preset touch track and the mark letter of the current page Breath obtains target pages from caching page info list and loads script;
Display unit 43, for loading script according to the target pages, the page after display switching.
Further, described device further include: judging unit 44;
The judging unit 44, for judging whether the current page supports the preset touch track switching page;
The acquiring unit 42 supports preset touch track to switch the page, postpones if being specifically used for the current page It deposits and obtains page identification information corresponding with current page URL in page info list.
The acquiring unit 42 switches forward page specifically for the corresponding instruction in the direction when the preset touch track When face, then a upper page corresponding with the identification information of the current page is obtained from the caching page information list The page of identification information loads script;
The acquiring unit 42 switches page specifically for the corresponding instruction in the direction when the preset touch track backward When face, then next page corresponding with the identification information of the current page is obtained from the caching page information list The page of identification information loads script.
The display unit 43, specifically for a upper page corresponding with the identification information of the current page if it does not exist The identification information of the identification information in face or next page, then show current page.
Further, the display unit 43 includes:
Display module 431, for the page according to preset result of broadcast, after display switching;
Update module 432, the identification information for the corresponding upper page of the identification information according to the current page Or the identification information of next page, the corresponding advancement commands for updating the browser label bottom state column retreat instruction Display state.
Further, described device further include:
Configuration unit 45 is each for the order of addition according to multiple pages corresponding in the browser label The identification information of the page configuration page, and the corresponding page is respectively configured for the identification information of each page and loads script, page Face URL;
Cache unit 46, for by the identification information of each corresponding page of the browser label and each page Identification information corresponding page load script, page URL is cached in the caching page information list.
Further, also it is cached with whether each page is corresponding supports preset touching in the caching page information list Touch the result of the track switching page.
For the embodiment of the present invention, the page load script is web displaying function webview.
It should be noted that its of each functional unit involved by another kind page switching device provided in an embodiment of the present invention He accordingly describes, can be with reference to the corresponding description in Fig. 2, and details are not described herein.
Another kind page switching device provided in an embodiment of the present invention first detects whether that receiving browser label corresponds to Preset touch track, the preset touch track is used to indicate switching current page, and the browser label corresponds to multiple pages Face obtains page identification information corresponding with current page URL if receiving from caching page info list, described slow It deposits and is cached with the corresponding multiple page load scripts of the browser label in page info list, and load foot with the page This corresponding page URL and page identification information, then according to the direction of the preset touch track and the current page Identification information obtains target pages from caching page info list and loads script, finally loads foot according to the target pages This, the page after display switching.With the forward or backward phase for loading the script webview realization page by a page at present Than the present invention is to load script by the corresponding page of the different pages to switch over, and realizes cutting between the different pages It changes, thus when solving the switching carried out by the same webview to browsing pages, the generated page flashes white situation, into And improve the transition effect of browsing pages.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) are realized in page switching method and device according to an embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all device or device programs (for example, computer program and computer program product).Such reality Existing program of the invention can store on a computer-readable medium, or may be in the form of one or more signals. Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or in any other forms It provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of page switching method, comprising:
It detects whether to receive the corresponding preset touch track of browser label, the preset touch track, which is used to indicate, cuts Current page is changed, the browser label corresponds to multiple pages;
If receiving, page identification information corresponding with current page URL, institute are obtained from caching page info list It states and is cached with the corresponding multiple page load scripts of the browser label in caching page information list, and add with the page Carry the corresponding page URL of script and page identification information;
According to the identification information in the direction of the preset touch track and the current page, from caching page info list Middle acquisition target pages load script;
Script is loaded according to the target pages, the page after display switching.
A2, method as described in a1, it is described to obtain the page corresponding with current page URL from caching page info list Before identification information, the method also includes:
Judge whether the current page supports the preset touch track switching page;
It is described to obtain corresponding with current page URL page identification information from caching page info list and include:
If supporting the preset touch track switching page, obtained and URL pairs of current page from caching page info list The page identification information answered.
A3, as described in A2 method, it is described according to the direction of the preset touch track and the mark of the current page Information, target pages load script is obtained from caching page info list includes:
When the corresponding instruction in the direction of the preset touch track is switches the page forward, then believe from the caching page Cease the page load script that the identification information of a upper page corresponding with the identification information of the current page is obtained in list; Or
When the corresponding instruction in the direction of the preset touch track is switches the page backward, then believe from the caching page Cease the page load script that the identification information of next page corresponding with the identification information of the current page is obtained in list.
A4, the method as described in A3, described to load script according to the target pages, the page after display switching includes:
The identification information or next of a upper page corresponding with the identification information of the current page if it does not exist The identification information of the page, then show current page.
A5, the method as described in A4, the page after the display switching include:
The page according to preset result of broadcast, after display switching;
According to the identification information of the corresponding upper page of the identification information of the current page or the mark of next page Know information, the corresponding advancement commands for updating the browser label bottom state column, the display state for retreating instruction.
A6, as described in A2 method, it is described to obtain the page corresponding with current page URL from caching page info list Before identification information, the method also includes:
It is the mark of each page configuration page according to the order of addition of multiple pages corresponding in the browser label Know information, and the corresponding page is respectively configured for the identification information of each page and loads script, page URL;
The identification information of each corresponding page of the browser label is corresponding with the identification information of each page The page load script, page URL be cached in the caching page information list.
A7, the method as described in A6, be also cached in the caching page information list each page it is corresponding whether Support the result of the preset touch track switching page.
A8, any one of such as A1-A7 the method, the page load script is web displaying function webview.
The invention discloses B9, a kind of page switching device, comprising:
Detection unit, for detecting whether receiving the corresponding preset touch track of browser label, the preset touch Track is used to indicate switching current page, and the browser label corresponds to multiple pages;
Acquiring unit, if for receiving the corresponding preset touch track of browser label, from caching page info column Page identification information corresponding with current page URL is obtained in table, is cached with the browsing in the caching page information list The corresponding multiple pages of device label load script, and page URL corresponding with page load script and page identification information;
The acquiring unit is also used to the direction according to the preset touch track and the mark letter of the current page Breath obtains target pages from caching page info list and loads script;
Display unit, for loading script according to the target pages, the page after display switching.
B10, the device as described in B9, described device further include: judging unit;
The judging unit, for judging whether the current page supports the preset touch track switching page;
The acquiring unit supports preset touch track to switch the page, from caching if being specifically used for the current page Page identification information corresponding with current page URL is obtained in page info list.
B11, the device as described in B 10,
The acquiring unit switches forward the page specifically for the corresponding instruction in the direction when the preset touch track When, then the mark of a upper page corresponding with the identification information of the current page is obtained from the caching page information list The page for knowing information loads script;
The acquiring unit switches the page specifically for the corresponding instruction in the direction when the preset touch track backward When, then the mark of next page corresponding with the identification information of the current page is obtained from the caching page information list The page for knowing information loads script.
B12, the device as described in B 11,
The display unit, specifically for a upper page corresponding with the identification information of the current page if it does not exist Identification information or next page identification information, then show current page.
B13, the device as described in B 12, the display unit include:
Display module, for the page according to preset result of broadcast, after display switching;
Update module, for the corresponding upper page of the identification information according to the current page identification information or under The identification information of one page, the corresponding advancement commands for updating the browser label bottom state column, the display for retreating instruction State.
B14, the device as described in B 10, described device further include:
Configuration unit is each page for the order of addition according to multiple pages corresponding in the browser label Face configures the identification information of the page, and the corresponding page is respectively configured for the identification information of each page and loads script, the page URL;
Cache unit, for by the identification information of each corresponding page of the browser label and each page The corresponding page load script of identification information, page URL are cached in the caching page information list.
B15, the device as described in B14, are also cached with that each page is corresponding to be in the caching page information list The no result for supporting the preset touch track switching page.
B16, any one of such as B9-B15 the method, the page load script is web displaying function webview.

Claims (10)

1. a kind of page switching method characterized by comprising
It detects whether to receive the corresponding preset touch track of browser label, the preset touch track is used to indicate switching and works as The preceding page, the browser label correspond to multiple pages;
If receiving, page identification information corresponding with current page URL is obtained from caching page info list, it is described slow It deposits and is cached with the corresponding multiple page load scripts of the browser label in page info list, and load foot with the page This corresponding page URL and page identification information;
According to the identification information in the direction of the preset touch track and the current page, obtained from caching page info list Target pages are taken to load script;
Script is loaded according to the target pages, the page after display switching.
2. the method according to claim 1, wherein acquisition and the current page from caching page info list Before the corresponding page identification information of face URL, the method also includes:
Judge whether the current page supports the preset touch track switching page;
It is described to obtain corresponding with current page URL page identification information from caching page info list and include:
If supporting the preset touch track switching page, obtained from caching page info list corresponding with current page URL Page identification information.
3. according to the method described in claim 2, it is characterized in that, the direction according to the preset touch track and described The identification information of current page, target pages load script is obtained from caching page info list includes:
When the corresponding instruction in the direction of the preset touch track is switches the page forward, then arranged from the caching page info The page that the identification information of a upper page corresponding with the identification information of the current page is obtained in table loads script;Or
When the corresponding instruction in the direction of the preset touch track is switches the page backward, then arranged from the caching page info The page that the identification information of next page corresponding with the identification information of the current page is obtained in table loads script.
4. according to the method described in claim 3, display is cut it is characterized in that, described load script according to the target pages The page after changing includes:
The identification information or next page of a upper page corresponding with the identification information of the current page if it does not exist Identification information, then show current page.
5. according to the method described in claim 4, it is characterized in that, the page after the display switching includes:
The page according to preset result of broadcast, after display switching;
Believed according to the mark of the identification information of the corresponding upper page of the identification information of the current page or next page Breath, the corresponding advancement commands for updating the browser label bottom state column, the display state for retreating instruction.
6. a kind of page switching device characterized by comprising
Detection unit, for detecting whether receiving the corresponding preset touch track of browser label, the preset touch track It is used to indicate switching current page, the browser label corresponds to multiple pages;
Acquiring unit, if for receiving the corresponding preset touch track of browser label, from caching page info list Page identification information corresponding with current page URL is obtained, is cached with the browser mark in the caching page information list Sign corresponding multiple page load scripts, and page URL corresponding with page load script and page identification information;
The acquiring unit is also used to the direction according to the preset touch track and the identification information of the current page, from It caches and obtains target pages load script in page information list;
Display unit, for loading script according to the target pages, the page after display switching.
7. device according to claim 6, which is characterized in that described device further include: judging unit;
The judging unit, for judging whether the current page supports the preset touch track switching page;
The acquiring unit supports preset touch track to switch the page if being specifically used for the current page, from the caching page Page identification information corresponding with current page URL is obtained in information list.
8. device according to claim 7, which is characterized in that
The acquiring unit, specifically for when the direction of the preset touch track it is corresponding instruction for forward switch the page when, The mark of a upper page corresponding with the identification information of the current page is then obtained from the caching page information list The page of information loads script;
The acquiring unit, specifically for when the direction of the preset touch track it is corresponding instruction for backward switch the page when, The mark of next page corresponding with the identification information of the current page is then obtained from the caching page information list The page of information loads script.
9. device according to claim 8, which is characterized in that
The display unit, specifically for the mark of a upper page corresponding with the identification information of the current page if it does not exist The identification information for knowing information or next page, then show current page.
10. device according to claim 9, which is characterized in that the display unit includes:
Display module, for the page according to preset result of broadcast, after display switching;
Update module, for the identification information of the corresponding upper page of the identification information according to the current page or next The identification information of the page, the corresponding advancement commands for updating the browser label bottom state column, the display state for retreating instruction.
CN201811613691.7A 2015-12-21 2015-12-21 Page switching method and device Pending CN109697263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811613691.7A CN109697263A (en) 2015-12-21 2015-12-21 Page switching method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811613691.7A CN109697263A (en) 2015-12-21 2015-12-21 Page switching method and device
CN201510969741.5A CN105426538B (en) 2015-12-21 2015-12-21 Page switching method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510969741.5A Division CN105426538B (en) 2015-12-21 2015-12-21 Page switching method and device

Publications (1)

Publication Number Publication Date
CN109697263A true CN109697263A (en) 2019-04-30

Family

ID=55504750

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201811613691.7A Pending CN109697263A (en) 2015-12-21 2015-12-21 Page switching method and device
CN201510969741.5A Active CN105426538B (en) 2015-12-21 2015-12-21 Page switching method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510969741.5A Active CN105426538B (en) 2015-12-21 2015-12-21 Page switching method and device

Country Status (2)

Country Link
CN (2) CN109697263A (en)
WO (1) WO2017107834A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857915A (en) * 2020-07-06 2020-10-30 北京字节跳动网络技术有限公司 Application page display method and device
CN112748843A (en) * 2021-01-29 2021-05-04 腾讯科技(深圳)有限公司 Page switching method and device, computer equipment and storage medium

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697263A (en) * 2015-12-21 2019-04-30 北京奇虎科技有限公司 Page switching method and device
CN105528439B (en) * 2015-12-21 2019-03-05 北京奇虎科技有限公司 Page switching method and device in browser label
CN107870929A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The page turning method and system of five application page under Hybrid frameworks
CN106445302A (en) * 2016-09-30 2017-02-22 惠州Tcl移动通信有限公司 Method and system for reading pages by aid of intelligent mobile terminals
CN106775227B (en) * 2016-12-06 2019-08-06 福建天泉教育科技有限公司 A kind of method and system of page switching
CN107193880B (en) * 2017-04-26 2020-05-19 北京潘达互娱科技有限公司 Page jump method and device
CN108322359A (en) * 2018-01-08 2018-07-24 阿里巴巴集团控股有限公司 A kind of acquisition methods and device of page initial screen time
CN108427622A (en) * 2018-04-08 2018-08-21 平安普惠企业管理有限公司 A kind of EMS memory management process, device, computer equipment and storage medium
CN110765377B (en) * 2018-07-27 2023-05-23 北京华通人商用信息有限公司 Data loading method and device
CN111857855B (en) * 2019-04-01 2021-10-29 南京星云数字技术有限公司 Webpage loading method and device and intelligent equipment
CN111831942A (en) * 2019-04-15 2020-10-27 阿里巴巴集团控股有限公司 Method and device for displaying search results on page and electronic equipment
CN110119490A (en) * 2019-04-18 2019-08-13 深圳壹账通智能科技有限公司 Web browser method, device, computer equipment and storage medium
CN110276029A (en) * 2019-05-20 2019-09-24 中国平安财产保险股份有限公司 Tab page switching method, electronic device and storage medium
CN112162677B (en) * 2020-09-11 2022-04-22 北京浪潮数据技术有限公司 Menu page label positioning method, device, equipment and storage medium
CN112163173A (en) * 2020-09-22 2021-01-01 Oppo(重庆)智能科技有限公司 Webpage loading method and device, electronic equipment and computer readable storage medium
CN113064802B (en) * 2021-03-17 2023-02-07 平安普惠企业管理有限公司 Operation track restoration method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309563A (en) * 2013-06-28 2013-09-18 贝壳网际(北京)安全技术有限公司 Displayed page switching method and device
CN104199603A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Browser webpage control method and device and terminal
CN104331260A (en) * 2014-03-05 2015-02-04 广州三星通信技术研究有限公司 Method and equipment for displaying web pages on screen
CN104461632A (en) * 2014-12-09 2015-03-25 东软集团股份有限公司 Web App loading method and device
US20150095836A1 (en) * 2012-06-13 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, apparatus and computer storage medium for switching pages

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9645733B2 (en) * 2011-12-06 2017-05-09 Google Inc. Mechanism for switching between document viewing windows
CN102855318B (en) * 2012-08-31 2015-05-27 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN103995660B (en) * 2013-02-20 2018-08-03 腾讯科技(深圳)有限公司 The method and device of touch screen browser switch window
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages
CN109697263A (en) * 2015-12-21 2019-04-30 北京奇虎科技有限公司 Page switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095836A1 (en) * 2012-06-13 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, apparatus and computer storage medium for switching pages
CN103309563A (en) * 2013-06-28 2013-09-18 贝壳网际(北京)安全技术有限公司 Displayed page switching method and device
CN104331260A (en) * 2014-03-05 2015-02-04 广州三星通信技术研究有限公司 Method and equipment for displaying web pages on screen
CN104199603A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Browser webpage control method and device and terminal
CN104461632A (en) * 2014-12-09 2015-03-25 东软集团股份有限公司 Web App loading method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高凯,王俊社,仇晶: "《Android智能手机软件开发教程》", 30 June 2012 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857915A (en) * 2020-07-06 2020-10-30 北京字节跳动网络技术有限公司 Application page display method and device
CN111857915B (en) * 2020-07-06 2023-12-26 抖音视界有限公司 Application page display method and device
CN112748843A (en) * 2021-01-29 2021-05-04 腾讯科技(深圳)有限公司 Page switching method and device, computer equipment and storage medium
CN112748843B (en) * 2021-01-29 2022-06-03 腾讯科技(深圳)有限公司 Page switching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2017107834A1 (en) 2017-06-29
CN105426538B (en) 2019-02-12
CN105426538A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105426538B (en) Page switching method and device
CN105528439B (en) Page switching method and device in browser label
US9436772B2 (en) Appending a uniform resource identifier (URI) fragment identifier to a uniform resource locator (URL)
US20180032489A1 (en) Optimization for rendering web pages
US10037713B2 (en) System and method for providing additional content on a webpage
CN107368487A (en) A kind of page assembly Dynamic Distribution method, apparatus and client
US10409899B2 (en) Method, device and mobile terminal for processing webpage in night mode
US9612715B2 (en) Real-time preview of uniform resource identifier addressable dynamic content
CN103631893B (en) A kind of browser control method and browser
US20130311869A1 (en) Group bookmarks
CN104199603B (en) Browser webpage control method and device and terminal
US10929006B2 (en) User interface for recommended alternative search queries
CN103336817B (en) A kind of method and apparatus of webpage zoom on electronic equipment
CN105528200B (en) Display method and device of browser tab
CN105160028B (en) Web page browsing implementation method and browser realize system
CN109740092B (en) Browser system, message processing method, electronic device, and storage medium
CN105260433A (en) Webpage content collecting method and electronic device
CN105426524A (en) Web interface displaying method and device
US20170346702A1 (en) Computer implemented method for displaying a user interface
CN105389393B (en) The method of adjustment and device of display information of browser in browser recommendation list
CN105279245A (en) Method for collecting contents on webpage and electronic device
CN105260383B (en) It is a kind of for showing the processing method and electronic equipment of Web page image information
EP3043251A1 (en) Method of displaying content and electronic device implementing same
CN102915378A (en) Method and device for changing display status of contents in webpage
CN105701124A (en) Method and apparatus for providing prompt information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190430