Invention content
The present invention is based on the above problem, it is proposed that a kind of new technical solution keeps user more convenient, quick
Ground is back to the page for wanting return, to which the user experience is improved.
In view of this, the first aspect of the present invention proposes a kind of method that the page returns, including:Detection touches preset areas
Domain duration interval;According to the value of the time interval, selection and the time interval in the history page of caching
The corresponding page of value as the page to be shown;Show the page to be shown.
In the technical scheme, it (is touched pre- according to the value for touching predeterminable area duration interval detected
If the value of the duration in region), the page in the history page of display caching can return directly to cache thereby using family
History page in user want the page (page i.e. to be shown) returned, avoiding user and repeatedly touching return push-button can just return
Be back to user and want the page returned, thereby using family can it is more convenient, quickly carry out page return, and then improve use
It experiences at family.
In the above-mentioned technical solutions, it is preferable that described slow when the value of the time interval is not less than preset threshold value
Select the page corresponding with the value of the time interval as the page to be shown in the history page deposited, including:Described in selection
The page browsed earliest in history page is as the page to be shown.
In the technical scheme, when the value for touching predeterminable area duration interval is greater than or equal to preset threshold value
When, the page browsed earliest in the history page of display caching is more convenient thereby using family, be quickly back to quilt earliest
The page of browsing.
In any of the above-described technical solution, it is preferable that the selection in the history page of caching and the time interval
The corresponding page of value as the page to be shown before, the method further includes:To the history page of the caching according to quilt
The chronological order of browsing is ranked up;Then, described in caching when the value of the time interval is less than preset threshold value
Select the page corresponding with the value of the time interval as the page to be shown in history page, including:In the caching
Select i-th of page as the page to be shown in history page, wherein
In the technical scheme, the history page of caching is ranked up according to the chronological order browsed, then root
The page to be shown is selected according to the chronological order that history page is browsed, that is, detects and touches predeterminable area duration
Interval is longer, and the page of display is more forward, also just facilitates user rapidly user to be selected to want in history page so aobvious
The page shown.In addition, in i-th of page in calculating history page by above-mentioned formula, since the value of calculated i can
Can not be integer, therefore, after calculating i, the value rounding to calculated i.
In the above-mentioned technical solutions, it is preferable that i-th of page is selected to be waited for as described in the history page of the caching
Before the step of showing the page, including:Judge whether the value of the time interval of the touch predeterminable area detected is more than certain threshold
Value;When the determination result is yes, it executes and selects i-th of page as the page to be shown in the history page of the caching
Step.
In the technical scheme, if detect that user touches the value of the time interval of predeterminable area less than specific threshold
(for example, 0.1 second) illustrates the possible mistaken touch predeterminable area of user, does not then execute the selection page to be shown, that is, be still in current
In the page, cause the page to return due to false triggering so as to avoid user, and then promotes the reliability of terminal operation.
In any of the above-described technical solution, it is preferable that the selection in the history page of caching and the time interval
The corresponding page of value as the page to be shown, including:In the history page of the caching, selection and the time interval
The corresponding page set of value;Detection touches predeterminable area duration interval again;According to touch again when
Between be spaced, select the page corresponding with the value of the time interval touched again to be waited for as described in from the page set
Show the page.
In the technical scheme, by selecting page set corresponding with the value of time interval, and according to detecting again
To touch predeterminable area duration be spaced in page set and select the page to be shown, further increase page
The accuracy that face returns.For example, the history page of caching is divided into multiple page sets, multiple page set includes Baidu
Set, the Taobao's page set of page set, 58 with the city page, according to the first time interval for touching predeterminable area multiple
Baidu's page set is selected in page set, then according to the time interval of touch predeterminable area again in Baidu's page set
In multiple pages in select the page of Baidupedia to be shown.
In any of the above-described technical solution, it is preferable that select corresponding with the value of time interval page set it
Afterwards, the method further includes:Prompt message is exported, the prompt message is for prompting the user whether to select the page set.
In the technical scheme, it after selecting page set corresponding with the value of time interval, prompts the user whether to select
The page set is selected, to determine that user wants the page of return whether in the page set.Preferably, it is not selected if receiving
The instruction of the page set then shows multiple page sets, so that user selects target pages collection in multiple page sets
It closes.
The second aspect of the present invention proposes a kind of device that the page returns, including:Detection unit touches in advance for detecting
If region duration interval;Selecting unit, the value of the time interval for being detected according to the detection unit,
Select the page corresponding with the value of the time interval as the page to be shown in the history page of caching;Display unit,
The page to be shown for showing the selecting unit selection.
In the technical scheme, it (is touched pre- according to the value for touching predeterminable area duration interval detected
If the value of the duration in region), the page in the history page of display caching can return directly to cache thereby using family
History page in user want the page (page i.e. to be shown) returned, avoiding user and repeatedly touching return push-button can just return
Be back to user and want the page returned, thereby using family can it is more convenient, quickly carry out page return, and then improve use
It experiences at family.
In the above-mentioned technical solutions, it is preferable that when the value of the time interval is not less than preset threshold value, the selection
Unit is specifically used for, and selects the page browsed earliest in the history page as the page to be shown.
In the technical scheme, when the value for touching predeterminable area duration interval is greater than or equal to preset threshold value
When, the page browsed earliest in the history page of display caching is more convenient thereby using family, be quickly back to quilt earliest
The page of browsing.
In any of the above-described technical solution, it is preferable that described device further includes:Sequencing unit, for the caching
History page is ranked up according to the chronological order browsed;Then, when the value of the time interval is less than preset threshold value
When, the selecting unit is specifically used for, and selects i-th of page as the page to be shown in the history page of the caching
Face, wherein
In the technical scheme, the history page of caching is ranked up according to the chronological order browsed, then may be used
The page to be shown is selected with the chronological order browsed according to history page, that is, detects that touch predeterminable area is lasting
Time interval is longer, and the page of display is more forward, aobvious to facilitate user rapidly user to be selected to want in history page
The page shown.In addition, in i-th of page in calculating history page by above-mentioned formula, since the value of calculated i can
Can not be integer, therefore, after calculating i, the value rounding to calculated i.
In the above-mentioned technical solutions, it is preferable that selecting unit is specifically used for, the touch predeterminable area for judging to detect when
Between the value that is spaced whether be more than specific threshold;When the determination result is yes, it executes and is selected in the history page of the caching i-th
The step of page is as the page to be shown.
In the technical scheme, if detect that user touches the value of the time interval of predeterminable area less than specific threshold
(for example, 0.1 second) illustrates the possible mistaken touch predeterminable area of user, does not then execute the selection page to be shown, that is, be still in current
In the page, cause the page to return due to false triggering so as to avoid user, and then promotes the reliability of terminal operation.
In any of the above-described technical solution, it is preferable that the selecting unit is additionally operable to, in the history page of the caching
In, select page set corresponding with the value of the time interval;The detection unit is additionally operable to, and detection again touches described pre-
If region duration interval;The selecting unit is specifically used for, according to the time interval touched again, from the page
Select the page corresponding with the value of the time interval touched again as the page to be shown in set.
In the technical scheme, by selecting page set corresponding with the value of time interval, and according to detecting again
To touch predeterminable area duration be spaced in page set and select the page to be shown, further increase page
The accuracy that face returns.For example, the history page of caching is divided into multiple page sets, multiple page set includes Baidu
Set, the Taobao's page set of page set, 58 with the city page, according to the first time interval for touching predeterminable area multiple
Baidu's page set is selected in page set, then according to the time interval of touch predeterminable area again in Baidu's page set
In multiple pages in select the page of Baidupedia to be shown.
In any of the above-described technical solution, it is preferable that described device further includes:Prompt unit, for exporting prompt message,
The prompt message is for prompting the user whether to select the page set.
In the technical scheme, it after selecting page set corresponding with the value of time interval, prompts the user whether to select
The page set is selected, to determine that user wants the page of return whether in the page set.Preferably, it is not selected if receiving
The instruction of the page set then shows multiple page sets, so that user selects target pages collection in multiple page sets
It closes.
The page that the third aspect of the invention proposes described in any one of a kind of terminal, including above-mentioned technical proposal returns
The device returned, therefore, the terminal are imitated with technology identical with the device that above-mentioned technical proposal any one of them page returns
Fruit, details are not described herein.
Technical solution through the invention allows the page that user is more convenient, is quickly back to desired return, from
And the user experience is improved.
Specific implementation mode
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the flow diagram for the method that the page according to an embodiment of the invention returns.
As shown in Figure 1, the method that the page according to an embodiment of the invention returns, including:
Step 102, detection touches predeterminable area duration interval;
Step 104, according to the value of the time interval, the value of selection and the time interval in the history page of caching
The corresponding page is as the page to be shown;
Step 106, the page to be shown is shown.
In the technical scheme, predeterminable area is including but not limited to the predeterminated position of current display interface, pre-set button, pre-
If icon etc..For example, pre-set button can be the return push-button etc. in current display page.It is default according to the touch detected
The value (value for touching the duration of predeterminable area) at region duration interval, in the history page of display caching
The page can return directly to user in the history page of caching thereby using family and want the page (page i.e. to be shown returned
Face), it avoids user and repeatedly touches return push-button just and can be back to user and want the page returned, it can be more thereby using family
Page return is quickly and easily carried out, and then the user experience is improved.
In the above-mentioned technical solutions, it is preferable that when the value of the time interval is not less than preset threshold value, step 104
Including:Select the page browsed earliest in the history page as the page to be shown.
In the technical scheme, when the value for touching predeterminable area duration interval is greater than or equal to preset threshold value
When, the page browsed earliest in the history page of display caching is more convenient thereby using family, be quickly back to quilt earliest
The page of browsing.
In any of the above-described technical solution, it is preferable that before step 104, the method further includes:The caching is gone through
The history page is ranked up according to the chronological order browsed;Then, when the value of the time interval is less than preset threshold value,
It is described to select the page corresponding with the value of the time interval as the page to be shown in the history page of caching, including:
Select i-th of page as the page to be shown in the history page of the caching, wherein
In the technical scheme, the history page of caching is ranked up according to the chronological order browsed, then may be used
The page to be shown is selected with the chronological order browsed according to history page, that is, detects that touch predeterminable area is lasting
Time interval is longer, and the page of display is more forward, aobvious to facilitate user rapidly user to be selected to want in history page
The page shown.In addition, in i-th of page in calculating history page by above-mentioned formula, since the value of calculated i can
Can not be integer, therefore, after calculating i, the value rounding to calculated i.
It specifically, can be according to taking big principle to calculated i values rounding, for example, calculated i values are in section (0,1)
Interior, the i values after rounding are 1, and for calculated i values in section (1,2), the i values after rounding are 2, and so on.
For example, the history page of caching is ranked up according to the chronological order browsed, wherein the history of caching
Page quantity is 9, and the 1st is the page browsed earliest, and the 9th is the last page browsed, and preset threshold value is 5 seconds.
When the value that user touches the time interval of predeterminable area is 0.2 second, then calculated i is equal to 8.64, and the i after rounding is 9, then shows
The page for showing the 9th caching shows the page of last browsing.When the value that user touches the time interval of predeterminable area is 1
Second, then calculated i is equal to 7.2, and the i after rounding is 8, then the page of the 8th caching of display, i.e. the display upper last time browses
The page.When the value that user touches the time interval of predeterminable area is 3 seconds, then calculated i is equal to 3.6, and the i after rounding is 4, then
Show the page of the 4th caching.When the value that user touches the time interval of predeterminable area is 4.5 seconds, then calculated i is equal to
0.9, the i after rounding is 1, then shows the page of the 1st caching, that is, show the page browsed earliest.As it can be seen that touching preset areas
The time in domain is longer, and the page of display is more forward.
Alternatively, it is also possible to according to other rule to calculated i values rounding, for example, work as calculated i values section (0,
1) when in, the i values after rounding are 1, when calculated i values are when section (1,8) is interior, according to the principle to round up to calculating
The i value roundings gone out, when calculated i values are when section (8,9) are interior, the i values after rounding are 9.
For example, the history page of caching is ranked up according to the chronological order browsed, wherein the history of caching
Page quantity is 10, and the 1st is the page browsed earliest, and the 10th is the page browsed last time, and preset threshold value is 5 seconds.
When the value that user touches the time interval of predeterminable area is 0.2 second, then calculated i is equal to 9.6, and the i after rounding is 9, then shows
Show the page of the 9th caching, that is, shows the page of browsing of upper last time.When the value that user touches the time interval of predeterminable area is 4
Second, then calculated i is equal to 2, then shows the page of the 2nd caching.When the value that user touches the time interval of predeterminable area is
4.8 seconds, then for calculated i equal to 0.4, the i after rounding is 1, then shows the page of the 1st caching, that is, show and browsed earliest
The page.
In the above-mentioned technical solutions, it is preferable that i-th of page is selected to be waited for as described in the history page of the caching
Before the step of showing the page, including:Judge whether the value of the time interval of the touch predeterminable area detected is more than certain threshold
Value;When the determination result is yes, it executes and selects i-th of page as the page to be shown in the history page of the caching
Step.
In the technical scheme, if detect that user touches the value of the time interval of predeterminable area less than specific threshold
(for example, 0.1 second) illustrates the possible mistaken touch predeterminable area of user, does not then execute the selection page to be shown, that is, be still in current
In the page, cause the page to return due to false triggering so as to avoid user, and then promotes the reliability of terminal operation.
In any of the above-described technical solution, it is preferable that step 104 includes:In the history page of the caching, selection with
The corresponding page set of value of the time interval;Detection touches predeterminable area duration interval again;According to
The time interval touched again selects page corresponding with the value of the time interval touched again from the page set
Face is as the page to be shown.
In the technical scheme, by selecting page set corresponding with the value of time interval, and according to detecting again
To touch predeterminable area duration be spaced in page set and select the page to be shown, further increase page
The accuracy that face returns.For example, the history page of caching is divided into multiple page sets, multiple page set includes Baidu
Set, the Taobao's page set of page set, 58 with the city page, if touch time interval section (0,2] in, then select hundred
Spend page set, if the time interval touched section (2,4] in, then select 58 with city page set, if between the time touched
Be interposed between section (4,6] in, then select Taobao's page set.Therefore, if the time interval for touching predeterminable area for the first time is 1.6 seconds,
Baidu's page set is then selected, then basis touches multiple hundred of the time interval of predeterminable area in Baidu's page set again
The page to be shown is selected in the degree page.
Wherein, if the time interval for touching predeterminable area for the first time is more than 6 seconds, if for example, the time interval touched is in section
(6,8] in, then select Baidu's page set, if the time interval touched section (8,10] in, then select 58 with city page set
It closes, is recycled and analogized with this, this is no longer going to repeat them.For another example being more than 6 seconds touching the time interval of predeterminable area for the first time
When, prompt user to touch the overlong time of predeterminable area, and user is prompted to touch predeterminable area again.
Moreover, being selected in basis touches the multiple pages of the time interval of predeterminable area in Baidu's page set again
When the page of Baidupedia to be shown, specifically, similar to it is above-mentioned selected in the history page of caching i-th of page as
The scheme of the page to be shown selects i-th of hundred degree of pages as to be shown in multiple Baidu's pages in Baidu's page set
The page no longer specifically repeats again.For example, i-th of page is the Baidupedia page, then what is finally returned that is Baidupedia page
Face.
In any of the above-described technical solution, it is preferable that select corresponding with the value of time interval page set it
Afterwards, the method further includes:Prompt message is exported, the prompt message is for prompting the user whether to select the page set.
In the technical scheme, it after selecting page set corresponding with the value of time interval, prompts the user whether to select
The page set is selected, to determine that user wants the page of return whether in the page set.Preferably, it is not selected if receiving
The instruction of the page set then shows multiple page sets, so that user selects target pages collection in multiple page sets
It closes.
Fig. 2 shows the structural schematic diagrams for the device that the page according to an embodiment of the invention returns.
As shown in Fig. 2, the device 200 that the page according to an embodiment of the invention returns, including:Detection unit 202,
Selecting unit 204 and display unit 206, the detection unit 202 touch predeterminable area duration interval for detecting;
The selecting unit 204, the value of the time interval for being detected according to the detection unit 202, in the history of caching
Select the page corresponding with the value of the time interval as the page to be shown in the page;The display unit 206, for showing
Show the page to be shown that the selecting unit 204 selects.
In the technical scheme, predeterminable area is including but not limited to the predeterminated position of current display interface, pre-set button, pre-
If icon etc..For example, pre-set button can be the return push-button etc. in current display page.It is default according to the touch detected
The value (value for touching the duration of predeterminable area) at region duration interval, in the history page of display caching
The page can return directly to user in the history page of caching thereby using family and want the page (page i.e. to be shown returned
Face), it avoids user and repeatedly touches return push-button just and can be back to user and want the page returned, it can be more thereby using family
Page return is quickly and easily carried out, and then the user experience is improved.
In the above-mentioned technical solutions, it is preferable that when the value of the time interval is not less than preset threshold value, the selection
Unit 204 is specifically used for, and selects the page browsed earliest in the history page as the page to be shown.
In the technical scheme, when the value for touching predeterminable area duration interval is greater than or equal to preset threshold value
When, the page browsed earliest in the history page of display caching is more convenient thereby using family, be quickly back to quilt earliest
The page of browsing.
In any of the above-described technical solution, it is preferable that described device further includes:Sequencing unit 208, for the caching
History page be ranked up according to the chronological order browsed;Then, when the value of the time interval is less than preset threshold
When value, the selecting unit 204 is specifically used for, and i-th of page is selected to wait showing as described in the history page of the caching
Show the page, wherein
In the technical scheme, the history page of caching is ranked up according to the chronological order browsed, then may be used
The page to be shown is selected with the chronological order browsed according to history page, that is, detects that touch predeterminable area is lasting
Time interval is longer, and the page of display is more forward, aobvious to facilitate user rapidly user to be selected to want in history page
The page shown.In addition, in i-th of page in calculating history page by above-mentioned formula, since the value of calculated i can
Can not be integer, therefore, after calculating i, the value rounding to calculated i.Specifically, can according to take big principle to calculate
The i value roundings gone out, for example, calculated i values are in section (0,1), the i values after rounding are 1, and calculated i values are in section
In (1,2), the i values after rounding are 2, and so on.
For example, the history page of caching is ranked up according to the chronological order browsed, wherein the history of caching
Page quantity is 9, and the 1st is the page browsed earliest, and the 9th is the last page browsed, and preset threshold value is 5 seconds.
When the value that user touches the time interval of predeterminable area is 0.2 second, then calculated i is equal to 8.64, and the i after rounding is 9, then shows
The page for showing the 9th caching shows the page of last browsing.When the value that user touches the time interval of predeterminable area is 1
Second, then calculated i is equal to 7.2, and the i after rounding is 8, then the page of the 8th caching of display, i.e. the display upper last time browses
The page.When the value that user touches the time interval of predeterminable area is 3 seconds, then calculated i is equal to 3.6, and the i after rounding is 4, then
Show the page of the 4th caching.When the value that user touches the time interval of predeterminable area is 4.5 seconds, then calculated i is equal to
0.9, the i after rounding is 1, then shows the page of the 1st caching, that is, show the page browsed earliest.As it can be seen that touching preset areas
The time in domain is longer, and the page of display is more forward.
Alternatively, it is also possible to according to other rule to calculated i values rounding, for example, work as calculated i values section (0,
1) when in, the i values after rounding are 1, when calculated i values are when section (1,8) is interior, according to the principle to round up to calculating
The i value roundings gone out, when calculated i values are when section (8,9) are interior, the i values after rounding are 9.
For example, the history page of caching is ranked up according to the chronological order browsed, wherein the history of caching
Page quantity is 10, and the 1st is the page browsed earliest, and the 10th is the page browsed last time, and preset threshold value is 5 seconds.
When the value that user touches the time interval of predeterminable area is 0.2 second, then calculated i is equal to 9.6, and the i after rounding is 9, then shows
Show the page of the 9th caching, that is, shows the page of browsing of upper last time.When the value that user touches the time interval of predeterminable area is 4
Second, then calculated i is equal to 2, then shows the page of the 2nd caching.When the value that user touches the time interval of predeterminable area is
4.8 seconds, then for calculated i equal to 0.4, the i after rounding is 1, then shows the page of the 1st caching, that is, show and browsed earliest
The page.
In the above-mentioned technical solutions, it is preferable that selecting unit is specifically used for, the touch predeterminable area for judging to detect when
Between the value that is spaced whether be more than specific threshold;When the determination result is yes, it executes and is selected in the history page of the caching i-th
The step of page is as the page to be shown.
In the technical scheme, if detect that user touches the value of the time interval of predeterminable area less than specific threshold
(for example, 0.1 second) illustrates the possible mistaken touch predeterminable area of user, does not then execute the selection page to be shown, that is, be still in current
In the page, cause the page to return due to false triggering so as to avoid user, and then promotes the reliability of terminal operation.
In any of the above-described technical solution, it is preferable that the selecting unit 204 is additionally operable to, in the history page of the caching
In face, page set corresponding with the value of the time interval is selected;The detection unit 202 is additionally operable to, and detection again touches
Predeterminable area duration interval;The selecting unit 204 is specifically used for, according to the time interval touched again,
Select the page corresponding with the value of the time interval touched again as the page to be shown from the page set
Face.
In the technical scheme, by selecting page set corresponding with the value of time interval, and according to detecting again
To touch predeterminable area duration be spaced in page set and select the page to be shown, further increase page
The accuracy that face returns.For example, the history page of caching is divided into multiple page sets, multiple page set includes Baidu
Set, the Taobao's page set of page set, 58 with the city page, if touch time interval section (0,2] in, then select hundred
Spend page set, if the time interval touched section (2,4] in, then select 58 with city page set, if between the time touched
Be interposed between section (4,6] in, then select Taobao's page set.Therefore, if the time interval for touching predeterminable area for the first time is 1.6 seconds,
Baidu's page set is then selected, then multiple pages according to the time interval of touch predeterminable area again in Baidu's page set
The page to be shown is selected in face.
Wherein, if the time interval for touching predeterminable area for the first time is more than 6 seconds, if for example, the time interval touched is in section
(6,8] in, then select Baidu's page set, if the time interval touched section (8,10] in, then select 58 with city page set
It closes, is recycled and analogized with this, this is no longer going to repeat them.For another example being more than 6 seconds touching the time interval of predeterminable area for the first time
When, prompt user to touch the overlong time of predeterminable area, and user is prompted to touch predeterminable area again.
Moreover, being selected in basis touches the multiple pages of the time interval of predeterminable area in Baidu's page set again
When the page of Baidupedia to be shown, specifically, similar to it is above-mentioned selected in the history page of caching i-th of page as
The scheme of the page to be shown selects i-th of hundred degree of pages as to be shown in multiple Baidu's pages in Baidu's page set
The page no longer specifically repeats again.For example, i-th of page is the Baidupedia page, then what is finally returned that is Baidupedia page
Face.
In any of the above-described technical solution, it is preferable that described device further includes:Prompt unit 210, for exporting prompt letter
Breath, the prompt message is for prompting the user whether to select the page set.
In the technical scheme, it after selecting page set corresponding with the value of time interval, prompts the user whether to select
The page set is selected, to determine that user wants the page of return whether in the page set.Preferably, it is not selected if receiving
The instruction of the page set then shows multiple page sets, so that user selects target pages collection in multiple page sets
It closes.
Fig. 3 shows the structural schematic diagram of terminal according to an embodiment of the invention.
As shown in figure 3, terminal 300 according to an embodiment of the invention, including any one of above-mentioned technical proposal institute
The device 200 that the page stated returns, therefore, the terminal 300 have and the return of above-mentioned technical proposal any one of them page
200 identical technique effect of device, details are not described herein.
Fig. 4 shows the schematic diagram of the operation interface of terminal according to an embodiment of the invention.
With reference to Fig. 4 technical solutions that the present invention will be described in detail:
User is cached with the history page of user's browsing in the terminal when browsing webpage or entering application program,
As shown in figure 4, showing predeterminable area in the operation interface of terminal, if detecting, user's finger touches the predeterminable area, inspection
Survey the duration interval that user's finger touches the predeterminable area.