The content of the invention
Based on this, it is necessary to provide a kind of page control method that can improve operational convenience.
Additionally, there is a need to providing a kind of page control system that can improve operational convenience.
A kind of page control method, comprises the following steps:
The indication range and display length of the page are obtained to the operation for sliding control by user in paging device graphical control;
Page loading is carried out according to the indication range and display length;
Show the page of the loading.
Wherein in one embodiment, the user includes slide to the operation for sliding control, described by paging
The step of user obtains the indication range and display length of the page to the operation for sliding control in device graphical control includes:
User is obtained to sliding the slide of control by paging device graphical control, follows the slip control described
Slide is slided in the page number button of the paging device graphical control;
Indication range of the corresponding parent page of page number button that the slip control is stopped as the page;
The corresponding selection of the parent page is obtained according to the slip control in the dwell regions of the page number button to grow
Degree, the display length of the page is obtained by the selection length.
Wherein in one embodiment, the user includes the size adjustment of the slip control to the operation for sliding control
Operation, it is described that the corresponding selection length of the parent page is obtained in the dwell regions of the page number button according to the slip control
Degree, by also including before described selection the step of length obtains the display length of the page:
Page button pair in the paging device graphical control is operated to the size adjustment for sliding control according to the user
The slip control of stop carries out size adjustment so that the dwell regions are adapted accordingly.
It is described according to the indication range and display length wrapped the step of the page is loaded wherein in one embodiment
Include:
Page load request is initiated according to the indication range and display length;
The parent page data returned according to the page load request are received, and loads the parent page data.
Wherein in one embodiment, the parent page data received according to page load request return, and
Also include before the step of loading the parent page data:
Parent page data according to the page load request for receiving in server storage are chosen, to obtain and institute
The parent page data that the indication range of the page is consistent are stated, and in the parent page extracting data for obtaining and the display
The parent page data that length matches, return to the parent page data of the extraction.
A kind of page control system, including:
Operation processing module, for obtaining the aobvious of the page to the operation for sliding control by user in paging device graphical control
Demonstration is enclosed and shows length;
Load-on module, for carrying out page loading according to the indication range and display length;
Display module, the page for showing loading.
Wherein in one embodiment, the user includes slide, the operation treatment to the operation for sliding control
Module includes:
Sliding unit, for obtaining user to sliding the slide of control by paging device graphical control, makes the cunning
Dynamic control follows the slide to be slided in the page number button of the paging device graphical control;
Range setting unit, for the corresponding parent page of page number button that stops the slip control as the page
Indication range;
Length setting unit, for obtaining described original in the dwell regions of the page number button according to the slip control
The corresponding selection length of the page, the display length of the page is obtained by the selection length.
Wherein in one embodiment, the user includes the size adjustment of the slip control to the operation for sliding control
Operation, the operation processing module also includes:
Adjustment unit, for being operated the size adjustment for sliding control in the paging device graphical control according to the user
Page button to stop slip control carry out size adjustment so that the dwell regions are adapted accordingly.
Wherein in one embodiment, the load-on module includes:
Request initiating cell, for initiating page load request according to the indication range and display length;
Loading unit is received, for receiving the parent page data returned according to the page load request, and institute is loaded
State parent page data.
Wherein in one embodiment, also include:
Server, is chosen for the parent page data according to the page load request for receiving in storage, with
To the parent page data that the indication range with the page is consistent, and in the parent page extracting data for obtaining and institute
The parent page data that display length matches are stated, the parent page data of the extraction are returned.
Above-mentioned page control method and system, the operation by user to sliding control in paging device graphical control can
The indication range and display length of the page are obtained, and then is carried out the loading of the page according to this indication range and display length and is shown
Show, compared with prior art, the operation for sliding control can be set the indication range of the page and display length according to user
The latter half and the top half of next page for current page, and then the latter half by current page and next page
Top half constitutes the new page and is loaded and shown, for a user, it is only necessary to operated to sliding control
Realize, significantly simplify operation, improve operational convenience and agility.
Specific embodiment
As shown in figure 1, in one embodiment, a kind of page control method comprises the following steps:
Step S110, by user in paging device graphical control the operation for sliding control is obtained the indication range of the page with
Display length.
In the present embodiment, paging device graphical control includes multiple page number buttons of knowing clearly, each page number button be with it is original
The page is corresponding, and the page number where parent page is also consistent with the page number button.In a preferred embodiment,
Parent page is stored in the webserver, and the page shown according to the page number that user's request is loaded.
By user in paging device graphical control to slide control operation shown by the page, then be to cunning via user
The operation of dynamic control the content in several parent pages is chosen obtained by the page, the page is original by several
Select what the content come was constituted in the page.
Step S130, page loading is carried out according to indication range and display length.
In the present embodiment, indication range indicates the current data source for carrying out page loading, that is, the data for loading are come
From parent page, which in parent page be the data required for display length is then further indicated for page loading will be
Part, and then accurate page loading is realized, required for enabling a user to be browsed in the page for loading and showing
Content.
Step S150, shows the page of loading.
In the present embodiment, the client that user is used is shown according to the page that indication range and display length are constituted
In end, the indication range and display length of the page are the self-defined settings of operation by user to slip control, therefore
Selection of the user to parent page is realized by paging device graphical control and slip control, and then according to the parent page chosen
The self-defined setting of content of pages and length is realized, the flexibility of user's browsing pages is improve.
As shown in Fig. 2 in one embodiment, the detailed process of above-mentioned steps S110 is:
Step S111, by paging device graphical control obtain user to slide control slide, make slip control with
Slided in the page number button of paging device graphical control with slide.
In the present embodiment, as shown in figure 3, multiple page number buttons 310 have been set gradually in paging device graphical control, and page
The slip control 330 that can arbitrarily slide is also provided with code button 310.User can click directly on any page number button to load
And the parent page corresponding to the page number button is shown, if for example, user's click page number button " 3 ", being loaded directly into the page number is
The parent page of " 3 ".
If desired some continuous contents, example in a part of content of a certain parent page, or multiple parent pages are shown
Such as, the page number is the parent page top half content that the parent page the latter half content and the page number of " 3 " are " 4 ", then user will
Follow slide to be slided on page number button so that sliding control by the slide for sliding control, and stay in required
On the corresponding page number button of parent page of display.
Step S113, will slide the corresponding parent page of page number button of control stop as the indication range of the page.
In the present embodiment, according to slide the page number button that is stopped of control can obtain user selected by parent page,
And then know which parent page is the content in the page is in.For example, as shown in figure 3, sliding control stays in page number button
On " 3 " and page number button " 4 ", therefore, the page number is the page for the parent page of " 4 " for the parent page of " 3 " and the page number
Indication range.
Further, as needed, the slip control for being set in paging device graphical control is not limited in one, with convenient
User chooses to discontinuous parent page, to show in the customized page in discontinuous parent page
Hold.
Step S115, the corresponding selection length of parent page is obtained according to control is slided in the dwell regions of page number button,
The display length of the page is obtained by the selection length.
In the present embodiment, after the indication range for knowing the page, also will further determine within indication range
Which content will be put into the page in parent page, to obtain this customized page, and show.As shown in figure 3, according to
It is that corresponding selection is grown in can obtain corresponding parent page to slide the region that control is occupied in page button, i.e. dwell regions
Degree, which the content in selection length mark parent page selected by user is.
In figure 3, sliding the dwell regions of control includes the latter half of page number button " 3 " and the whole of page number button,
Now, the corresponding page number chooses the latter half that length is the parent page for the parent page of " 3 " is corresponding, and the page number is
The parent page of " 4 " is corresponding to choose the whole that length is the parent page, the selection length corresponding to two parent pages
The display length of the user-defined page will be constituted.
Further, by the ratio between width of the dwell regions on page number button and page number button width, or can stop
The ratio between length and page number button length of the region on page number button is stayed as the selection length of parent page, for example,
If the ratio between width and page number button width of the dwell regions on page number button is 1/2nd, parent page is illustrated
Selection length in parent page 1/2nd content.
If page number button is the landscape layout in paging device graphical control, using dwell regions in page button
Width is weighed, if page number button carries out longitudinal layout in paging device graphical control, is pressed in the page using dwell regions
Length on button is weighed, and is configured according to actual conditions, is not limited herein.
In another embodiment, user includes that the size for sliding control adjusts operation to the operation for sliding control, above-mentioned
Also include before step S115:Page button in paging device graphical control is operated to the size adjustment for sliding control according to user
Slip control to stopping carries out size adjustment so that dwell regions are adapted accordingly.
In the present embodiment, the size for sliding control can be also adjusted, and then realize the further adjustment of display length.
For example, the edge that user can slide control by dragging adjusts the size for sliding control.
As shown in figure 4, in one embodiment, the detailed process of above-mentioned steps S130 is:
Step S131, page load request is initiated according to indication range and display length.
In the present embodiment, indication range and display in the operation setting by user corresponding to the customized page are grown
When spending, corresponding page load request will be generated, and be sent in the server on backstage.
Further, in order to ensure the precise control of user, by user the triggering will be operated to carry out page load request
Generation and transmission, for example, user operation can be double click operation, or the other operations to sliding control, herein
Do not limit.
Step S133, receives the parent page data returned according to page load request, and load parent page data.
In the present embodiment, the parent page data that the server on backstage is returned according to page load request are received, this is returned
The parent page data returned are to carry out choosing what is obtained according to the indication range in page load request and display length.
In another embodiment, also include before above-mentioned steps S133:According to the page load request for receiving in clothes
The parent page data of business device storage are chosen, to obtain the parent page data being consistent with the indication range of the page, and
The parent page data that the parent page extracting data for obtaining matches with display length, return to the parent page number for extracting
According to.
In the present embodiment, the server on backstage will be loaded after the page load request for receiving initiation according to the page
Indication range in request and display length are chosen to initial data, and then obtain in the indication range, and with display
The parent page data that length is consistent, and return.
As shown in figure 5, in one embodiment, above-mentioned page control system includes operation processing module 110, load-on module
130 and display module 150.
Operation processing module 110, for obtaining the page to the operation for sliding control by user in paging device graphical control
Indication range and display length.
In the present embodiment, paging device graphical control includes multiple page number buttons of knowing clearly, each page number button be with it is original
The page is corresponding, and the page number where parent page is also consistent with the page number button.In a preferred embodiment,
Parent page is stored in the webserver, and the page shown according to the page number that user's request is loaded.
By user in paging device graphical control to slide control operation shown by the page, then be to cunning via user
The operation of dynamic control the content in several parent pages is chosen obtained by the page, the page is original by several
Select what the content come was constituted in the page.
Load-on module 130, for carrying out page loading according to indication range and display length.
In the present embodiment, indication range indicates the current data source for carrying out page loading, that is, the data for loading are come
From parent page, which in parent page be the data required for display length is then further indicated for page loading will be
Part, and then accurate page loading is realized, required for enabling a user to be browsed in the page for loading and showing
Content.
Display module 150, the page for showing loading.
In the present embodiment, display module 150 is shown in user according to the page that indication range and display length are constituted
In the client for being used, the indication range of the page and display length are that the operation by user to sliding control is self-defined
Setting, therefore selection of the user to parent page is realized by paging device graphical control and slip control, and then according to choosing
The self-defined setting of content of pages and length is realized in the parent page for taking, and improves the flexibility of user's browsing pages.
As shown in fig. 6, in one embodiment, above-mentioned user includes slide, above-mentioned behaviour to the operation for sliding control
Dealing with module 110 includes sliding unit 111, range setting unit 113 and length setting unit 115.
Sliding unit 111, for obtaining the aobvious of the page to the operation for sliding control by user in paging device graphical control
Demonstration is enclosed and shows length.
In the present embodiment, multiple page number buttons are set gradually in paging device graphical control, and on page number button also
There is provided the slip control that can arbitrarily slide.User can click directly on any page number button to load and show the page number button institute
Corresponding parent page, if for example, user's click page number button " 3 ", is loaded directly into the parent page that the page number is " 3 ".
If desired some continuous contents, example in a part of content of a certain parent page, or multiple parent pages are shown
Such as, the page number is the parent page top half content that the parent page the latter half content and the page number of " 3 " are " 4 ", then slide single
Unit 111 will follow slide to be slided on page number button by sliding the slide of control so that sliding control, and stop
On the corresponding page number button of parent page of required display.
Range setting unit 113, for the corresponding parent page of page number button that control stops will to be slided as the page
Indication range.
In the present embodiment, range setting unit 113 can obtain user institute according to the page number button that slip control is stopped
The parent page of selection, and then know which parent page is the content in the page is in.For example, as shown in figure 3, sliding control
Stay on page number button " 3 " and page number button " 4 ", therefore, the page number is the original of " 4 " for the parent page of " 3 " and the page number
The page is the indication range of the page.
Further, as needed, the slip control for being set in paging device graphical control is not limited in one, with convenient
User chooses to discontinuous parent page, to show in the customized page in discontinuous parent page
Hold.
Length setting unit 115, for obtaining parent page correspondence in the dwell regions of page button according to slip control
Selection length, the display length of the page is obtained by choosing length.
In the present embodiment, after the indication range for knowing the page, length setting unit 115 also will further determine and be in
Which content will be put into the page in parent page within indication range, to obtain this customized page, and show.
Length setting unit 115 according to slide the region that is occupied in page button of control, i.e. dwell regions be can obtain it is corresponding original
Corresponding selection length in the page, which the content in selection length mark parent page selected by user is.
For example, the dwell regions for sliding control include the latter half of page number button " 3 " and the whole of page number button, this
When, the corresponding page number chooses the latter half that length is the parent page for the parent page of " 3 " is corresponding, and the page number is
The parent page of " 4 " is corresponding to choose the whole that length is the parent page, the selection length corresponding to two parent pages
The display length of the user-defined page will be constituted.
Further, length setting unit 115 can be by width of the dwell regions on page number button and page number button width
Between ratio, or ratio between length and page number button length of the dwell regions on page number button is used as parent page
Length is chosen, if for example, ratio between width and page number button width of the dwell regions on page number button is 1/2nd,
Then the selection length of explanation parent page is in parent page 1/2nd content.
If page number button is the landscape layout in paging device graphical control, using dwell regions in page button
Width is weighed, if page number button carries out longitudinal layout in paging device graphical control, is pressed in the page using dwell regions
Length on button is weighed, and is configured according to actual conditions, is not limited herein.
In another embodiment, above-mentioned user includes that the size for sliding control adjusts operation to the operation for sliding control,
Aforesaid operations processing module 110 also includes adjustment unit.The adjustment unit is used to adjust the size for sliding control according to user
Operate the page button in paging device graphical control carries out size adjustment to the slip control for stopping so that dwell regions are corresponding
Adjustment.
In the present embodiment, operation processing module 110 can also be adjusted to the size for sliding control, and then realize display length
The further adjustment of degree.For example, the edge that user can slide control by dragging adjusts the size for sliding control.
As shown in fig. 7, in one embodiment, above-mentioned load-on module 130 includes request initiating cell 131 and receives to load
Unit 133.
Request initiating cell 131, for initiating page load request according to indication range and display length.
In the present embodiment, indication range and display in the operation setting by user corresponding to the customized page are grown
When spending, request initiating cell 131 will generate corresponding page load request, and be sent in the server on backstage.
Further, in order to ensure the precise control of user, by user trigger request will be operated to initiate unit 131 be carried out
The generation and transmission of page load request, for example, the user operation can be to slide control double click operation, or its
Its operation, does not limit herein.
Loading unit 133 is received, for receiving the parent page data returned according to page load request, and is loaded original
Page data.
In the present embodiment, receive loading unit 133 and receive the original that the server on backstage is returned according to page load request
Beginning page data, the parent page data of the return are selected according to the indication range in page load request and display length
Obtain.
In another embodiment, above-mentioned page control system also includes server.The server is used for basis and receives
Page load request storage parent page data chosen to obtain being consistent with the indication range of the page and original page
Face data, and the parent page data matched with display length in the parent page extracting data for obtaining, return to what is extracted
Parent page data.
In the present embodiment, the server on backstage will be loaded after the page load request for receiving initiation according to the page
Indication range in request and display length are chosen to initial data, and then obtain in the indication range, and with display
The parent page data that length is consistent, and return.
Above-mentioned page control method and system, the operation by user to sliding control in paging device graphical control can
The indication range and display length of the page are obtained, and then is carried out the loading of the page according to this indication range and display length and is shown
Show, compared with prior art, the operation for sliding control can be set the indication range of the page and display length according to user
The latter half and the top half of next page for current page, and then the latter half by current page and next page
Top half constitutes the new page and is loaded and shown, for a user, it is only necessary to operated to sliding control
Realize, significantly simplify operation, improve operational convenience and agility.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.