CN113268297B - Page display method, device, electronic equipment and storage medium - Google Patents

Page display method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113268297B
CN113268297B CN202110546558.XA CN202110546558A CN113268297B CN 113268297 B CN113268297 B CN 113268297B CN 202110546558 A CN202110546558 A CN 202110546558A CN 113268297 B CN113268297 B CN 113268297B
Authority
CN
China
Prior art keywords
page
data
target
original data
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110546558.XA
Other languages
Chinese (zh)
Other versions
CN113268297A (en
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110546558.XA priority Critical patent/CN113268297B/en
Publication of CN113268297A publication Critical patent/CN113268297A/en
Application granted granted Critical
Publication of CN113268297B publication Critical patent/CN113268297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a page display method, a page display device, an electronic device and a storage medium, wherein the method comprises the following steps: responding to a size adjustment instruction sent by a user aiming at an original page displaying original data, and determining a paging rule corresponding to the size adjustment instruction, wherein the paging rule comprises a corresponding relation between a page number of the page and a data identifier of data contained in the page; determining target page numbers of target pages at least containing a plurality of original data and target data identifications corresponding to the target page numbers from all page numbers corresponding to the paging rules according to the corresponding relation and the original data identifications of the original data; and acquiring target data indicated by the target data identification, and displaying the target data in the target page. According to the scheme, after the paging rule of the original page is changed, the conflict with the real paging rule of the back end is avoided, the visual experience of a user is optimized as much as possible, and the additional data request quantity is reduced.

Description

Page display method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a page display method, a page display device, electronic equipment and a storage medium.
Background
Page presentation is a technique of presenting data segments to a user, in which the user sees not all but only a part of the data at a time, and if no desired data content is found in the current page, the user can update the data content visible in the current page by turning pages or jumping page numbers.
In the related art, when the data capacity of the page capable of being displayed changes, namely, the paging rule is updated, the data is directly added or subtracted and displayed according to the change condition of the data capacity of the page capable of being displayed on the basis of the displayed data in the original page. However, the new page displayed in this way is not legal under the new paging rule, for example, the current display interface corresponds to a plurality of adjacent pages, and at this time, the new page collides with the new paging rule, which may cause confusion of the page display content.
Disclosure of Invention
The disclosure provides a page display method, a page display device, electronic equipment and a storage medium, so as to at least solve the technical problems in the related art. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, a page display method is provided, including:
responding to a size adjustment instruction sent by a user aiming at an original page displaying original data, and determining a paging rule corresponding to the size adjustment instruction, wherein the paging rule comprises a corresponding relation between a page number of the page and a data identifier of data contained in the page;
Determining target page numbers of target pages at least containing a plurality of original data and target data identifications corresponding to the target page numbers from all page numbers corresponding to the paging rules according to the corresponding relation and the original data identifications of the original data;
and acquiring target data indicated by the target data identification, and displaying the target data in the target page.
Optionally, the determining, according to the correspondence and the original data identifier of the original data, a target page number of a target page at least including a plurality of original data from all page numbers corresponding to the paging rule includes:
determining a page range covered by the original data in all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, wherein a page corresponding to any page number contained in the page range at least contains a plurality of original data;
and determining a target page number of the target page in the page numbers contained in the page number range.
Optionally, the determining the target page number of the target page in the page numbers included in the page number range includes:
in the case where the page range contains only a single page number, determining the single page number as a target page number of the target page;
Under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page;
In the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page.
Optionally, the obtaining the target data indicated by the target data identifier includes:
When the target data identifier contains a non-original data identifier except the original data identifier, requesting to acquire the non-original data from a server according to the non-original data identifier, receiving the non-original data returned by the server as a part of the target data, and locally acquiring original data contained in the target data identifier corresponding to the data identifier as another part of the target data;
and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local.
Optionally, the receiving the non-original data returned by the server includes:
Receiving the non-original data returned by the server in response to the request for the non-original data, the non-original data being returned by the server if a first condition is satisfied, the first condition comprising: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or alternatively
Receiving the target data containing the non-original data returned by the server in response to the request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return.
Optionally, the resizing instruction corresponds to a resizing operation, the resizing operation comprising:
And performing a resizing operation on a page window of the original page and/or on an object control of the original data.
Optionally, the correspondence between the page number of the page and the data identifier of the data contained in the page includes:
the corresponding relation between page numbers of pages and sequence number ranges of data contained in the pages, wherein the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the page corresponding to any page number; or alternatively
The correspondence between the page number of a page and the tag set of the data contained in the page.
Optionally, the displaying the target data in the target page includes:
and displaying the target data in the target page, wherein the relative position relation of the original data contained in the target data, which is displayed on the target page, corresponds to the relative position relation of the original data, which is displayed on the original page.
According to a second aspect of an embodiment of the present disclosure, there is provided a page display device, including:
A paging rule determining unit configured to determine a paging rule corresponding to a resizing instruction in response to the resizing instruction of a user for an original page on which original data is displayed, the paging rule including a correspondence between a page number of the page and a data identifier of data included in the page;
the target page number determining unit is configured to determine target page numbers of target pages at least containing a plurality of original data from all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, and the target data identification corresponding to the target page numbers;
and the target data display unit is configured to acquire target data indicated by the target data identification and display the target data in the target page.
Optionally, the target page number determining unit is configured to:
determining a page range covered by the original data in all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, wherein a page corresponding to any page number contained in the page range at least contains a plurality of original data;
and determining a target page number of the target page in the page numbers contained in the page number range.
Optionally, the target page number determining unit is configured to:
in the case where the page range contains only a single page number, determining the single page number as a target page number of the target page;
Under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page;
In the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page.
Optionally, the target data presentation unit is configured to:
When the target data identifier contains a non-original data identifier except the original data identifier, requesting to acquire the non-original data from a server according to the non-original data identifier, receiving the non-original data returned by the server as a part of the target data, and locally acquiring original data contained in the target data identifier corresponding to the data identifier as another part of the target data;
and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local.
Optionally, the target data presentation unit is configured to:
Receiving the non-original data returned by the server in response to the request for the non-original data, the non-original data being returned by the server if a first condition is satisfied, the first condition comprising: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or alternatively
Receiving the target data containing the non-original data returned by the server in response to the request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return.
Optionally, the resizing instruction corresponds to a resizing operation, the resizing operation comprising:
And performing a resizing operation on a page window of the original page and/or on an object control of the original data.
Optionally, the correspondence between the page number of the page and the data identifier of the data contained in the page includes:
the corresponding relation between page numbers of pages and sequence number ranges of data contained in the pages, wherein the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the page corresponding to any page number; or alternatively
The correspondence between the page number of a page and the tag set of the data contained in the page.
Optionally, the target data presentation unit is configured to:
and displaying the target data in the target page, wherein the relative position relation of the original data contained in the target data, which is displayed on the target page, corresponds to the relative position relation of the original data, which is displayed on the original page.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, including:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page presentation method according to any of the embodiments of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, a storage medium is provided, which when executed by a processor of an electronic device, enables the electronic device to perform the page presentation method according to any one of the embodiments of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program and/or instructions which, when executed by a processor, implement a page presentation method as described in any of the embodiments above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
According to the embodiment of the disclosure, a new paging rule is determined in response to a size adjustment instruction of an original page, then a target page number of a target page at least containing a plurality of original data is determined from all page numbers corresponding to the new paging rule, and target data corresponding to the target page number is displayed under the adjusted target page. Therefore, according to the scheme, after the paging rule of the original page changes due to the size adjustment instruction of the user, target data which is required to be displayed by the target page after the adjustment of the user can be automatically determined, so that the target page is guaranteed to belong to a legal page under the new paging rule, and meanwhile, the target data displayed in the target page at least keeps part of the original data displayed in the original page, so that the user does not feel abrupt in visual experience, the data volume required to be additionally filled by the adjusted target page is smaller, and the purposes of optimizing the visual experience of the user as much as possible and reducing the request volume of the additional data on the basis of avoiding collision with the real paging rule of the rear end can be achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an architecture of a data providing platform according to an exemplary embodiment;
FIG. 2 is a schematic illustration of a page presentation shown in accordance with an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating another page presentation method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an application scenario shown in accordance with an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an application scenario for determining a target page number, shown in accordance with an embodiment of the present disclosure;
FIG. 6 is a schematic block diagram of a page display device shown in accordance with an embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device shown in accordance with an embodiment of the present disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
FIG. 1 is a schematic diagram of an architecture of a data providing platform according to an exemplary embodiment. As shown in fig. 1, the platform may include a network 10, a server 11, a number of electronic devices, such as a first handset 12, a second handset 13, a third handset 14, and so on.
The server 11 may be a physical server comprising a separate host, or the server 11 may be a virtual server, cloud server, etc. hosted by a host cluster. In the running process, the server 11 may run a program on a server side of an application to implement a relevant service function of the application, for example, when the server 11 runs a program of a live broadcast platform, the server may be implemented as a service end of the live broadcast platform, so as to cooperate with a corresponding live broadcast client to provide a live broadcast service for a user (where the content provided at this time is a live broadcast video stream); or when the server 11 runs the program of the multimedia platform, it may be implemented as a service end of the multimedia platform, so as to cooperate with a corresponding multimedia resource display client to provide a display service for a user for multimedia resources such as articles, pictures, comics, music, short videos, movie and television (where the content provided is multimedia resources), and so on. In the technical solution of one or more embodiments of the present disclosure, the server 11 may implement a page display scheme in the content providing process by cooperating with clients respectively running on the first mobile phone 12, the second mobile phone 13 and the third mobile phone 14.
In this embodiment, the multimedia platform not only can realize the providing function of the multimedia resource, but also can be used as an integrated functional platform with many other functions, such as obtaining interest information, dividing account sets, detecting user operations, receiving and responding requests, marking user accounts, establishing friend relations, etc., which is not limited by one or more embodiments of the present disclosure.
The first handset 12, the second handset 13 or the third handset 14 are but one type of electronic device that a user may use. Indeed, it is obvious that the user may also use electronic devices of the type such as: tablet devices, notebook computers, personal computers (PDAs), personal DIGITAL ASSISTANTS), wearable devices (e.g., smart glasses, smart watches, etc.), and the like, to which one or more embodiments of the present disclosure are not limited. In the running process, the electronic device may run a program on a client side of an application to implement a relevant service function of the application, for example, when the electronic device runs a program of a live broadcast platform, the electronic device may be implemented as a client of the live broadcast platform, for example, the first mobile phone 12 may implement a hosting client, and the second mobile phone 13 and the third mobile phone 14 may implement a viewer client; or when the electronic device runs the program of the multimedia platform, the electronic device may be implemented as a client of the multimedia platform, for example, the first mobile phone 12 may be implemented as a provider client of the multimedia resource, and the second mobile phone 13 and the third mobile phone 14 may be implemented as consumer clients of the multimedia resource, where the process of consuming the multimedia resource by the consumer clients is a process of displaying multimedia volunteers, such as displaying texts, displaying cartoons, playing videos, and so on.
It should be noted that: an application of a client of the content providing platform may be pre-installed on the electronic device such that the client may be started and run on the electronic device; of course, when an online "client" such as HTML5 technology is employed, the client can be obtained and run without installing a corresponding application on the electronic device.
And the network 10 for interaction between the first handset 12, the second handset 13 and the third handset 14 and the server 11, respectively, may include various types of wired or wireless networks.
In the related art, when the data capacity of the page that can be displayed changes, that is, the paging rule is updated, the page that can be displayed at this time is usually not a legal page under a new paging rule after the paging rule is updated, and this can collide with the paging rule after the back-end data update, according to the change condition of the data capacity of the page that can be displayed in the original page, after the data is directly added or subtracted, the data is displayed.
In order to solve the above-mentioned problems, an embodiment of the present disclosure provides a page display method, which determines a new paging rule by responding to a size adjustment instruction of an original page, then determines a target page number of original data displayed in the original page under an updated paging rule, and displays target data corresponding to the target page number under an adjusted target page, thereby avoiding collision with a real paging rule at a back end, and simultaneously optimizing visual experience of a user as much as possible while reducing data request amount.
Fig. 2 is a flow chart of a page presentation method shown in an exemplary embodiment of the present disclosure. As shown in fig. 2, the method applied to the client may include the following steps:
Step 202, responding to a size adjustment instruction sent by a user for an original page displaying original data, and determining a paging rule corresponding to the size adjustment instruction, wherein the paging rule comprises a corresponding relation between page numbers of the page and data identifications of data contained in the page.
In this embodiment, the original page refers to an information page that may be used to display any type of data, such as a file management page, a web page, or a software page, where the original data displayed in the original interface may include text, pictures, audio, video, and so on, and the embodiment of the present disclosure does not limit this, and since the original data is displayed on the original page, the original data is already cached locally at the client. The size adjustment instruction can be triggered by the operation action of a user, can be received by communication of other equipment, or can be sent out by a client system and responds by itself.
In an embodiment, the resizing instructions of embodiments of the present disclosure correspond to a user resizing operation for an original page, and the resizing operation may include a page window for the original page and/or a resizing operation implemented for an object control for the original data. The user can actively send out the size adjustment instruction through the size adjustment operation for the original page, in this embodiment, the user can send out the size adjustment instruction through adjusting the size of the page window or the icon size of the object control of the original data, and the client can send out the size adjustment instruction through monitoring the size information of the page window, so that richer interaction between the user and the page is realized, and the use experience of the user is optimized.
For example, when the user pulls the frame of the original page to increase the page window size of the original page, the amount of data that can be displayed in the same page increases as the space of the page increases, specifically, the icon size of the object control of the displayed data in the page is w×h, and the size of the displayable space of the original page is w0×h0, at this time, the maximum amount of data that can be displayed by the original page isWherein/>Representing a downward rounding symbol, and when a user changes the page size of the original page by pulling the page frame of the original page, so that the size of the displayable space of the adjusted target page is changed to W1×H1, the maximum data quantity which can be displayed by the target page is/>It is easy to see that when the size of the user-controlled page size exceeds a certain limit, the maximum amount of data that can be displayed between the target page and the original page, i.e., the page capacity, will change. Similarly, when a user changes the size of an object control of original data under an original page, although the size of the page is not changed, the icon size of the object control of the data is changed, and thus the page capacity of a target page may be changed.
In this embodiment, the paging rule may include a correspondence between a page number of each page and data included in a corresponding page, specifically, a correspondence between a page number of a page and a data identifier of data included in a page, so, after the paging rule is determined, all data to be displayed in a page corresponding to any page number may be determined by searching the paging rule, or under a page corresponding to which page number any data is located by searching the paging rule, where the paging rule according to this embodiment is a paging rule for all data in a server database, and an order in which data in the database is stored is fixed, so that a display order of data in the page is always unchanged. The paging rules may also include: the number of data to be displayed per page is usually fixed, and the display order and total amount of data to be displayed are also fixed, so that when the paging rule is determined, the maximum value of the data to be displayed in each page corresponding to the page is also determined, for example, 100 pieces of data having a fixed order, and assuming that the serial numbers of the 100 pieces of data are sequentially arranged from "0" to "99", when the paging rule displays 10 pieces of data per page, it is easy to obtain that a total of 10 pages can be displayed, and the serial numbers of the data corresponding to page 1 are "0-9", the serial numbers of the data corresponding to page 2 are "10-19", and so on, and when the paging rule is changed to display 20 pieces of data per page, a total of 5 pages can be displayed, and the serial numbers of the data corresponding to page 1 are "0-19", the serial numbers of the data corresponding to page 2 are "20-39", and so on. According to the analysis, when the data quantity required to be displayed for each page is fixed, the corresponding relation between the page number of the page and the data contained in the page can be deduced by determining the data quantity required to be displayed for each page.
In an embodiment, the correspondence between the page number of the page and the data identifier of the data included in the page may include: the corresponding relation between page numbers of the pages and sequence number ranges of data contained in the pages is that the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the pages corresponding to any page number; or the correspondence between the page number of the page and the tag set of the data contained in the page. When the page number of the page and the sequence number range of the data contained in the page are used as the corresponding relation, the specific data only corresponds to the specific sequence number, and the data displayed by the page are stored in the server database according to the sequence of the sequence numbers, so that the data of each page requested to be obtained can be determined by a section of continuous sequence number, namely, the sequence number range of the data under the page can be represented by the sequence numbers of the first data and the last data corresponding to the page, and the data under the page can be determined; when the page number of the page and the tag set of the data contained in the page are used as the corresponding relation, the specific data will uniquely correspond to the specific tag, and the tag refers to the identification which can be used for corresponding to the unique data, such as the storage position of the data, the hash value of the data and the like, besides the serial number, so that the data required to be displayed in the corresponding page can be represented by one set composed of the tags, and the position relation between the tag of the data and the data address is also maintained in the server database, thereby, when the client requests the data from the server, the server can return the correct data by the tag of the corresponding data. In this embodiment, the corresponding relation between the page number and the data contained in the page number can be defined by means of different marking data, when the serial number is used as the means of marking data, the data corresponding to the page number can be determined only by the first data and the last data in the page corresponding to the page number, so that the calculation amount for generating the corresponding relation and the storage space thereof can be reduced, and the calculation amount required for determining the target page number later can be reduced due to the continuity of the data serial number, and the page display efficiency can be improved.
Step 204, determining a target page number of a target page at least containing a plurality of original data and a target data identifier corresponding to the target page number from all page numbers corresponding to the paging rule according to the corresponding relation and the original data identifier of the original data.
In the embodiment of the disclosure, since the new paging rule has been determined, the page where the known data is located under the new paging rule may be found, for example, in the case where the data identifier is represented by a sequence number and a sequence number range, by looking up the original data locally stored by the client to obtain the sequence number of each original data, and determining, according to the correspondence between the page number of each page defined by the newly determined paging rule and the sequence number range of the data included in each page, which sequence number range or ranges the sequence number of each original data should be located in the new paging rule, that is, determining the page where the original data corresponds to under the new paging rule, and selecting one page number from one or more page numbers where the original data is located as a target page number, it is easy to infer that the target data to be displayed corresponding to the target page number necessarily includes at least a part of the original data.
In the embodiment of the disclosure, since the paging rule includes the correspondence between the page number of each page and the data identifier of the data included in the page, when the target page number is determined, the data included in the target page corresponding to the target page number can be directly found according to the paging rule, for example, when the data identifier is represented by a sequence number and a sequence number range, the sequence number range (target data identifier) of the target data corresponding to the target page number can be determined by the determined target page number and the paging rule, and the target data will be required to be displayed on the adjusted target page.
In an embodiment, a page range covered by the original data in all page numbers corresponding to the paging rule may be determined according to the correspondence and the original data identifier of the original data, where a page corresponding to any one of the page numbers included in the page range includes at least a plurality of the original data; and determining the target page number of the target page in all page numbers contained in the page number range. Since the order of the data stored in the server database will not normally change, the relative order of the data requested by the client and displayed in the page is fixed, that is, the relative order of the data identifiers of the data is fixed, so even if the paging rule changes, the original data in the original page will be in a continuous space under the new paging rule, that is, although the original data may cover the pages where the pages under the new paging rule are located, the pages are continuous, that is, a page range is formed, where any page included in the page range includes at least one original data, and the page range may include only one page, or may include only two pages, or may include more than two pages, and the pages are continuous, for example, "6, 7, 8, 9", "1, and 2". In the embodiment of the disclosure, the page display scheme has higher adaptability by determining the page range and then determining the target page, for example, when the page window is reduced, under a new paging rule, the original data may be covered in the page range formed by a plurality of pages, and at this time, the target page may be further determined in the page range, so as to adapt to the situation that the original data covers more than one page corresponding to the page in all the pages corresponding to the new paging rule.
Further, in the case where the page range contains only a single page, determining the single page as the target page of the target page; under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page; in the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page. The present embodiment provides a method for selecting a target page according to a page range under different conditions, when the page range includes only one page, it is explained that the original data can be completely included in a legal page corresponding to a new paging rule, the page corresponding to the page is taken as the target page, and the target data corresponding to the target page is displayed under the target page in a subsequent process, where the original data can be multiplexed to the greatest extent. When the range of page numbers includes only two page numbers, it is described that the original data is divided on the pages corresponding to two consecutive page numbers, for example, the 6 th and 7 th page numbers, at this time, one of the two page numbers needs to be selected as the target page number, in this embodiment, the principle of selection is to determine the number of entries of non-original data other than the original data corresponding to the two page numbers, and select, as the target page number, the one page number containing the smaller number of entries of non-original data, for example, in the 6 th page number, the total number of entries of data to be displayed is 20, wherein the original data occupies 6, so that for the page corresponding to the 6 th page number, the number of entries of non-original data other than the original data is 20-6=14, and similarly, in the 7 th page number, the total number of entries of data to be displayed is 20, wherein the original data occupies 4, so that for the page corresponding to the 7 th page number of non-original data, the number of entries other than the original data is 20-4=16, and obviously, for the page corresponding to the 6 th page number of non-original data corresponds to the page number corresponding to the 7 page number to the 6 page number to be selected as the target page number.
In another embodiment, when the total number of entries of the display data required for each page is consistent, the page number containing more original data can be directly selected as the target page number, and since the page number with fewer entries of non-original data other than the original data is selected as the target page number, when the page corresponding to the target page number is displayed later, fewer additional data are requested to the server data to supplement the missing data, and the original data stored locally are multiplexed as much as possible, so that after the paging rule is changed, the user can keep more original data as the target data displayed by the adjusted target page, the abrupt sense generated when the user uses is reduced, and the visual experience of the user is optimized. When the range of page numbers includes more than two page numbers, it is known that the required display data corresponding to any page number except the first page number and the last page number is original data according to the characteristic of continuity of the data, selecting these page numbers as the target page numbers at this time can ensure that the target page newly displayed after adjustment can multiplex the original data as much as possible, and also does not need to request data from the server, so that the loss of network and server resources is reduced, for example, the second page number in the range of page numbers can be selected as the target page number, or the last second page number in the range of page numbers can be selected as the target page number, or randomly selected among page numbers except the first page number and the last page number, which is not limited by the embodiments of the present disclosure.
And 206, acquiring target data indicated by the target data identification, and displaying the target data in the target page.
In the embodiment of the disclosure, the target page number and the target data identifier corresponding to the target page number are already determined, and the target data identifier uniquely determines the corresponding target data, so that the indicated target data can be obtained through the target data identifier, and finally the obtained target data is displayed in the target page, thereby completing the page display scheme of the embodiment of the disclosure.
In an embodiment, when the target data identifier includes a non-original data identifier other than the original data identifier, the non-original data may be requested to be acquired from a server according to the non-original data identifier, the non-original data returned by the server is received as a part of the target data, and the original data including the corresponding data identifier in the target data identifier is acquired locally as another part of the target data; and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local. The target data to be displayed in the target page corresponding to the target page may include non-original data except original data, at this time, because the client lacks the non-original data locally, the client needs to request the server for the non-original data, in this embodiment, the data identifier is represented by a sequence number and a sequence number range, that is, the data may be determined by a preset sequence number or sequence number range, according to a paging rule, the data range of the target data corresponding to the target page may be obtained, and the sequence number of the original data is also known, so that the sequence number range of the non-original data in the target page may be obtained, and a data request with the sequence number range of the non-original data may be sent to the server, after receiving the data request, the server searches for the non-original data corresponding to the sequence number range of the non-original data in the server, and returns the non-original data to the client, and after receiving the non-original data returned by the server, the client obtains the non-original data as a part of the target data, and the other part of the data belongs to the original data already stored locally by the client, so that the client can directly read the non-original data corresponding to the target data from the server as the original data identifier.
The visible target data is all data required to be displayed under the target page. When the target data identifiers are contained in the original data identifiers, that is, when the data to be displayed in the target page are all the original data, the client side does not need to send a data request to the server any more because the original data are already stored locally, and the original data corresponding to the data identifiers and contained in the target data identifiers are directly obtained from the local as the target data. According to the method and the device for displaying the page, whether missing non-original data is required to be requested to the server can be intelligently judged according to whether the target data corresponding to the target page number contains the non-original data or not, and in the case that the target data are all the original data, the scheme of displaying the page can be completed without networking and participation of the server, so that loss of network and server resources is reduced, and the scheme of displaying the page related to the method and the device can be completed only by a client side reading the original data stored locally, so that the efficiency of displaying the page is improved.
Further, the receiving server returns the non-original data in response to the request for the non-original data, and the non-original data is returned by the server if a first condition is satisfied, where the first condition includes: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or receiving target data containing the non-original data returned by a server in response to a request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return. Because the server needs to perform an operation of reading the database when responding to a request for non-original data, in some cases, for example, when the data identifier is represented by a sequence number and a sequence number range, and the sequence number range of the non-original data identifier is two pieces of data corresponding to two discrete sequence number ranges, the server may not support simultaneous response to the request for multiple data segments, or may support but have lower execution efficiency than the execution efficiency of directly requesting all data corresponding to the target page, because the operation of reading the database may involve multiple times, and in this case, if only the non-original data is returned in response to the request for the non-original data, the performance is wasted, and the burden of the server and the database is increased. In the embodiment of the disclosure, after receiving the data request for the non-original data, the server may determine whether the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number, thereby intelligently returning the data to the client according to the determination result, so as to reduce the burden of the server for querying the database, and improve the efficiency of the client for acquiring the target data.
In an embodiment, the target data may be displayed in the target page, where a relative positional relationship of the original data included in the target data displayed on the target page corresponds to a relative positional relationship of the original data displayed on the original page. In general, for the display of two-dimensional icons, when the paging rule of a page changes, the original data displayed in the target page has the same sequence relationship, but the relative position relationship of two dimensions including up, down, left and right is often destroyed, for example, from 3 rows, the original page displaying 3 columns of icons in each row is adjusted to 3 rows, and when each row displays 4 columns of target pages, if the conventional display logic of the two-dimensional icons is adopted: the sequence numbers are sequentially increased from left to right to top to bottom, the relative position relationship of the original icons on the original page is necessarily destroyed, at this time, although the original data is partially reserved on the target page, the change of the relative position relationship also causes visual abrupt sense to the user, so in the embodiment, the relative position relationship of the original data contained in the target data displayed on the target page is made to be as close as possible to the relative position relationship of the original data displayed on the original page by changing the display logic of the two-dimensional icons, and therefore, the relative position relationship of the original data displayed on the target page is changed as little as possible compared with the original page after the paging rule is adjusted by the user, the visual abrupt sense to the user is reduced, and the visual experience of the user is optimized.
Fig. 3 is a flow chart of another page presentation method shown in an exemplary embodiment of the present disclosure, as shown in fig. 3, applied to a client device. The process of determining the paging rule, determining the target page number, and displaying the target data according to the method according to the embodiment of the present disclosure is described in detail below with reference to fig. 3, and the process may include the following steps 301-307.
Step 301, monitor the restore event of the original page window object.
When the user adjusts the size of the page window of the original page, the window object of the original page records a corresponding size event, for example, the size is increased, and in another embodiment, the size event of the icon size of the original data serving as the object control can be monitored at the same time.
In step 302, in response to the restore event, the container rearrangement module is utilized to re-estimate the data amount required to be displayed by the target page, that is, the data capacity of the page, and update the corresponding paging rule.
The container rearrangement module of the embodiment of the disclosure is used for determining the data capacity of the target page and generating a corresponding paging rule according to the page size adjustment instruction. As shown in fig. 4, the original page displays data in an arrangement manner of 2 rows and 3 columns, the data capacity of the page is 6, when the user enlarges the page width, since the plane space of the page capable of displaying data is increased, more data needs to be displayed in the same page, for example, the target page displays data in an arrangement manner of 2 rows and 4 columns, the data capacity of the page is 8, i.e., the capacity p=m×n of the page, where M is the number of rows of data display in the page, and N is the number of columns of data display in the page, and according to the foregoing analysis, M and N can be calculated by using the data as the icon size of the object control and the size of the displayable area in the page, which is not repeated herein. For any page, if the data capacity of the current page is known, the sequence number range of the data included in the page corresponding to the page can be determined, wherein if the current page is currentPageNo, the range of the data displayed in the page corresponding to the current page is:
startPos=(currentPageNo-1)*P+1
endPos=startPos+P-1=currentPageNo*P
Wherein startPos is the sequence number of the first data in the page, endPos is the sequence number of the last address in the page, so it can be determined whether the data is located in the page where currentPageNo is located by determining whether the sequence number is in the range of startPos-endPos. The required display data may be represented by (startPos [ i ], endPos [ i ]) under the page with page number i, so for the embodiment of the present disclosure, since the sequence number of each data is preset and fixed, for example, the first data of the first page is always unchanged, when determining the page capacity P, the correspondence between any page number and the range of data sequence numbers in the page corresponding to the page number may be obtained, and the correspondence may be represented as "P: i to (startPos [ i ], endPos [ i ]), i e N ", in the embodiment of the present disclosure, the paging rule includes the correspondence relationship described above, so that when the page capacity is determined, the paging rule can be determined accordingly.
Step 303, determining the page number range of the original data under the paging rule according to the sequence number range of the original data.
Because the original data are already displayed under the original page, the client side has the original data stored locally, and can directly read the original data to obtain the serial numbers in the original data, or the page number of the original page can be used as a parameter, and the serial number range of the original data in the original page can be obtained by calculation by using the container rearrangement module. When the page window size of the original page is changed and the paging rule is further generated, the paging rule is essentially changed from the paging rule corresponding to the original page to the paging rule to be followed by the target page, so that the original data may fall within one page or a plurality of consecutive pages under the new paging rule. As an example in fig. 5, assuming that 100 pieces of data are arranged in order of sequence numbers from "0" to "99", an original paging rule corresponding to an original page shows 20 pieces of data for each page, and assuming that an original page oldPageNo corresponding to the original page under the original paging rule is page 4, the sequence number range of the contained data is "60-79", and a generated new paging rule shows 25 pieces of data for each page, the problem is converted into which page or pages under the new paging rule the data in the sequence number range "66-79" should be located, as shown in fig. 5, the original data obviously falls on page 3 and page 4 under the new paging rule, that is, the page number range of the original data under the new paging rule is 3 to 4. In this embodiment, because of the continuity of the sequence numbers, the sequence numbers of the first data and the last data in the original page can be calculated, which does not require that the sequence number of the first data of the original data in the original page be oldstartPos, the last sequence number be oldendPos, and the page capacity under the new paging rule be newP, so that the page range under the new paging rule where the original data is located can be obtained:
Wherein, To round up the symbol StartPageNo represents the page number of the first data in the original data under the new paging rule, endPageNo represents the page number of the last data in the original data under the new paging rule, it is apparent that StartPageNo is not less than EndPageNo, and it can be determined that the page number range of the original data under the new paging rule is StartPageNo to EndPageNo.
Step 304, determining a target page according to the coverage condition of the original data for different pages in the page range.
The execution of this step needs to be divided into three cases, when StartPageNo = EndPageNo, it is explained that the original data is completely covered on the whole page with the page number StartPageNo under the new paging rule, so StartPageNo can be directly determined as the target page number.
When StartPageNo +1= EndPageNo, it is explained that the original data spans two pages, one on the page with the page number StartPageNo and the other on the page with the page number EndPageNo.
For example, as shown in fig. 5, the original data is covered on the 3 rd page and the 4 th page under the new paging rule, the black square represents the original data, the white square represents the non-original data, wherein 15 pieces of original data are reserved in the 3 rd page, the sequence number range of the corresponding data is "60-74", 5 pieces of original data are reserved in the 4 th page, the sequence number range of the corresponding data is "75-79", and obviously, the original data reserved on the 3 rd page are more, so that fewer non-original data are required to be requested to the server, and therefore, the 3 rd page can be taken as the target page number.
More generally, the formula for calculating non-raw data is:
F1=oldstartPos-(StartPageNo-1)*newP
F2=EndPageNo*newP-oldendPos
Wherein F1 is the number of non-original data of the page with the page number StartPageNo, F2 is the number of non-original data of the page with the page number EndPageNo, the smaller page number of the non-original data can be determined as the target page number by comparing the sizes of F1 and F2, and when F1 and F2 are equal, one of the pages can be selected as the target page number. Of course, the target page number can be determined directly according to the number of the original data of different page numbers, and the page number with more original data reserved is taken as the target page number.
When StartPageNo +1< endpageno, it is explained that the original data contains two or more page numbers, in this case, any page number except the first page number and the last page number is completely covered by the original data, and therefore any page number except StartPageNo and EndPageNo can be determined as a target page number corresponding to the original data, for example StartPageNo +1 as a target page number.
In step 305, according to the target page number, the container rearrangement module is utilized to determine the sequence number range of the target data to be displayed on the target page.
When the target page is obtained, the pixel even and slow display data corresponding to the target page is the target data, the sequence number range of the required display data corresponding to the target page can be directly determined according to the paging rule, the sequence number range of the target data corresponding to the target page is set to be 'newstartPos-newendPos', wherein newstartPos is the sequence number of the first data of the target page where the target page is located, newendPos is the sequence number of the last data of the target page where the target page is located, so that the sequence number range of the target data is determined, and when the target page is determined to be 3, the sequence number range of the target data corresponding to the target page can be determined to be '50-74', as shown in fig. 5.
Step 306, detecting whether the target data contains non-original data, if so, proceeding to step 307; if not, go to step 312.
As shown in FIG. 5, the original data has a sequence number range of "60-79" and the target data has a sequence number range of "50-74", so that the target data is not completely contained by the original data, only the target data having a sequence number range of "60-74" is stored as the original data in the client, and the other non-original data having a sequence number range of "50-59" needs to be requested from the server.
Step 307, send a non-original data request to the server, where the non-original data request includes a sequence number range of the non-original data. As shown in fig. 5, the range of sequence numbers of the non-original data transmitted to the server is "50-59".
Step 308, after receiving the non-original data request, the server first detects whether the corresponding non-original data request is supported, and if so, proceeds to step 309; if not, go to step 311.
For example, when the non-original data is two pieces of data corresponding to two discrete sequence number ranges, the request may be regarded as a full request for the page number of the non-original data because the API related to the server may not support simultaneous response to the request of multiple data pieces, where the full request refers to a one-time request for all data in a certain page number.
Step 309, detecting whether the execution efficiency of the non-original data request is higher than the execution efficiency of the full-volume request, and if the execution efficiency of the non-original data request is higher than the execution efficiency of the full-volume request, turning to step 310; if the execution efficiency of the non-original data request is not higher than the execution efficiency of the full-volume request, the process proceeds to step 311.
In this embodiment, since the non-original data may include a plurality of discontinuous data segments, the server may need to request the database for data multiple times after receiving the non-original data request, resulting in low execution efficiency, and at this time, the server may directly request the database for obtaining all the data of the page number where the non-original data is located as a substitute, thereby reducing the pressure of the server and the database and improving the execution efficiency. The server can determine the page number of the non-original data through a new paging rule and the sequence number range of the non-original data at the server side, and can directly determine the page number of the non-original data through a non-original data request sent by the client side, wherein the non-original data request contains the page number of the non-original data, obviously, the page number of the non-original data is a target page number determined previously, so that the calculation amount of the server can be reduced, and repeated calculation is avoided.
In step 310, in response to the full request of the page corresponding to the non-original data, the corresponding non-original data is read in the database according to the sequence number range of the non-original data, and returned to the client, so that the client combines the non-original data with the original data to obtain the target data, and step 312 is performed.
The corresponding relation between the data and the data sequence numbers is stored in the database of the server, and the data is stored and retrieved according to the sequence of the data sequence numbers, so that the fixed data sequence numbers can be ensured to be read.
In step 311, in response to the non-original data request, the target data is read from the database according to the page number of the non-original data, and the target data is returned to the client, and step 312 is performed.
In this case, the server will consider the non-original data request as a full request for the page corresponding to the target page number, so the data read by the server in the database is the target data.
Step 312, obtain the target data, and display the target data in the target page.
In step 306, if it is detected whether the target data does not contain non-original data, the instruction may directly acquire the target data according to the original data, without requesting additional data from the server; in step 310, since the server returns non-original data to the client, the client can combine itself to obtain complete target data; in step 311, since the server returns the target data, the client can obtain the target data without merging the original data.
After the target data is obtained, the target data can be displayed in the target page through any preset display logic, for example, in an embodiment, when the target data is displayed, the relative position relationship of the original data contained in the target data is made to be as close to the relative position relationship of the original data in the original page as possible, so that the user generates visual familiarity and prompts the user to use experience.
Corresponding to the embodiments of the page display method described above, the present disclosure also proposes embodiments of the page display device.
Fig. 6 is a schematic block diagram of a page presentation device shown in accordance with an embodiment of the present disclosure. The page display device shown in this embodiment may be suitable for video playing applications, where the applications are suitable for terminals, and the terminals include, but are not limited to, mobile phones, tablet computers, wearable devices, personal computers, and other electronic devices. The video playing application can be an application program installed in a terminal, a web page application integrated in a browser, and a user can play videos through the video playing application, wherein the played videos can be long videos, such as movies and television dramas, or short videos, such as video clips, situation dramas and the like.
As shown in fig. 6, the page display device may include:
The paging rule determining unit 601 is configured to determine, in response to a resizing instruction of a user for an original page on which original data is displayed, a paging rule corresponding to the resizing instruction, the paging rule including a correspondence between a page number of the page and a data identifier of data included in the page.
The target page number determining unit 602 is configured to determine, according to the correspondence and the original data identifier of the original data, a target page number of a target page at least including a plurality of original data from all page numbers corresponding to the paging rule, and a target data identifier corresponding to the target page number.
And a target data display unit 603 configured to acquire target data indicated by the target data identifier, and display the target data in the target page.
Optionally, the target page number determining unit 602 is configured to:
determining a page range covered by the original data in all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, wherein a page corresponding to any page number contained in the page range at least contains a plurality of original data;
and determining a target page number of the target page in the page numbers contained in the page number range.
Optionally, the target page number determining unit 602 is configured to:
in the case where the page range contains only a single page number, determining the single page number as a target page number of the target page;
Under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page;
In the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page.
Optionally, the target data presentation unit 603 is configured to:
When the target data identifier contains a non-original data identifier except the original data identifier, requesting to acquire the non-original data from a server according to the non-original data identifier, receiving the non-original data returned by the server as a part of the target data, and locally acquiring original data contained in the target data identifier corresponding to the data identifier as another part of the target data;
and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local.
Optionally, the target data presentation unit 603 is configured to:
Receiving the non-original data returned by the server in response to the request for the non-original data, the non-original data being returned by the server if a first condition is satisfied, the first condition comprising: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or alternatively
Receiving the target data containing the non-original data returned by the server in response to the request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return.
Optionally, the resizing instruction corresponds to a resizing operation, the resizing operation comprising:
And performing a resizing operation on a page window of the original page and/or on an object control of the original data.
Optionally, the correspondence between the page number of the page and the data identifier of the data contained in the page includes:
the corresponding relation between page numbers of pages and sequence number ranges of data contained in the pages, wherein the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the page corresponding to any page number; or alternatively
The correspondence between the page number of a page and the tag set of the data contained in the page.
Optionally, the target data presentation unit 603 is configured to:
and displaying the target data in the target page, wherein the relative position relation of the original data contained in the target data, which is displayed on the target page, corresponds to the relative position relation of the original data, which is displayed on the original page.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The embodiment of the disclosure also proposes an electronic device, including:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page presentation method as described in any of the embodiments above.
Embodiments of the present disclosure also provide a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the page presentation method described in any one of the above embodiments.
Fig. 7 is a schematic block diagram of an electronic device, shown in accordance with an embodiment of the present disclosure. For example, the electronic device 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, an electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 718.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the page presentation method described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 706 provides power to the various components of the electronic device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 700.
The multimedia component 708 includes a screen between the electronic device 700 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the electronic device 700 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 718. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the electronic device 700. For example, the sensor assembly 714 may detect an on/off state of the electronic device 700, a relative positioning of the components, such as a display and keypad of the electronic device 700, a change in position of the electronic device 700 or a component of the electronic device 700, the presence or absence of a user's contact with the electronic device 700, an orientation or acceleration/deceleration of the electronic device 700, and a change in temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The image acquisition component 716 can be utilized to acquire image data of a subject to form an image regarding the subject and can perform necessary processing on the image. The image acquisition component 716 can include a camera module in which an image Sensor (Sensor) senses light from a subject through a lens, and provides resulting sensed data to an image signal processor (ISP, image Signal Processing) which generates an image corresponding to the subject from the sensed data. The image sensor may be a CMOS sensor or a CCD sensor, or may be an infrared sensor, a depth sensor, or the like; the camera module may be built in the electronic device 700, or may be an external module of the electronic device 700; the ISP may be built in the camera module or may be externally attached to the electronic device (not in the camera module).
The communication component 718 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 718 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 718 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the page presentation methods described above.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 704, including instructions executable by processor 720 of electronic device 700 to perform the above-described method. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program and/or instructions which, when executed by a processor, implement the above-described page presentation method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It is noted that in this disclosure relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined the detailed description of the method and apparatus provided by the embodiments of the present disclosure, and the detailed description of the principles and embodiments of the present disclosure has been provided herein with the application of the specific examples, the above examples being provided only to facilitate the understanding of the method of the present disclosure and its core ideas; meanwhile, as one of ordinary skill in the art will recognize, in light of the concepts of the present disclosure, variations may be made in terms of the specific embodiments and application ranges, and in light of the foregoing, the present disclosure should not be construed as limited to the present disclosure.

Claims (17)

1. A method for displaying a page, comprising:
responding to a size adjustment instruction sent by a user aiming at an original page displaying original data, and determining a paging rule corresponding to the size adjustment instruction, wherein the paging rule comprises a corresponding relation between a page number of the page and a data identifier of data contained in the page;
Determining target page numbers of target pages at least containing a plurality of original data and target data identifications corresponding to the target page numbers from all page numbers corresponding to the paging rules according to the corresponding relation and the original data identifications of the original data;
Acquiring target data indicated by the target data identification, and displaying the target data in the target page;
The obtaining the target data indicated by the target data identifier includes:
When the target data identifier contains a non-original data identifier except the original data identifier, requesting to acquire the non-original data from a server according to the non-original data identifier, receiving the non-original data returned by the server as a part of the target data, and locally acquiring original data contained in the target data identifier corresponding to the data identifier as another part of the target data;
and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local.
2. The method according to claim 1, wherein the determining, according to the correspondence and the original data identifier of the original data, a target page number including at least a plurality of target pages of the original data from all page numbers corresponding to the paging rule includes:
determining a page range covered by the original data in all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, wherein a page corresponding to any page number contained in the page range at least contains a plurality of original data;
and determining a target page number of the target page in the page numbers contained in the page number range.
3. The method of claim 2, wherein the determining the target page number of the target page from among the page numbers included in the page number range comprises:
in the case where the page range contains only a single page number, determining the single page number as a target page number of the target page;
Under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page;
In the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page.
4. The method of claim 1, wherein the receiving the non-raw data returned by the server comprises:
Receiving the non-original data returned by the server in response to the request for the non-original data, the non-original data being returned by the server if a first condition is satisfied, the first condition comprising: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or alternatively
Receiving the target data containing the non-original data returned by the server in response to the request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return.
5. The method of claim 1, wherein the resizing instruction corresponds to a resizing operation, the resizing operation comprising:
And performing a resizing operation on a page window of the original page and/or on an object control of the original data.
6. The method of claim 1, wherein the correspondence between the page number of the page and the data identifier of the data contained in the page comprises:
the corresponding relation between page numbers of pages and sequence number ranges of data contained in the pages, wherein the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the page corresponding to any page number; or alternatively
The correspondence between the page number of a page and the tag set of the data contained in the page.
7. The method of claim 1, wherein the presenting the target data in the target page comprises:
and displaying the target data in the target page, wherein the relative position relation of the original data contained in the target data, which is displayed on the target page, corresponds to the relative position relation of the original data, which is displayed on the original page.
8. A page display device, comprising:
A paging rule determining unit configured to determine a paging rule corresponding to a resizing instruction in response to the resizing instruction of a user for an original page on which original data is displayed, the paging rule including a correspondence between a page number of the page and a data identifier of data included in the page;
the target page number determining unit is configured to determine target page numbers of target pages at least containing a plurality of original data from all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, and the target data identification corresponding to the target page numbers;
the target data display unit is configured to acquire target data indicated by the target data identification and display the target data in the target page;
wherein the target data presentation unit is configured to:
When the target data identifier contains a non-original data identifier except the original data identifier, requesting to acquire the non-original data from a server according to the non-original data identifier, receiving the non-original data returned by the server as a part of the target data, and locally acquiring original data contained in the target data identifier corresponding to the data identifier as another part of the target data;
and under the condition that the target data identifiers are contained in the original data identifiers, obtaining the original data, contained in the target data identifiers, of the corresponding data identifiers as the target data from the local.
9. The apparatus according to claim 8, wherein the target page number determination unit is configured to:
determining a page range covered by the original data in all page numbers corresponding to the paging rule according to the corresponding relation and the original data identification of the original data, wherein a page corresponding to any page number contained in the page range at least contains a plurality of original data;
and determining a target page number of the target page in the page numbers contained in the page number range.
10. The apparatus according to claim 9, wherein the target page number determination unit is configured to:
in the case where the page range contains only a single page number, determining the single page number as a target page number of the target page;
Under the condition that the page range only comprises two pages, respectively acquiring the number of entries of non-original data corresponding to each page in the two pages according to the corresponding relation and the original data identification, and determining the page with smaller number of entries of the non-original data as the target page of the target page, wherein the non-original data corresponding to any page in the two pages is data except the original data in all data corresponding to any page;
In the case where the page range includes two or more page numbers, any one of the page numbers included in the page range except for the first page number and the last page number is determined as a target page number of the target page.
11. The apparatus of claim 8, wherein the target data presentation unit is configured to:
Receiving the non-original data returned by the server in response to the request for the non-original data, the non-original data being returned by the server if a first condition is satisfied, the first condition comprising: the execution efficiency of returning the non-original data is higher than the execution efficiency of returning all the data corresponding to the target page number; or alternatively
Receiving the target data containing the non-original data returned by the server in response to the request for the non-original data, the target data being returned by the server if a second condition is satisfied, the second condition comprising: and returning the non-original data, wherein the execution efficiency of returning the non-original data is not higher than the execution efficiency of returning all data corresponding to the target page number, or the range of the non-original data identification does not belong to the type of the server supporting the return.
12. The apparatus of claim 8, wherein the resizing instruction corresponds to a resizing operation, the resizing operation comprising:
And performing a resizing operation on a page window of the original page and/or on an object control of the original data.
13. The apparatus of claim 8, wherein the correspondence between the page number of the page and the data identifier of the data contained in the page comprises:
the corresponding relation between page numbers of pages and sequence number ranges of data contained in the pages, wherein the sequence number range corresponding to any page number is represented by the sequence numbers of first data and last data in the page corresponding to any page number; or alternatively
The correspondence between the page number of a page and the tag set of the data contained in the page.
14. The apparatus of claim 8, wherein the target data presentation unit is configured to:
and displaying the target data in the target page, wherein the relative position relation of the original data contained in the target data, which is displayed on the target page, corresponds to the relative position relation of the original data, which is displayed on the original page.
15. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page presentation method of any of claims 1 to 7.
16. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the page presentation method of any one of claims 1 to 7.
17. A computer program product comprising computer programs/instructions which when executed by a processor implement the page presentation method of any of claims 1 to 7.
CN202110546558.XA 2021-05-19 2021-05-19 Page display method, device, electronic equipment and storage medium Active CN113268297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110546558.XA CN113268297B (en) 2021-05-19 2021-05-19 Page display method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110546558.XA CN113268297B (en) 2021-05-19 2021-05-19 Page display method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113268297A CN113268297A (en) 2021-08-17
CN113268297B true CN113268297B (en) 2024-05-07

Family

ID=77232028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110546558.XA Active CN113268297B (en) 2021-05-19 2021-05-19 Page display method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113268297B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183764A (en) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 Data paging method and apparatus
CN108062321A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 Page number page turning method and device based on paging
CN109917989A (en) * 2019-03-06 2019-06-21 珠海金山网络游戏科技有限公司 A kind of method and device that realizing virtual page turning calculates equipment and storage medium
CN110287460A (en) * 2019-06-27 2019-09-27 掌阅科技股份有限公司 The methods of exhibiting of e-book calculates equipment and computer storage medium
CN112131840A (en) * 2020-09-17 2020-12-25 中消云(北京)物联网科技研究院有限公司 Page processing method, device, storage medium and processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4665980B2 (en) * 2008-03-19 2011-04-06 ソニー株式会社 Portable information processing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183764A (en) * 2015-07-29 2015-12-23 广州神马移动信息科技有限公司 Data paging method and apparatus
CN108062321A (en) * 2016-11-08 2018-05-22 北京国双科技有限公司 Page number page turning method and device based on paging
CN109917989A (en) * 2019-03-06 2019-06-21 珠海金山网络游戏科技有限公司 A kind of method and device that realizing virtual page turning calculates equipment and storage medium
CN110287460A (en) * 2019-06-27 2019-09-27 掌阅科技股份有限公司 The methods of exhibiting of e-book calculates equipment and computer storage medium
CN112131840A (en) * 2020-09-17 2020-12-25 中消云(北京)物联网科技研究院有限公司 Page processing method, device, storage medium and processor

Also Published As

Publication number Publication date
CN113268297A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN111783001A (en) Page display method and device, electronic equipment and storage medium
CN107463643B (en) Barrage data display method and device and storage medium
CN113099262B (en) Information display method and device, electronic equipment and storage medium
CN112765375B (en) Method and device for displaying multimedia resource information, electronic equipment and storage medium
CN107229403B (en) Information content selection method and device
CN112153396B (en) Page display method, device, system and storage medium
CN114025181B (en) Information display method and device, electronic equipment and storage medium
CN113727200A (en) Video abstract information determination method and device, electronic equipment and storage medium
WO2021018186A1 (en) Video update push method and terminal
CN113254784A (en) Information display method and device, electronic equipment and storage medium
CN112051949A (en) Content sharing method and device and electronic equipment
CN112131466A (en) Group display method, device, system and storage medium
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN110321042B (en) Interface information display method and device and electronic equipment
CN112506396B (en) Resource display method and device, electronic equipment and storage medium
CN112333518B (en) Function configuration method and device for video and electronic equipment
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN113268297B (en) Page display method, device, electronic equipment and storage medium
CN116233554A (en) Video playing method, device, electronic equipment and storage medium
CN116112332A (en) Page display method, device and system, electronic equipment and storage medium
CN114666643A (en) Information display method and device, electronic equipment and storage medium
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN114138413A (en) Icon display method and device, electronic equipment and storage medium
CN109714247B (en) Group chat information processing method and device, electronic equipment and storage medium
CN114554231A (en) Information display method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant