CN110673902A - Page display method and device and storage medium - Google Patents

Page display method and device and storage medium Download PDF

Info

Publication number
CN110673902A
CN110673902A CN201810706898.2A CN201810706898A CN110673902A CN 110673902 A CN110673902 A CN 110673902A CN 201810706898 A CN201810706898 A CN 201810706898A CN 110673902 A CN110673902 A CN 110673902A
Authority
CN
China
Prior art keywords
data
page
target
interval
display
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.)
Granted
Application number
CN201810706898.2A
Other languages
Chinese (zh)
Other versions
CN110673902B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810706898.2A priority Critical patent/CN110673902B/en
Publication of CN110673902A publication Critical patent/CN110673902A/en
Application granted granted Critical
Publication of CN110673902B publication Critical patent/CN110673902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page display method, a page display device and a storage medium. According to the embodiment of the invention, when the first operation is received, the target data can be obtained according to the target page indicated by the first operation; determining whether a data entry identical to the target data exists in the historical data; if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page. According to the scheme, under the condition of solving the repeated data, more data can be displayed in the page to the greatest extent, and the page display effect is effectively improved.

Description

Page display method and device and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a page display method, a page display device and a storage medium.
Background
When a web page or application software displays an information list in the foreground, repeated data is displayed on the foreground page due to possible real-time change of background data, and at this time, the information in the page is usually required to be deduplicated.
For example, when a page is switched or a preset operation is detected, the application software needs to send a data request to the server according to the page number of the next page to pull the anchor list of the next page from the server. And when the server receives the request of the application software, the corresponding anchor list is returned to the application software for displaying according to the page number indicated in the data request.
Since the data of the server may change with time and other factors, for example, the on-line and off-line of the anchor may cause the increase and decrease or the change of the ordering of the data in the anchor general list. This results in that each time the application software pulls the anchor list from the server, the total list on which the server returns data is different, and the server returns a repeated anchor to the application software for display.
To avoid displaying the same anchor repeatedly, the application software may cull out the repeated anchors and only show the anchors that were not displayed before in the new page.
In the process of research and practice of the prior art, the inventor of the invention finds that the deduplication processing in the prior art does not allow any data repetition, so that the displayable data volume is reduced after the data displayed to the user in the foreground is subjected to deduplication, the page displayable on the whole foreground is correspondingly reduced, the displayed data content is not rich enough, and the display effect is poor.
Disclosure of Invention
The embodiment of the invention provides a page display method, a page display device and a storage medium, and aims to solve the technical problem of poor display effect after page display data are deduplicated.
The embodiment of the invention provides a page display method, which comprises the following steps:
when a first operation is received, acquiring target data according to a target page indicated by the first operation;
determining whether a data entry identical to the target data exists in the historical data;
if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval;
and if the repeated display interval exceeds a set position interval, generating and displaying the target page according to the target data.
In some embodiments, the determining whether the repeated display interval of the same data item exceeds a set position interval includes:
acquiring repeated display intervals of the same data items;
determining whether the repeated display interval exceeds a set position interval.
In some embodiments, the obtaining the repeated display interval of the same data entry comprises:
acquiring historical display positions and target display positions of the same data items;
counting the number of the data items spaced among the same data items according to the historical display position and the target display position;
and taking the number of the data items as the repeated display interval of the same data items.
In some embodiments, the obtaining the repeated display interval of the same data entry comprises:
acquiring a page where the same data entry in the historical data is located as a historical page;
and counting the page number of the interval between the historical page and the target page, and taking the page number as the repeated display interval of the same data item.
In some embodiments, the determining whether the repeated display interval of the same data item exceeds the set position interval further comprises:
if the repeated display interval is smaller than the set position interval, acquiring standby data;
and replacing the same data entry in the target data by using the standby data, and generating and displaying the target page according to the replaced target data.
In some embodiments, the determining whether the repeated display interval of the same data item exceeds the set position interval further comprises:
if the repeated display interval is smaller than the set position interval, adjusting the target display position of the same data item in the target data to enable the repeated display interval to exceed the set position interval;
and generating and displaying the target page according to the target data after the position adjustment.
In some embodiments, the generating and displaying the target page according to the target data includes:
and when a second operation is received, generating and displaying the target page according to the target data.
An embodiment of the present invention further provides a page display device, including:
the acquisition unit is used for acquiring target data according to a target page indicated by the first operation when the first operation is received;
the duplication checking unit is used for determining whether the historical data has the same data entry as the target data;
the interval unit is used for determining whether the repeated display interval of the same data item exceeds a set position interval or not if the same data item as the target data exists in the historical data;
and the display unit is used for generating and displaying the target page according to the target data if the repeated display interval exceeds a set position interval.
In some embodiments, the spacing unit comprises a spacing subunit and a determining subunit;
the interval subunit is used for acquiring repeated display intervals of the same data items;
the determining subunit is configured to determine whether the repeated display interval exceeds a set position interval.
In some embodiments, the spacer subunit is specifically configured to:
acquiring historical display positions and target display positions of the same data items; counting the number of the data items spaced among the same data items according to the historical display position and the target display position; and taking the number of the data items as the repeated display interval of the same data items.
In some embodiments, the spacer subunit is specifically configured to:
acquiring a page where the same data entry in the historical data is located as a historical page; and counting the page number of the interval between the historical page and the target page, and taking the page number as the repeated display interval of the same data item.
In some embodiments, the apparatus further comprises:
a standby unit for acquiring standby data if the repeated display interval is smaller than a set position interval; and replacing the same data entry in the target data by using the standby data, and generating and displaying the target page according to the replaced target data.
In some embodiments, the apparatus further comprises:
an adjusting unit, configured to adjust a target display position of the same data entry in the target data if the repeated display interval is smaller than a set position interval, so that the repeated display interval exceeds the set position interval; and generating and displaying the target page according to the target data after the position adjustment.
In some embodiments, the display unit is specifically configured to:
and if the repeated display interval exceeds the set position interval, generating and displaying the target page according to the target data when receiving a second operation.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any page display method provided by the embodiment of the invention.
When a first operation is received, acquiring target data according to a target page indicated by the first operation to check duplicate of the target data to be displayed; then, determining whether the historical data has the same data items as the target data, and if the historical data has the same data items as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, generating and displaying the target page according to the target data. Therefore, when the duplicate data is checked, if the duplicate data is detected, the duplicate data can be allowed to be repeatedly displayed under the condition that the repeated display interval of the duplicate data meets the set position interval, so that the repeated display of the data after a certain interval can be tolerated by a user, the duplicate removal effect is realized, the quantity and richness of the displayed data can be ensured, and the reduction of the page which can be integrally displayed in the foreground is avoided. Therefore, according to the scheme, under the condition of solving the repeated data, more data can be displayed in the page to the greatest extent, and the page display effect is effectively improved. Meanwhile, the scheme can also display the page data according to the real-time data condition of the background under the condition that the background data changes, so that the background data can be more accurately reflected, the influence on a user caused by data inconsistency due to changes of factors such as time and environment is reduced, and the accuracy of background data display is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of a page display method according to an embodiment of the present invention;
FIG. 1b is a schematic flowchart of a page display method according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of a current page provided by an embodiment of the present invention;
FIG. 2b is a schematic diagram of a target page provided by an embodiment of the present invention;
FIG. 2c is a schematic diagram of another target page provided by the embodiment of the invention
FIG. 3a is a schematic structural diagram of a page display device according to an embodiment of the present invention;
FIG. 3b is a schematic view of another structure of the page display device according to the embodiment of the present invention;
FIG. 3c is a schematic view of another structure of the page display apparatus according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a page display method, a page display device and a storage medium.
The page display apparatus may be specifically integrated in a network device, such as a terminal or a server, and a page index apparatus is integrated in the terminal for example, refer to fig. 1a, which is a scene diagram of a page display method provided in an embodiment of the present invention.
The user inputs a first operation on a page displayed by the terminal, and the terminal sends a data request to the server according to a target page indicated by the first operation when receiving the first operation, and acquires target data returned by the server according to the target page. Then, the terminal determines whether the historical data has the same data item as the target data; if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, the terminal generates and displays a target page according to the target data.
According to the scheme, when duplicate data are checked, if the duplicate data are detected, the duplicate data can be allowed to be repeatedly displayed under the condition that the repeated display interval of the duplicate data meets the set position interval, therefore, the data can be repeatedly displayed after a certain interval, the tolerance to a user can be realized, the duplicate removal effect is realized, the quantity and the richness of the displayed data can be ensured, and the reduction of the page which can be integrally displayed in the foreground is avoided. Therefore, according to the scheme, under the condition of solving the repeated data, more data can be displayed in the page to the greatest extent, and the page display effect is effectively improved.
The details will be described below separately.
In the present embodiment, description will be made from the perspective of a page display apparatus, which may be specifically integrated in a network device such as a terminal or a personal computer.
The embodiment of the invention provides a page display method, which comprises the following steps: when a first operation is received, acquiring target data according to a target page indicated by the first operation; determining whether a data entry identical to the target data exists in the historical data; if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page.
As shown in fig. 1b, the specific flow of the page display method may be as follows:
101. when a first operation is received, acquiring target data according to a target page indicated by the first operation;
wherein the first operation may be a data preloading operation or a page switching operation, etc. For example, the data preloading operation may be an operation of sliding a page to the bottom of the screen, and the page display apparatus determines the next page as a target page, and needs to acquire data of the next page in advance, so that data in the page can be quickly loaded when the user switches the page. For example, the page switching operation may be an operation of switching to a previous page, a next page, or a page with a specified page number, and the indicated target page corresponds to the page of the previous page, the next page, or the specified page, respectively.
The page display device can detect the operation input by a user in real time, and when the first operation is received, the target page needing to be loaded with data is determined according to the first operation, and the page number of the target page is obtained. For example, if the first operation is a page switching operation, the page number of the page selected by the user is obtained, the target page indicated by the first operation is obtained, and the page number of the page is used as the target page number of the data to be loaded.
Then, the page display device sends a data request to the server, wherein the data request carries the page number to indicate a target page needing to load target data.
After receiving the data request sent by the page display device, the server analyzes the data request, obtains the page number in the data request, and obtains the target page of the first operation instruction. Then, in the real-time total data sequence, the data sequence corresponding to the target page number is extracted as target data, and the target data is returned to the page display device.
For example, if the data displayed on the page each time has N pieces, and the page display device currently requests the data of the first page, the start position of the requested data is 0, and the server returns data entries (N data entries in total) with sequence numbers from 0 to N-1 in the total data sequence to the page display device; if the page display device requests the data of the second page, the initial position of the requested data return is changed into N, and the server returns data items (N-2N-1 in total data sequence) to the page display device; by analogy, if the page display device requests the mth page, the initial position of the request data return is (m-1) × N, and the server returns data items (N data items in total) with the array sequence numbers of (m-1) × N to mN-1 to the page display device.
And the page display device receives the data sequence returned by the server as target data. It should be noted that, if the target data is data in the first displayed page, for example, data in the first page, the target data can be directly displayed without being checked for duplication.
In some embodiments, if the number of the data entries returned by the server is greater than N, the page display device uses the first N data entries in the received data sequence as target data, and uses the remaining data entries as standby data, so as to prevent the page display device from pulling data to the server for multiple times to affect the data loading speed.
For example, the server may return 20 data entries each time 10 data entries are displayed in the page, and if the page display device requests data of the second page, the server will return 20 th to 39 th data entries in the total data sequence. The page display apparatus uses items 20 to 29 as the target data and items 30 to 39 as the spare data.
102. It is determined whether there is a data entry in the history data that is the same as the target data.
Wherein the historical data comprises a data sequence which is displayed and arranged according to the display order. Where necessary, the historical data includes at least the data sequence displayed in the current page.
For example, the historical data may include only the data sequence displayed in the current page, with the data entry displayed furthest back in the display order being the last bit in the data sequence; or the data sequence comprises the current page and the data sequence displayed on the page before the current page, and the data sequence of the current page is sequenced after the data sequence of the page before the current page in the historical data sequence.
The page display device may acquire the history data from the history. Then, the page display apparatus determines whether or not there is a data entry identical to the target data in the history data one by one.
For example, the target data includes 10 data items, the page display apparatus may check one by one whether the 10 data items are the same as the data items in the history data.
In some embodiments, if the historical data does not have the same data entry as the target data, the page display device generates and displays a target page according to the target data.
103. If the historical data has the same data items as the target data, determining whether the repeated display interval of the same data items exceeds the set position interval.
If the same data item as the target data is found in the history data, the page display apparatus may determine whether the repeated display interval of the same data item exceeds the set position interval.
The repeated display interval of the same data items can be the number of the data items or the page number of the interval when the same data items are repeatedly displayed, and the repeated display interval can be flexibly configured according to actual needs. The set position interval is the maximum allowable repeated display position interval, for example, 10 data items or 1 page. The set position interval can be a default value or preset by a user, and the like, and can be flexibly configured according to actual needs.
In some embodiments, step 103 may comprise: acquiring repeated display intervals of the same data items; it is determined whether the repeated display interval exceeds a set position interval.
The page display means may count the data items or pages forward in the display order with the history display position of the same data item as a start point and the target display position thereof in the target page as an end point, to count the number of data items or the number of pages of the interval therebetween as the repeated display interval. When counting, the starting point may be counted as 0, and the end point may be counted as the repeated display interval value. Of course, the target display position of the same data entry may be used as a starting point, and the history display position thereof may be used as an end point, so as to perform counting.
For example, the repeated display interval is the number of data items spaced by the same data item when repeatedly displayed, data item a is displayed first in the current page, 6 data items are displayed per page, and the target data also includes data item a. If the position of A in the target page in the target data is first, counting the data entry at the first position in the current page to be 0, then counting the second data entry in the current page to be 1, counting the third data entry in the current page to be 2 according to the display sequence, and so on until the A in the target page is counted, and at the moment, counting to be 6, repeatedly displaying the data entries with the interval of 6.
If the set position interval is 6 data items or less, the page display device judges that the repeated display interval of the same data items exceeds the set position interval; if the set position interval is 7 data items or more, the page display apparatus determines that the repeated display interval of the same data items does not exceed the set position interval.
In some embodiments, in order to obtain the repeated display distance of the same data item more accurately, the following data item number or page number is illustrated in which the repeated display interval is the interval of the same data item when displayed:
the repeated display interval of (a) the same data item is the number of data items that the same data item is spaced apart when displayed.
For example, the step of "acquiring the repeated display interval of the same data item" may include: acquiring historical display positions and target display positions of the same data items; counting the number of data items spaced among the same data items according to the historical display position and the target display position; the number of data items is taken as the repeat display interval of the same data item.
The page display device may look up the history record and find the position where the same data entry was displayed as the history display position. If the displayed positions of a plurality of the same data items are found, the position displayed last time is selected as the historical display position. And the page display device can determine the target display position of the same data item, namely the position in the target page according to the position or the sequence number of the same data item in the data sequence of the target data.
Then, the page display device counts the number of data items spaced between the repeated display of the same data item according to the history display position and the target display position of the same data item. Specifically, the displayed or to-be-displayed data items between the historical display position and the target display position of the same data item may be arranged into a target data sequence according to the display order; then, taking the same data items of the historical display as a starting point, counting to 0, counting according to the target data sequence until the same data items to be displayed, and taking the count of the same data items to be displayed as the number of the data items at intervals, thereby obtaining the number of the data items at intervals when the same data items are repeatedly displayed.
For example, if the same data entry is a, the history data includes a data sequence [ B, A, C, D, E ], the target data includes a data sequence [ F, G, A, H, I ], then starting from a in the history data, a in the target data is an end point, C, D, E already displayed between two as and F, G to be displayed are configured as a target data sequence [ A, C, D, E, F, G, A ], then, with the history data entry in the target data sequence as a starting point, that is, the first a count is 0, C count is 1, D count is 2, … …, a count to be displayed is 6, then the number of data entries of the interval between when a is repeatedly displayed is 6.
If the set position interval is 7 data items or more, the page display device judges that the repeated display interval of the A does not exceed the set position interval; if the set position interval is 6 items of data items or less, the page display device determines that the repeat display interval of A exceeds the set position interval.
Thereby, detection of the repeated display interval is realized.
(II) the repeated display interval of the same data item is the number of pages that the same data item is spaced apart when displayed.
For example, the step of "acquiring the repeated display interval of the same data item" may include: acquiring a page where the same data entry in the historical data is located as a historical page; and taking the page number of the interval between the history page and the target page as the repeated display interval of the same data item.
The page display device takes the page where the same data entry in the historical data is located as a historical page, and the historical page is the page which displays the same data entry in the historical data. And if the same data entry in the historical data is displayed in a plurality of pages, taking the page with the display time closest to the current time as the historical page.
Then, the page display device counts the number of pages spaced between the history page and the target page according to the display order. Specifically, the page display device may count the history pages as a starting point and the pages to be displayed as an end point forward according to the page display order, so as to count the number of the pages in the interval as the repeated display interval. When counting, the starting point may be counted as 0, and the end point may be counted as the repeated display interval value. Of course, the page to be displayed may also be used as a starting point and the target page as an end point for counting, and the counting may be flexibly configured according to actual needs.
For example, if the same data entry is a, and the page in which a is located in the history data is the current page, the page display device takes the current page as the history page. Then, the page display apparatus counts the history page as a start point to 0, counts the history page forward in the display order, counts the target page as an end point to 1, and repeatedly displays the history page at an interval of 1 page. If the set position interval is 0 page, the page display device judges that the repeated display interval exceeds the set position interval; if the set position interval is 1 page or more, the page display device determines that the repeated display interval does not exceed the set position interval.
Thereby, detection of the repeated display interval is realized.
104. And if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page.
If the repeated display interval of the same data items exceeds the set position interval, the page display device judges that the same data items pass the duplicate checking detection and can be displayed in the target page. And the page display device generates and displays a target page according to the preset display parameters and the target data, so that the target page is displayed. The preset display parameters include, for example, page size, color, and arrangement of data entries in the target data.
In some embodiments, the first operation is a data preload operation, and step 104 may include: and when the second operation is received, generating and displaying a target page according to the target data.
If the first operation is an operation of sliding the page to the bottom of the screen or the like, the page display device determines that the first operation is received, determines the next page of the current page as a target page indicated by the first operation, and needs to acquire data of the next page in advance, so that the data in the page can be quickly loaded when the user switches the page. The second operation includes a page switching operation and the like.
And when receiving a second operation, the page display device generates and displays a target page according to the target data detected by the duplication checking.
Therefore, data preloading is achieved, and the time for waiting data loading and duplicate checking during page switching is avoided.
In some embodiments, if the repeated display interval is smaller than the set position interval, the page display apparatus may adjust the content or position of the data entry in the target data to make the target data meet the display requirement, for example, there may be two following embodiments:
and (one) when the repeated display interval of the same data item does not exceed the set position interval, performing deduplication processing on the data to be displayed.
For example, step 103 may be followed by: if the repeated display interval is smaller than the set position interval, acquiring standby data; and replacing the same data entry in the target data by using the standby data, and generating and displaying a target page according to the replaced target data.
The standby data can be standby data returned by the server side when the page display device acquires the target data; or the page display device sends a standby data request to the server, and the server returns all or part of data corresponding to the next page of the target page to the page display device as standby data according to the target page indicated by the first operation; of course, the standby data may also be other preset data, such as advertisement data and/or promotion data, and may be flexibly configured according to actual needs.
Then, the page display device replaces the same data entry in the target data with the spare data, and generates and displays a target page using the replaced target data. Therefore, duplicate removal display of the target page is achieved, and user experience is improved.
As an embodiment, after the step "acquiring the spare data", the page display apparatus may determine whether there is a data entry in the history data that is the same as the spare data, and the specific detection manner may refer to the content described in the step 103, and is not described herein again. And if the historical data does not have the data entry which is the same as the spare data, replacing the same data entry in the target data by the spare data, and generating and displaying a target page by using the replaced target data.
And (II) when the repeated display interval of the same data item does not exceed the set position interval, the repeated display interval can exceed the set position interval by adjusting the display position.
For example, step 103 may be followed by: if the repeated display interval is smaller than the set position interval, adjusting the target display position of the same data item in the target data to enable the repeated display interval to exceed the set position interval; and generating and displaying a target page according to the target data after the position adjustment.
If the repeated display interval is smaller than the set position interval, that is, the repeated display distance of the same data entry is too short, the user experience is affected, and therefore, the page display device can reduce the influence of the repeated data on the user experience by adjusting the target display position of the same data entry.
For example, the same data entry is exchanged with the last data entry in the target data, or the same data entry is exchanged with the data entry in the next page of the target display page, so that the repeated display interval of the same data entry exceeds the set position interval. It should be noted that the adjustment manner of the target display positions of the same data items in the target data is not limited to the above manner, and may be flexibly configured according to actual needs.
Then, the page display device generates and displays a target page using the position-adjusted target data.
For example, explaining the example in which the repeated display interval is the number of data items at which the same data item is displayed, the page display apparatus may exchange the position of the same data item with the next data item ordered after the same data item each time until the repeated display interval exceeds the set position interval. Of course, the page display device may also determine, according to a difference between the repeated display interval and the set position interval, that the display position satisfying the set position interval is the target position, and if there is no data entry in the history data that is the same as the data entry in the target position, exchange the data entry of the same data entry with the data entry in the target position.
Therefore, the same data items can be repeatedly displayed after a certain distance is kept by adjusting the display positions of the same data items, and the actual situation of background data is more close.
In some embodiments, if the page display device finds that there are two or more items of the same data in the target data, it is determined whether the repeated display interval of each item of the same data exceeds the set position interval. It should be noted that, in this embodiment, it is exemplified that there is no data entry that is duplicated with each other in the target data returned by the server, and therefore, there is no same relationship between multiple identical data entries in the target data.
And if the repeated display intervals of all the same data items exceed the set position interval, generating and displaying a target page according to the target data. If the repeated display interval of the same data entry is smaller than the set position interval, the target page is generated and displayed by using the target data after the position adjustment after the repeated display interval exceeds the set position interval by adjusting the target display position, or the target page is generated and displayed by replacing the same data entry by the standby data and using the replaced target data.
As can be seen from the above, in the embodiment of the present invention, when the first operation is received, the target data is obtained according to the target page indicated by the first operation, so as to perform duplicate checking on the target data to be displayed; then, determining whether the historical data has the same data items as the target data, and if the historical data has the same data items as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page. Therefore, when the duplicate data is checked, if the duplicate data is detected, the duplicate data can be allowed to be repeatedly displayed under the condition that the repeated display interval of the duplicate data meets the set position interval, so that the repeated display of the data after a certain interval can be tolerated by a user, the duplicate removal effect is realized, the quantity and richness of the displayed data can be ensured, and the reduction of the page which can be integrally displayed in the foreground is avoided. Therefore, according to the scheme, under the condition of solving the repeated data, more data can be displayed in the page to the greatest extent, and the page display effect is effectively improved. Meanwhile, the page data can be displayed according to the real-time data condition of the background under the condition that the background data changes, the background data can be reflected more accurately, the influence on a user due to data inconsistency caused by time and/or environment changes is reduced, and the accuracy of background data display is improved.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
In this embodiment, the page display apparatus will be described as being specifically integrated in a network device, which may be a terminal, a tablet computer, a personal computer, or the like.
In this embodiment, a current display page is taken as a first page for example. For example, referring to fig. 2a, the data in the first page display includes a data sequence [1, 2, 3, 4, 5, 6], where the data arrangement of each page is three rows and two columns for 6 items of data, and the arrangement order is from left to right and from top to bottom. Certainly, the page number can be displayed in the page, so that the user can switch the page conveniently. The user may slide down to a preset position on the current page to input a first operation. Specifically, the method comprises the following steps:
(1) and when the first operation is received, acquiring target data according to the target page indicated by the first operation.
In this embodiment, a first operation is exemplified as a page switching operation, for example, when a user clicks a page number "2" displayed in a page and inputs the first operation, a target page indicated by the first operation is a second page.
When receiving the first operation, the page display device determines a next page of the current page, that is, the second page, as a target page indicated by the first operation, and sends the page number of the second page to the server to indicate the target page to which the target data needs to be loaded.
After receiving the page number, the server extracts a data sequence corresponding to the page number of the target page from the real-time total data sequence as target data, and returns the target data to the page display device.
And then, the page display device acquires the target data returned by the server and performs duplicate checking on each data entry in the target data.
(2) It is determined whether there is a data entry in the history data that is the same as the target data.
For example, the history data may include data entries already displayed in the page, and data entries not displayed locally in the terminal and sequentially displayed before the target data.
In some embodiments, in order to reduce the duplication checking workload, the page display device may obtain the same amount of history data by using the set value of the position interval as the amount requirement of the duplication checking data. Specifically, the data items to be checked for duplication are used as target data items, and if the data items to be checked for duplication are sorted into n items in the target data and the set position interval is e, the corresponding duplication checking data include n-1 data items sorted before the target data items in the target data and e-n +1 displayed data items. Wherein, the displayed data item of the e-n +1 item refers to the historical data item of the e-n +1 item which has been displayed or is currently displayed and the display time is closest to the current time.
For example, if the current data entry to be checked for duplication is the first of the target data, the page display device acquires e items of historical data entry with the display time closest to the current time in the historical record as corresponding duplication checking data; if the current data entry to be checked is the second data entry in the target data, acquiring a first data entry in the target data and displaying e-1 historical data entries with the time closest to the current time as corresponding check data; and by analogy, if the current data entry to be checked for duplication is the nth data entry in the target data, acquiring the first to nth-1 data entries in the target data, and displaying e-n +1 historical data entries with the time closest to the current time as corresponding duplication checking data.
After the duplication checking data corresponding to each target data entry are obtained, the page display device determines whether the duplication checking data corresponding to each target data entry have the same data entry.
If the duplicate checking data corresponding to the target data entry has the same data entry as the target data entry, determining that the historical data has the same data entry as the target data, and taking the target data entry as the same data entry, wherein the target display position of the same data entry needs to be adjusted, or the same data entry is replaced by using standby data.
And if the duplicate checking data corresponding to each target data entry does not have the same data entry, judging that the historical data does not have the same data entry as the target data.
For example, as an embodiment, the algorithm code for duplicate checking may be as follows, wherein the existing list is a history data entry sequence; the list to be added is a data entry sequence of the target data; the set position interval can be repeated by how much distance; the result array is history data corresponding to the nth target data entry to be checked, and comprises first to (n-1) th data entries in the target data and e-n +1 historical data entries with display time closest to the current time:
Figure BDA0001715535270000161
the page display device compares the target data entry to be checked with the corresponding historical data to check the duplicate, if the target data entry is not duplicated, the target data entry is traced to the last bit of the historical data, the first bit of the historical data is removed, and then the next data entry in the target data is checked according to the traced historical data.
In the present embodiment, the history data includes data [1, 2, 3, 4, 5, 6] of the first page display.
The page display apparatus determines whether there is the same data item as 1, 2, 3, 4, 5 or 6 among the data items of the target data, respectively.
For example, if the target data is [7, 8, 9, 10, 11, 12], the page display device determines that the same data entry as the target data does not exist in the history data, and generates and displays the target page directly from the target data.
The example is given with 5 data entries at a set position interval. For example, if the target data is [1, 8, 9, 3, 11, 12], the page display device determines that the duplication checking data corresponding to 1 in the target data is [2, 3, 4, 5, 6], and the duplication checking data corresponding to 1 does not include the same data entry; determining that the duplicate checking data corresponding to 8 in the target data is [3, 4, 5, 6, 1], wherein the duplicate checking data corresponding to 8 does not comprise the same data entry, and so on, if the duplicate checking data corresponding to all the target data entries in the target data does not comprise the same data entry, judging that the historical data does not comprise the same data entry as the target data, and directly generating and displaying a target page according to the target data.
(3) If the historical data has the same data items as the target data, determining whether the repeated display interval of the same data items exceeds the set position interval.
In this embodiment, an example will be described in which 5 data entries are set at a set position interval.
For example, if the target data is [1, 8, 9, 3, 11, 12], the page display apparatus determines that the same data item exists in the history data as the target data, and needs to determine whether the repeated display intervals of the same data items 1 and 3 exceed the set position intervals, respectively.
For the same data item 1, the page display apparatus acquires the history display position and the target display position thereof, wherein the history display position is the first of the first page and the target display position is the first of the second page. Then, the page display apparatus counts the number of data items spaced between the same data items 1 according to the history display position and the target display position, for example, if the counting is started in the display order with 1 in the first page as a starting point, and the starting point count is 0, the count 6 of 1 in the second page is the number of data items spaced between two 1, that is, the repeated display interval thereof. The same reason can be seen that the repeated display interval of the same data entry 3 is 7 data entries.
Since the set position interval is 5 data items, the repeated display intervals of the same data items 1 and 3 exceed the set position interval, and the process proceeds to the step (4) through duplicate detection.
For example, if the target data is [3, 8, 9, 1, 11, 12], the page display apparatus determines that the same data item exists in the history data as the target data, and needs to determine whether the repeated display intervals of the same data items 1 and 3 exceed the set position intervals, respectively.
For the same data item 1, the page display apparatus acquires the history display position and the target display position thereof, wherein the history display position is the first of the first page and the target display position is the fourth of the second page. Then, the page display apparatus counts the number of data items spaced between the same data items 1 according to the history display position and the target display position, for example, if the counting is started in the display order with 1 in the first page as a starting point, and the starting point count is 0, the count 9 of 1 in the second page is the number of data items spaced between two 1, that is, the repeated display interval thereof. The same reason can be seen that the repeated display interval of the same data entry 3 is 4 data entries.
Since the set position interval is 5 data items, the repeated display interval of the same data item 1 exceeds the set position interval, but the repeated display interval of the same data item 3 is smaller than the set position interval, and the process proceeds to (5) without passing the duplicate detection.
(4) And if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page.
Referring to fig. 2b, since the same data entry repetition display interval in the target data [1, 8, 9, 3, 11, 12] exceeds the set position interval, a target page can be generated from the target data and displayed.
(5) If the repeated display interval is smaller than the set position interval, adjusting the target display position of the same data item in the target data to enable the repeated display interval to exceed the set position interval; and generating and displaying a target page according to the target data after the position adjustment.
Since the repeated display interval of the same data item 3 in the target data [3, 8, 9, 1, 11, 12] is smaller than the set position interval, the page display apparatus adjusts the display position of 3 in the target data.
For example, the page may determine a target position where the repeated display interval exceeds the set position interval according to the set position interval, and if the data entry of the target position is different from the history data, the data entry of the same data entry may be exchanged with the data entry of the target position. That is, the page display apparatus determines that the target position is the second position and the subsequent positions of the target page according to the set position interval 5 data entries, and then the page display apparatus exchanges the target display position between 3 in the target data and the second or subsequent data entries in the target page to realize the adjustment of the display position. For example, the page display device will swap positions 3 and 8.
Thus, the page display apparatus adjusts the target display position of 3, and then repeatedly displays the page whose display interval exceeds the set position interval, and then, referring to fig. 2c, the page display apparatus generates and displays the target page using the position-adjusted target data.
Therefore, the repeated display interval of the repeated data can be allowed to be repeatedly displayed under the condition that the repeated display interval of the repeated data meets the set position interval by adjusting the target display position of the repeated data items which do not pass the duplicate checking and the duplicate checking, so that the repeated display of the data is repeated after a certain interval, the duplicate removal effect is realized, the quantity and richness of the displayed data can be guaranteed, and the bad experience of more repeated data can not be caused to a user.
In order to better implement the method, an embodiment of the present invention further provides a page display apparatus, where the page display apparatus may be specifically integrated in a network device, such as a terminal or a personal computer, and the terminal may include a mobile phone, a tablet computer, or a notebook computer.
For example, as shown in fig. 3a, the page retrieval apparatus may include an acquisition unit 301, a duplication checking unit 302, a spacing unit 303, and a display unit 304, as follows:
(1) an acquisition unit 301;
an obtaining unit 301, configured to, when receiving the first operation, obtain target data according to a target page indicated by the first operation.
Wherein the first operation may be a data preloading operation or a page switching operation, etc. For example, the data preloading operation may be an operation of sliding a page to the bottom of the screen, and the obtaining unit 301 determines the next page as a target page, and needs to obtain data of the next page in advance, so that data in the page can be quickly loaded when the user switches the page. For example, the page switching operation may be an operation of switching to a previous page, a next page, or a page with a specified page number, and the indicated target page corresponds to the page of the previous page, the next page, or the specified page, respectively.
The obtaining unit 301 may detect an operation input by a user in real time, determine, when receiving a first operation, a target page to which data needs to be loaded according to the first operation, and obtain a page number of the target page. For example, if the first operation is a page switching operation, the page number of the page selected by the user is obtained, the target page indicated by the first operation is obtained, and the page number of the page is used as the target page number of the data to be loaded.
Then, the obtaining unit 301 sends a data request to the server, where the data request carries the page number to indicate a target page where the target data needs to be loaded.
After receiving the data request sent by the obtaining unit 301, the server analyzes the data request, obtains a page number in the data request, and obtains a target page of the first operation instruction. Then, in the real-time total data sequence, the data sequence corresponding to the target page number is extracted as target data, and the target data is returned to the page display device.
The acquiring unit 301 receives a data sequence returned by the server as target data. It should be noted that, if the target data is data in the first displayed page, for example, data in the first page, the target data can be directly displayed without being checked for duplication.
In some embodiments, if the number of data entries returned by the server is greater than N, the obtaining unit 301 takes the first N data entries in the received data sequence as target data, and takes the remaining data entries as standby data, so as to prevent the page display apparatus from pulling data to the server many times to affect the data loading speed.
For example, the server may return 20 data entries each time 10 data entries are displayed in the page, and if the page display device requests data of the second page, the server will return 20 th to 39 th data entries in the total data sequence. The acquisition unit 301 takes the items 20 to 29 as the target data and the items 30 to 39 as the spare data.
(2) A duplicate checking unit 302;
and a duplicate checking unit 302, configured to determine whether there is a data entry in the history data that is the same as the target data.
Wherein the historical data comprises a data sequence which is displayed and arranged according to the display order. Where necessary, the historical data includes at least the data sequence displayed in the current page.
For example, the historical data may include only the data sequence displayed in the current page, with the data entry displayed furthest back in the display order being the last bit in the data sequence; or the data sequence comprises the current page and the data sequence displayed on the page before the current page, and the data sequence of the current page is sequenced after the data sequence of the page before the current page in the historical data sequence.
The duplication checking unit 302 may acquire history data from the history. Then, the duplication checking unit 302 determines whether there is a data entry identical to the target data in the history data one by one.
For example, the target data includes 10 data entries, the duplication checking unit 302 may check whether the 10 data entries are identical to the data entries in the history data one by one.
In some embodiments, if there is no data entry in the history data that is the same as the target data, the display unit 304 generates a target page according to the target data and displays the target page.
(3) A spacing unit 303;
an interval unit 303, configured to determine whether a repeated display interval of the same data item exceeds a set position interval if the same data item as the target data exists in the history data.
If the same data item as the target data is found in the history data, the interval unit 303 may determine whether the repeated display interval of the same data item exceeds the set position interval.
The repeated display interval of the same data items can be the number of the data items or the page number of the interval when the same data items are repeatedly displayed, and the repeated display interval can be flexibly configured according to actual needs. The set position interval is the maximum allowable repeated display position interval, for example, 10 data items or 1 page. The set position interval can be a default value or preset by a user, and the like, and can be flexibly configured according to actual needs.
In some embodiments, the interval unit 303 may include an interval subunit and a determination subunit, wherein the interval subunit is configured to obtain a repeated display interval of the same data item; and a determination subunit for determining whether the repeated display interval exceeds a set position interval.
The interval subunit may count the data items or pages forward in the display order with the history display position of the same data item as a start point and the target display position thereof in the target page as an end point, to count the number of data items or pages of the interval therebetween as the repeated display interval. When counting, the starting point may be counted as 0, and the end point may be counted as the repeated display interval value. Of course, the interval subunit may also count with the target display position of the same data entry as a starting point and the history display position thereof as an end point, and may be flexibly configured according to actual needs.
For example, the repeated display interval is the number of data items spaced by the same data item when repeatedly displayed, data item a is displayed first in the current page, 6 data items are displayed per page, and the target data also includes data item a. If the position of A in the target page in the target data is first, the interval subunit counts the data entry at the first position in the current page to be 0, then counts the second data entry in the current page to be 1 according to the display sequence, counts the third data entry in the current page to be 2, and so on until the A in the target page is counted, and at the moment, the count is 6, and repeatedly displays the data entry with the interval of 6.
If the set position interval is 6 data items or less, the determining subunit determines that the repeated display interval of the same data items exceeds the set position interval; if the set position interval is 7 data items or more, the determination subunit determines that the repeated display interval of the same data item does not exceed the set position interval.
In some embodiments, in order to obtain the repeated display distance of the same data item more accurately, the following data item number or page number is illustrated in which the repeated display interval is the interval of the same data item when displayed:
the repeated display interval of (a) the same data item is the number of data items that the same data item is spaced apart when displayed.
For example, the spacer sub-unit is specifically configured to: acquiring historical display positions and target display positions of the same data items; counting the number of data items spaced among the same data items according to the historical display position and the target display position; the number of data items is taken as the repeat display interval of the same data item.
The interval subunit may query the history record to find the location where the same data entry was displayed as the history display location. If the displayed positions of a plurality of the same data items are found, the position displayed last time is selected as the historical display position. And, the interval subunit may determine the target display position of the same data entry, that is, the position in the target page, according to the position or the sequence number of the same data entry in the data sequence of the target data.
Then, the interval subunit counts the number of data items of the interval between the repeated display of the same data item according to the historical display position and the target display position of the same data item. Specifically, the displayed or to-be-displayed data items between the historical display position and the target display position of the same data item may be arranged into a target data sequence according to the display order; then, taking the same data items of the historical display as a starting point, counting to 0, counting according to the target data sequence until the same data items to be displayed, and taking the count of the same data items to be displayed as the number of the data items at intervals, thereby obtaining the number of the data items at intervals when the same data items are repeatedly displayed.
For example, if the same data entry is a, the history data includes a data sequence [ B, A, C, D, E ], the target data includes a data sequence [ F, G, A, H, I ], then starting from a in the history data, and a in the target data is an end point, C, D, E already displayed and F, G to be displayed between two as are configured as a target data sequence [ A, C, D, E, F, G, A ], then, taking the history data entry in the target data sequence as a starting point, that is, the first a is counted as 0, C is counted as 1, D is counted as 2, … …, a to be displayed is counted as 6, and then the number of data entries of the interval between when a is repeatedly displayed is 6.
If the set position interval is 7 data items or more, the determining subunit determines that the repeated display interval of the A does not exceed the set position interval; if the set position interval is 6 items of data items or less, the determination subunit determines that the repeat display interval of a exceeds the set position interval.
Thereby, detection of the repeated display interval is realized.
(II) the repeated display interval of the same data item is the number of pages that the same data item is spaced apart when displayed.
For example, the spacer sub-unit is specifically configured to: acquiring a page where the same data entry in the historical data is located as a historical page; and counting the page number of the interval between the historical page and the target page as the repeated display interval of the same data item.
And the interval subunit takes the page where the same data entry in the historical data is located as a historical page, and the historical page is the page displaying the same data entry in the historical data. And if the same data entry in the historical data is displayed in a plurality of pages, taking the page with the display time closest to the current time as the historical page.
Then, the interval subunit counts the number of the pages of the interval between the history page and the target page according to the display sequence. Specifically, the interval subunit may count the history page as a starting point and the page to be displayed as an end point forward according to the page display order, so as to count the number of the pages in the interval as the repeated display interval. When counting, the starting point may be counted as 0, and the end point may be counted as the repeated display interval value. Of course, the page to be displayed may also be used as a starting point and the target page as an end point for counting, and the counting may be flexibly configured according to actual needs.
For example, if the same data entry is a, and the page where a is located in the history data is the current page, the interval subunit takes the current page as the history page. Then, the page display apparatus counts the history page as a start point to 0, counts the history page forward in the display order, counts the target page as an end point to 1, and repeatedly displays the history page at an interval of 1. If the set position interval is 0 page, determining that the repeated display interval exceeds the set position interval by the subunit; if the set position interval is 1 page or more, the determination subunit determines that the repeated display interval does not exceed the set position interval.
Thereby, detection of the repeated display interval is realized.
(4) A display unit 304;
and a display unit 304, configured to generate and display a target page according to the target data if the repeated display interval exceeds the set position interval.
If the repeated display interval of the same data item exceeds the set position interval, display section 304 determines that the same data item has passed the duplicate detection and can be displayed on the target page. The display unit 304 generates and displays a target page according to preset display parameters and target data, so as to display the target page. The preset display parameters include, for example, page size, color, and arrangement of data entries in the target data.
In some embodiments, the first operation is a data preloading operation, and the display unit 304 is specifically configured to: and if the repeated display interval exceeds the set position interval, generating and displaying a target page according to the target data when receiving the second operation.
If the first operation is an operation of sliding the page to the bottom of the screen, the obtaining unit 301 determines that the first operation is received, determines the next page of the current page as the target page indicated by the first operation, and needs to obtain data of the next page in advance, so that data in the page can be loaded quickly when the user switches the page. The second operation includes a page switching operation and the like.
The display unit 304 generates and displays a target page from the target data detected by the duplication checking when receiving the second operation.
Therefore, data preloading is achieved, and the time for waiting data loading and duplicate checking during page switching is avoided.
In some embodiments, if the repeated display interval is smaller than the set position interval, the page display apparatus may adjust the content or position of the data entry in the target data to make the target data meet the display requirement, for example, there may be two following embodiments:
and (one) when the repeated display interval of the same data item does not exceed the set position interval, performing deduplication processing on the data to be displayed.
For example, referring to fig. 3b, the page display apparatus further includes a standby unit 305:
a standby unit 305 for acquiring standby data if the repeated display interval is smaller than the set position interval; and replacing the same data entry in the target data by using the standby data, and generating and displaying a target page according to the replaced target data.
The standby data may be the standby data that is returned by the server together when the obtaining unit 301 obtains the target data; or, the standby unit 305 sends a standby data request to the server, and the server returns all or part of data corresponding to a next page of the target page as standby data to the standby unit 305 according to the target page indicated by the first operation; of course, the standby data may also be other preset data, such as advertisement data and/or promotion data, and may be flexibly configured according to actual needs.
Then, the standby unit 305 replaces the same data entry in the target data with the standby data, and generates and displays a target page using the replaced target data. Therefore, duplicate removal display of the target page is achieved, and user experience is improved.
As an embodiment, after the step "acquiring the spare data", the spare unit 305 may determine whether there is a data entry in the history data that is the same as the spare data, and the specific detection manner may refer to what is described in the interval unit 303, and is not described herein again. If the historical data does not have the same data entry as the spare data, the spare unit 305 replaces the same data entry in the target data with the spare data, and generates and displays a target page by using the replaced target data.
And (II) when the repeated display interval of the same data item does not exceed the set position interval, the repeated display interval can exceed the set position interval by adjusting the display position.
For example, referring to fig. 3c, the page display apparatus further includes an adjusting unit 306:
an adjusting unit 306, configured to adjust a target display position of the same data entry in the target data if the repeated display interval is smaller than the set position interval, so that the repeated display interval exceeds the set position interval; and generating and displaying a target page according to the target data after the position adjustment.
If the repeated display interval is smaller than the set position interval, that is, the repeated display distance of the same data entry is too short, the user experience is affected, and therefore, the adjusting unit 306 may reduce the influence of the data repetition on the user experience by adjusting the target display position of the same data entry.
For example, the same data entry is exchanged with the last data entry in the target data, or the same data entry is exchanged with the data entry in the next page of the target display page, so that the repeated display interval of the same data entry exceeds the set position interval. It should be noted that the adjustment manner of the target display positions of the same data items in the target data is not limited to the above manner, and may be flexibly configured according to actual needs.
Then, the adjusting unit 306 generates a target page using the position-adjusted target data and displays the target page.
For example, explaining taking the example that the repeated display interval is the number of data items at which the same data item is spaced when displayed, the page adjustment unit 306 may swap the position of the same data item with the next data item ordered after it each time until the repeated display interval exceeds the set position interval. Of course, the adjusting unit 306 may also determine the display position satisfying the set position interval as the target position according to the difference between the repeated display interval and the set position interval, and if there is no data entry in the history data that is the same as the data entry in the target position, exchange the same data entry with the data entry in the target position.
Therefore, the same data items can be repeatedly displayed after a certain distance is kept by adjusting the display positions of the same data items, and the actual situation of background data is more close.
In some embodiments, if the duplication checking unit 302 finds that there are two or more identical data items in the target data, the spacing unit 303 determines whether the repeated display interval of each identical data item exceeds the set position interval. It should be noted that, in this embodiment, it is exemplified that there is no data entry that is duplicated with each other in the target data returned by the server, and therefore, there is no same relationship between multiple identical data entries in the target data.
If the repeated display interval of each item of the same data item exceeds the set position interval, the display unit 304 generates and displays a target page according to the target data. If the repeated display interval of the same data entry is smaller than the set position interval, the target display position can be adjusted by the adjusting unit 306 so that the repeated display interval exceeds the set position interval, and then the target page is generated and displayed by using the target data after the position adjustment, or the standby unit 305 replaces the same data entry by using the standby data and generates and displays the target page by using the target data after the replacement.
As can be seen from the above, in the embodiment of the present invention, when receiving the first operation, the obtaining unit 301 obtains the target data according to the target page indicated by the first operation, so as to check the duplicate of the target data to be displayed; then, the duplication checking unit 302 determines whether there is a data entry identical to the target data in the history data, and if there is a data entry identical to the target data in the history data, the spacing unit 303 determines whether the repeated display interval of the identical data entry exceeds a set position interval; if the repeated display interval exceeds the set position interval, the display unit 304 generates a target page from the target data and displays the target page. Therefore, when the duplicate data is checked, if the duplicate data is detected, the duplicate data can be allowed to be repeatedly displayed under the condition that the repeated display interval of the duplicate data meets the set position interval, so that the repeated display of the data after a certain interval can be tolerated by a user, the duplicate removal effect is realized, the quantity and richness of the displayed data can be ensured, and the reduction of the page which can be integrally displayed in the foreground is avoided. Therefore, according to the scheme, under the condition of solving the repeated data, more data can be displayed in the page to the greatest extent, and the page display effect is effectively improved. Meanwhile, the page data can be displayed according to the real-time data condition of the background under the condition that the background data changes, the background data can be reflected more accurately, the influence on a user due to data inconsistency caused by time and/or environment changes is reduced, and the accuracy of background data display is improved.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 4, the terminal may include Radio Frequency (RF) circuits 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
when a first operation is received, acquiring target data according to a target page indicated by the first operation; determining whether a data entry identical to the target data exists in the historical data; if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval; and if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the page display methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
when a first operation is received, acquiring target data according to a target page indicated by the first operation;
determining whether a data entry identical to the target data exists in the historical data;
if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval;
and if the repeated display interval exceeds the set position interval, generating a target page according to the target data and displaying the target page.
In some embodiments, the instructions may further perform the steps of:
acquiring repeated display intervals of the same data items; it is determined whether the repeated display interval exceeds a set position interval.
In some embodiments, the instructions may further perform the steps of:
acquiring historical display positions and target display positions of the same data items; counting the number of data items spaced among the same data items according to the historical display position and the target display position; the number of data items is taken as the repeat display interval of the same data item.
In some embodiments, the instructions may further perform the steps of:
acquiring a page where the same data entry in the historical data is located as a historical page; and counting the page number of the interval between the historical page and the target page as the repeated display interval of the same data item.
In some embodiments, the instructions may further perform the steps of:
if the repeated display interval is smaller than the set position interval, acquiring standby data; and replacing the same data entry in the target data by using the standby data, and generating and displaying a target page according to the replaced target data.
In some embodiments, the instructions may further perform the steps of:
if the repeated display interval is smaller than the set position interval, adjusting the target display position of the same data item in the target data to enable the repeated display interval to exceed the set position interval; and generating and displaying a target page according to the target data after the position adjustment.
In some embodiments, the instructions may further perform the steps of:
and when the second operation is received, generating and displaying a target page according to the target data.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any page display method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any page display method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The page display method, the page display device and the storage medium provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (15)

1. A page display method, comprising:
when a first operation is received, acquiring target data according to a target page indicated by the first operation;
determining whether a data entry identical to the target data exists in the historical data;
if the historical data has the data items which are the same as the target data, determining whether the repeated display interval of the same data items exceeds a set position interval;
and if the repeated display interval exceeds a set position interval, generating and displaying the target page according to the target data.
2. The method of claim 1, wherein the determining whether the repeated display interval of the same data item exceeds a set position interval comprises:
acquiring repeated display intervals of the same data items;
determining whether the repeated display interval exceeds a set position interval.
3. The method of claim 2, wherein said obtaining a repeat display interval for the same data item comprises:
acquiring historical display positions and target display positions of the same data items;
counting the number of the data items spaced among the same data items according to the historical display position and the target display position;
and taking the number of the data items as the repeated display interval of the same data items.
4. The method of claim 2, wherein said obtaining a repeat display interval for the same data item comprises:
acquiring a page where the same data entry in the historical data is located as a historical page;
and counting the page number of the interval between the historical page and the target page, and taking the page number as the repeated display interval of the same data item.
5. The method of claim 1, wherein determining whether a repeat display interval of the same data item exceeds a set position interval further comprises:
if the repeated display interval is smaller than the set position interval, acquiring standby data;
and replacing the same data entry in the target data by using the standby data, and generating and displaying the target page according to the replaced target data.
6. The method of claim 1, wherein determining whether a repeat display interval of the same data item exceeds a set position interval further comprises:
if the repeated display interval is smaller than the set position interval, adjusting the target display position of the same data item in the target data to enable the repeated display interval to exceed the set position interval;
and generating and displaying the target page according to the target data after the position adjustment.
7. The method of claim 1, wherein said generating and displaying the destination page from the destination data comprises:
and when a second operation is received, generating and displaying the target page according to the target data.
8. A page display apparatus, comprising:
the acquisition unit is used for acquiring target data according to a target page indicated by the first operation when the first operation is received;
the duplication checking unit is used for determining whether the historical data has the same data entry as the target data;
the interval unit is used for determining whether the repeated display interval of the same data item exceeds a set position interval or not if the same data item as the target data exists in the historical data;
and the display unit is used for generating and displaying the target page according to the target data if the repeated display interval exceeds a set position interval.
9. The apparatus of claim 8, wherein the spacing unit comprises a spacing subunit and a determining subunit;
the interval subunit is used for acquiring repeated display intervals of the same data items;
the determining subunit is configured to determine whether the repeated display interval exceeds a set position interval.
10. The apparatus of claim 9, wherein the spacer subunit is specifically configured to:
acquiring historical display positions and target display positions of the same data items;
counting the number of the data items spaced among the same data items according to the historical display position and the target display position;
and taking the number of the data items as the repeated display interval of the same data items.
11. The apparatus of claim 9, wherein the spacer subunit is specifically configured to:
acquiring a page where the same data entry in the historical data is located as a historical page;
and counting the page number of the interval between the historical page and the target page, and taking the page number as the repeated display interval of the same data item.
12. The apparatus of claim 8, wherein the apparatus further comprises:
a standby unit for acquiring standby data if the repeated display interval is smaller than a set position interval; and replacing the same data entry in the target data by using the standby data, and generating and displaying the target page according to the replaced target data.
13. The apparatus of claim 8, wherein the apparatus further comprises:
an adjusting unit, configured to adjust a target display position of the same data entry in the target data if the repeated display interval is smaller than a set position interval, so that the repeated display interval exceeds the set position interval; and generating and displaying the target page according to the target data after the position adjustment.
14. The apparatus of claim 8, wherein the display unit is specifically configured to:
and if the repeated display interval exceeds the set position interval, generating and displaying the target page according to the target data when receiving a second operation.
15. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the page display method according to any one of claims 1 to 7.
CN201810706898.2A 2018-07-02 2018-07-02 Page display method and device and storage medium Active CN110673902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810706898.2A CN110673902B (en) 2018-07-02 2018-07-02 Page display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810706898.2A CN110673902B (en) 2018-07-02 2018-07-02 Page display method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110673902A true CN110673902A (en) 2020-01-10
CN110673902B CN110673902B (en) 2021-11-02

Family

ID=69065983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810706898.2A Active CN110673902B (en) 2018-07-02 2018-07-02 Page display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110673902B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6741268B1 (en) * 1999-07-26 2004-05-25 Nec Corporation Page information display method and apparatus, and storage medium for storing program or data for display page
US20040125081A1 (en) * 2000-03-21 2004-07-01 Nec Corporation Page information display method and device and storage medium storing program for displaying page information
CN105099866A (en) * 2014-05-23 2015-11-25 腾讯科技(北京)有限公司 Method and apparatus for controlling data display
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6741268B1 (en) * 1999-07-26 2004-05-25 Nec Corporation Page information display method and apparatus, and storage medium for storing program or data for display page
US20040125081A1 (en) * 2000-03-21 2004-07-01 Nec Corporation Page information display method and device and storage medium storing program for displaying page information
CN105099866A (en) * 2014-05-23 2015-11-25 腾讯科技(北京)有限公司 Method and apparatus for controlling data display
CN106055612A (en) * 2016-05-25 2016-10-26 青岛海信传媒网络技术有限公司 Data paging display method and terminal equipment

Also Published As

Publication number Publication date
CN110673902B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US10411945B2 (en) Time-distributed and real-time processing in information recommendation system, method and apparatus
CN106775637B (en) Page display method and device for application program
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN105786878B (en) Display method and device of browsing object
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
US10652287B2 (en) Method, device, and system for managing information recommendation
CN104965641B (en) information display method and device
CN109756767B (en) Preview data playing method, device and storage medium
US20150154149A1 (en) Typesetting method, device and system
CN108984066B (en) Application icon display method and mobile terminal
WO2014194713A1 (en) Method,apparatus and computer readable storage medium for displaying video preview picture
US20160292946A1 (en) Method and apparatus for collecting statistics on network information
US20170064352A1 (en) Method and system for collecting statistics on streaming media data, and related apparatus
CN110377235B (en) Data processing method and device, mobile terminal and computer readable storage medium
US20150043312A1 (en) Sound playing method and device thereof
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN108540649B (en) Content display method and mobile terminal
JP6915074B2 (en) Message notification method and terminal
CN107632985B (en) Webpage preloading method and device
CN104238931B (en) Information input method and device and electronic equipment
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN104954231B (en) Method and device for sending and displaying recommendation information
CN110673902B (en) Page display method and device and storage medium
CN115390707A (en) Sharing processing method and device, electronic equipment and storage medium
CN115017406A (en) Live broadcast picture display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40018766

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant