Page display methods, electronic devices and storage media

By determining the display position of ad resources within the page based on the number of resources and the number of intervals, the problem of ads being easily overlooked is solved, thereby improving ad effectiveness without affecting user experience.

CN114358827BActive Publication Date: 2025-10-31ZHANGYUE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111631039.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-10-31
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In existing technologies, ad insertion methods are easily overlooked by users, resulting in insufficient advertising effectiveness.

Method used

By responding to access operations on the target page, the target resource sequence is obtained, and based on the number of resources and the preset interval, the display positions of the first and second resources are determined within the page, and advertising resources are inserted to increase user attention.

Benefits of technology

This improves the effectiveness of advertising without affecting the user's browsing experience of the main resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114358827B_ABST
    Figure CN114358827B_ABST
Patent Text Reader

Abstract

This disclosure relates to a page display method, an electronic device, and a storage medium. The page display method includes, in response to detecting an access operation to a target page, acquiring a target resource sequence corresponding to the target page; wherein the target resource sequence includes a first number of first resources, the first resources belonging to a first resource type; based on the first number and a preset interval number, determining a first display position corresponding to the first resource type and a second display position corresponding to a second resource type within the target page; and displaying the first resources and the second resources corresponding to the second resource type within the target page according to the first and second display positions. According to embodiments of this disclosure, it is possible to increase user attention to the second resources, thereby improving advertising effectiveness, without affecting the user's browsing of the first resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a page display method, electronic device, and storage medium. Background Technology

[0002] With the improvement of mobile terminal device performance and the development of network technology, advertisements are often inserted into the content that users browse, such as videos or articles.

[0003] Currently, advertisements are usually inserted at the top or bottom of the page, but these are easily overlooked by users and do not achieve substantial advertising benefits. Summary of the Invention

[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a page display method, an electronic device, and a storage medium.

[0005] Firstly, this disclosure provides a page display method, including:

[0006] In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type;

[0007] Based on the first quantity and the preset interval quantity, determine the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page;

[0008] Based on the first display position and the second display position, display the second resource corresponding to the first resource and the second resource type within the target page.

[0009] In a second aspect, this disclosure provides an electronic device, including a processor and a memory, the memory being used to store executable instructions that cause the processor to perform the following operations:

[0010] In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type;

[0011] Based on the first quantity and the preset interval quantity, determine the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page;

[0012] Based on the first display position and the second display position, display the second resource corresponding to the first resource and the second resource type within the target page.

[0013] Thirdly, this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the page display method of the first aspect.

[0014] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0015] The page display method, electronic device, and storage medium of this disclosure are capable of obtaining a target resource sequence corresponding to the target page in response to detecting an access operation to the target page. The target resource sequence includes a first number of first resources, each belonging to a first resource type. Based on the first number and a preset interval, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page. The first and second resource types are then displayed within the target page according to their respective positions. Therefore, according to this disclosure, second resources can be inserted into a target resource sequence including a first number of first resources, which can increase user attention to the second resources, thereby improving advertising effectiveness, without affecting the user's browsing of the first resources. Attached Figure Description

[0016] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0017] Figure 1 A schematic flowchart of a page display method provided in an embodiment of this disclosure is shown;

[0018] Figure 2 This illustration shows a display diagram of a target page provided in an embodiment of the present disclosure;

[0019] Figure 3 This illustration shows another target page display diagram provided in an embodiment of the present disclosure;

[0020] Figure 4 A flowchart illustrating another page display method provided in an embodiment of this disclosure is shown;

[0021] Figure 5 A flowchart illustrating yet another page display method provided in an embodiment of this disclosure is shown;

[0022] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0023] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0024] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0027] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0028] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0029] This disclosure provides a page display method, electronic device, and storage medium for increasing user attention to a second resource, thereby improving the effectiveness of advertising.

[0030] The following is a combination of... Figure 1-5 The page display method provided in the embodiments of this disclosure will be described.

[0031] The page display method provided in this disclosure can be implemented by an electronic device capable of providing page display functionality. This electronic device may include, but is not limited to, mobile terminals such as smartphones, laptops, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and wearable devices, as well as fixed terminals such as digital TVs, desktop computers, and smart home devices.

[0032] Figure 1 A schematic flowchart of a page display method provided in an embodiment of this disclosure is shown.

[0033] like Figure 1 As shown, the method for displaying this page may include the following steps.

[0034] S110. In response to detecting an access operation for the target page, obtain the target resource sequence corresponding to the target page.

[0035] The target resource sequence includes a first quantity of first resources, and the first resources belong to a first resource type.

[0036] In this embodiment of the disclosure, when a user wants to access a target page, the user can perform an access operation for the target page. When the electronic device detects the access operation for the target page, it can obtain the target resource sequence corresponding to the target page.

[0037] Specifically, the target page can be any page that a user can access.

[0038] For example, the target page may include the page corresponding to any option tag. For instance, the target page may include the page corresponding to tags such as "Recommended List", "Hot Reads List", "Popularity List", "Completed Books List", "Friends", "Messages", etc.

[0039] For example, the target page may also include search results pages corresponding to any search keyword. For instance, the target page may include search results pages corresponding to search keywords such as "fantasy," "romance," "rebirth," "palace intrigue," "classical dance videos," and "street dance videos." However, it is not limited to this.

[0040] Specifically, the access operation to the target page can be any operation that can trigger the electronic device to obtain the target resource sequence.

[0041] For example, access operations to a target page can include clicking an option label, or non-contact operations such as voice control, gesture control, or eye tracking to select an option label, such as clicking the "Recommended List" label or the "Friends" label. However, it is not limited to these.

[0042] For example, accessing a target page may also include searching for any search keyword. However, it is not limited to this.

[0043] For example, access operations to the target page can also include clicking on a page-turning control, or non-contact selection of a page-turning control such as voice control, gesture control, or eye tracking, for example, clicking on controls such as "Show More," "View More," or "Load More." Access operations to the target page can also include swiping on the target page via touch, such as swiping up or right to display the page. However, these are not limited to these methods.

[0044] Specifically, the target resource sequence can be any resource sequence that can be displayed on the target page. The target resource sequence can include a first number of first resources, and the first resources belong to a first resource type.

[0045] Specifically, the first resource type includes media content resources, which may include, but are not limited to, article resources or video resources. For example, a first resource can be an article, a book, or a video.

[0046] For example, when the target page is the page corresponding to a certain option tag, the target resource sequence can be a resource sequence consisting of a first number of first resources related to that option tag. For instance, when the target page is the page corresponding to the "Complete Books" tag, the first resource can be completed book resources, and the target resource sequence can include a first number of completed books. As another example, when the target page is the page corresponding to the "Friends" tag, the first resource can be video resources posted by users who are friends with the target user, and the target resource sequence can include a first number of videos; wherein, the target user can be a user who performs an access operation to the target page. However, this is not the only possible approach.

[0047] For example, when the target page is a search results page corresponding to a certain search keyword, the target resource sequence can be a resource sequence consisting of a first number of resources related to that search keyword. For instance, when the target page is a search results page corresponding to the search keyword "rebirth," the first resource can be a book resource belonging to the "rebirth" category, and the target resource sequence can include a first number of books belonging to the "rebirth" category. As another example, when the target page is a search results page corresponding to the search keyword "classical dance videos," the first resource can be classical dance-related videos, and the target resource sequence can include a first number of classical dance-related videos. However, this is not the only possible approach.

[0048] S120. Based on the first quantity and the preset interval quantity, determine the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page.

[0049] In this embodiment of the disclosure, the electronic device can determine, based on a first quantity and a preset interval quantity, a first display position corresponding to a first resource type and a second display position corresponding to a second resource type within the target page.

[0050] Specifically, the first display position corresponding to the first resource type may include at least one display position. There is a one-to-one correspondence between the first resource and the display position; that is, when displaying the first resource, the first resource is displayed in its corresponding display position.

[0051] Specifically, the second display position corresponding to the second resource type may include at least one display position. There is a one-to-one correspondence between the resource corresponding to the second resource type and the display position; that is, when displaying the resource corresponding to the second resource type, the resource corresponding to the second resource type is displayed in its corresponding display position.

[0052] Specifically, the preset interval number refers to setting at least one display position corresponding to a resource of a second resource type after setting a preset interval number of consecutive display positions corresponding to the first resource within the target page. It should be noted that the specific value of the preset interval number can be set by those skilled in the art according to actual circumstances, and is not limited here. The specific number of display positions corresponding to the second resource type set between two adjacent display positions corresponding to the first resource can also be set by those skilled in the art according to actual circumstances, and is not limited here.

[0053] Optionally, the preset interval number can be greater than or equal to 4, and a display position corresponding to a resource of the second resource type can be set between the display positions of two adjacent first resource types. This avoids inserting too many resources of the second resource type, thus preventing any impact on the user's browsing experience of the first resources.

[0054] Specifically, the second resource type includes advertising content resources, which may include, but are not limited to, article resources or video resources. For example, a first resource can be an article, a book, or a video.

[0055] S130. Display the second resource corresponding to the first resource and the second resource type on the target page according to the first display position and the second display position.

[0056] In this embodiment of the disclosure, the electronic device can display, within the target page, a first resource included in the target resource sequence and a second resource inserted between two adjacent first resources, according to a first display position and a second display position.

[0057] Specifically, after S120, the display position corresponding to each first resource in the target resource sequence can be determined, and the display position corresponding to each second resource can also be determined. When the electronic device displays on the target page, the first resource is displayed at its corresponding display position, and the second resource is displayed at its corresponding display position.

[0058] For example, Figure 2 This illustration shows a display diagram of a target page provided in an embodiment of this disclosure. For example... Figure 2 As shown, when a user clicks the "Popularity Ranking" tab, the electronic device responds to the operation, obtains a target resource sequence including 10 first resources 210, and after determining the display position corresponding to each first resource 210 and the second display position corresponding to the second resource type, displays the first resource 210 and the second resource 220 corresponding to the second resource type on the target page according to the first display position and the second display position.

[0059] For example, Figure 3 This illustration shows another target page display diagram provided in an embodiment of the present disclosure. For example... Figure 3 As shown, when a user swipes up on the target page, the electronic device responds to the operation by acquiring a target resource sequence including 10 first resources 310. After determining the display position corresponding to each first resource 310 and the second display position corresponding to the second resource type, the first resource 310 and the second resource 320 corresponding to the second resource type are displayed on the target page according to the first display position and the second display position.

[0060] The page display method of this disclosure is capable of obtaining a target resource sequence corresponding to the target page in response to detecting an access operation to the target page. The target resource sequence includes a first number of first resources, each belonging to a first resource type. Based on the first number and a preset interval, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page. The first and second resource types are then displayed within the target page according to their respective positions. Therefore, according to this disclosure, second resources can be inserted into a target resource sequence including a first number of first resources, which can increase user attention to the second resources, improve advertising effectiveness, and not affect the user's browsing of the first resources.

[0061] In another embodiment of this disclosure, S120 may include: S121, when the target resource sequence is a resource sequence obtained for the first time for the target page, determining a first display position and a second display position within the target page based on a first quantity, a preset interval quantity, and a first preset position.

[0062] In this embodiment of the disclosure, when the target resource sequence is the resource sequence obtained for the first time for the target page, regardless of whether the number of resources in each resource sequence obtained for the target page is the same or different, a first display position and a second display position can be determined within the target page based on a first quantity, a preset interval quantity, and a first preset position. In this case, the first display position includes the display position corresponding to each first resource in the target resource sequence, and the second display position only includes the display position corresponding to each second resource.

[0063] Specifically, the resource sequence first obtained for a target page refers to the resource sequence obtained by the electronic device each time the user opens the target page in order to display resources on the target page.

[0064] The first preset position is the display position corresponding to the first second resource type. Specifically, the first preset position is used to characterize the display position corresponding to the first second resource type within the target page. For example, as... Figure 2 As shown, the first preset position is the fourth display position on the target page.

[0065] For example, when the target page is the page corresponding to an option label, if a user wants to open the page corresponding to a certain option label by clicking the option label, or by selecting the option label non-contactly through voice control, gesture control, eye tracking, etc., the electronic device responds to this operation, and the target resource sequence obtained is the first resource sequence obtained for the page corresponding to that option label. For example, when a user wants to open the page corresponding to the "Popularity Ranking" label and clicks the "Popularity Ranking" label, the electronic device responds to this operation and can obtain the target resource sequence. At this time, the target resource sequence obtained by the electronic device is the first resource sequence for the target page corresponding to the "Popularity Ranking" label, for example, by... Figure 2 The resource sequence consisting of the 10 first resources shown is the first resource sequence of the target page.

[0066] For example, when the target page is the search results page for a search keyword, if a user enters a search operation for a certain search keyword into the electronic device, the electronic device responds to the search operation and obtains the target resource sequence, which is the first resource sequence obtained from the search results page for that search keyword. For instance, when a user enters "romance" in the search box and clicks the search control, the electronic device responds to this operation and can obtain the target resource sequence. At this time, the target resource sequence obtained by the electronic device is the first resource sequence from the search results page for the search keyword "romance".

[0067] In some embodiments, S121 may include: starting from the first display position in the target page, detecting whether the display position is a first preset position; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type; starting from the display position adjacent to the first preset position in the target page, detecting whether the display position and the first preset position are separated by a preset interval number; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type, until a first number of first display positions corresponding to the first resource are determined.

[0068] For example, if the first quantity is 10, the preset interval quantity is 4, and the first preset position is the 4th display position on the target page. Starting from the first display position on the target page, check if the first display position is a first preset position. If the result is no, then the first display position on the target page is determined as the display position corresponding to the first resource type. Similarly, the second and third display positions on the target page are determined as the display positions corresponding to the first resource type. Next, check if the fourth display position on the target page is a first preset position. If the result is yes, then the fourth display position on the target page is determined as the display position corresponding to the second resource type. Then, check if the fifth display position on the target page is 4 display positions away from the first preset position. If the result is no, then the fifth display position on the target page is determined as the display position corresponding to the first resource type. This process continues, with the sixth to eighth display positions on the target page determined as the display positions corresponding to the first resource type. Finally, check if the ninth display position on the target page is 4 display positions away from the first preset position. If the result is yes, then the ninth display position on the target page is determined as the display position corresponding to the second resource type. This process continues, with the tenth to twelfth display positions on the target page determined as the display positions corresponding to the first resource type. In this way, the display position corresponding to each first resource in the target resource sequence can be determined, and the display position corresponding to each second resource can also be determined.

[0069] Understandably, starting from the first display position on the target page, the first and second display positions are determined by checking whether each display position corresponds to the first resource type or the second resource type. This operation is simple and easy to implement.

[0070] It is also understandable that the first step is to determine whether the target resource sequence is the first resource sequence for the target page. If the target resource sequence is the first resource sequence for the target page, the calculation logic corresponding to the target resource sequence being the first resource sequence for the target page is used to determine the first display position and the second display position, which can accurately determine the display position corresponding to each first resource and each second resource.

[0071] In another embodiment of this disclosure, S121 may include: when the target resource sequence is a resource sequence that is not obtained for the first time for the target page, determining a first display position and a second display position within the target page based on a first quantity, a preset interval quantity and a target remaining quantity.

[0072] In this embodiment of the disclosure, when the target resource sequence is a resource sequence that has been obtained for the target page before, regardless of whether the number of resources in each resource sequence obtained for the target page is the same or different, a first display position and a second display position can be determined within the target page based on a first quantity, a preset interval quantity, and a target remaining quantity. In this case, the first display position may include the display position corresponding to each first resource in the target resource sequence, and the second display position may include the display position corresponding to each second resource.

[0073] Specifically, a resource sequence that is not the first time it is obtained for a target page refers to a resource sequence that an electronic device obtains in response to an access operation for the target page after the target page has already displayed at least one resource sequence.

[0074] For example, when the target page is the page corresponding to an option label or the search results interface for a search keyword, if the target page already displays at least one resource sequence, when the user wants to view more resources by clicking a page-turning control, or by selecting a page-turning control non-contactly using voice control, gesture control, eye tracking, or by swiping the target page using touch, the electronic device responds to this operation and obtains the target resource sequence, which is a resource sequence that is not the first one obtained for the page corresponding to that option label. However, this is not limited to this. For example, when the user clicks on controls such as "Show More," "View More," or "Load More" on the target page, or swipes the target page using touch, the electronic device responds to this operation and can obtain the target resource sequence. In this case, the target resource sequence obtained by the electronic device is a resource sequence that is not the first one obtained for the target page, for example, by... Figure 3 The resource sequence consisting of the 10 first resources shown is the non-first resource sequence of the target page.

[0075] Specifically, the target remaining quantity is the number of remaining resources in the historical resource sequence adjacent to the target resource sequence. The historical resource sequence includes the second number of third resources, which belong to the first resource type. The remaining resources are the third resources whose display position is after the target resource that has already been displayed in the target page. The target resource is the resource corresponding to the last second resource type.

[0076] For example, before obtaining the target resource sequence, multiple resource sequences are already displayed on the target page. Among these multiple resource sequences, the last resource sequence displayed on the timeline is the historical resource sequence adjacent to the target resource sequence. For example, such as... Figure 2 and Figure 3 As shown, when by Figure 3 When the resource sequence consisting of the 10 first resources shown is the target resource sequence, it is composed of... Figure 2 The resource sequence consisting of the 10 first resources shown is the historical resource sequence. The historical resource sequence includes 10 third resources. The resource corresponding to the last second resource type that has been displayed on the target page is the target resource (i.e., Figure 2 The fourth-to-last resource in the middle), and there are 3 third resources after the target resource, so the remaining quantity of the target is 3.

[0077] For a detailed explanation of the preset interval number and the first number, please refer to the previous text, which will not be repeated here.

[0078] In some embodiments, S121 may include: starting from the display position adjacent to the last third resource in the target page, detecting whether the display position and the last third resource are separated by a preset interval number and the target remaining number; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type; starting from the display position adjacent to the second preset position in the target page, detecting whether the display position and the second preset position are separated by a preset interval number; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined; wherein, the second preset position is the first display position corresponding to the second resource type corresponding to the target resource sequence.

[0079] For example, if the first quantity is 10, the preset interval quantity is 4, and the target remaining quantity is 3, then the difference between the preset interval quantity and the target remaining quantity is 1. Starting from the display position adjacent to the last third resource on the target page, it is checked whether the display position is 1 interval from the last third resource. If the detection result is no (difference 0), the display position is determined as the display position corresponding to the first resource type. It is then checked whether the next display position is 1 interval from the last third resource. If the detection result is yes (difference 1), the display position is determined as the display position corresponding to the second type of resource, and this display position is determined as the second preset display position. Starting from the display position adjacent to the second preset position on the target page (i.e., the first display position after the second preset position), it is checked whether the display position is 4 intervals from the second preset position. If the detection result is no, the display position is determined as the second preset position. The display position corresponding to the first resource type is determined; similarly, the second to fourth display positions after the second preset position are determined as the display positions corresponding to the first resource type; it is then checked whether the fifth display position after the second preset position is 4 units away from the second preset position. If the result is yes, this display position is determined as the display position corresponding to the second resource type; and so on, the sixth to ninth display positions after the second preset position are determined as the display positions corresponding to the first resource type, the tenth display position after the second preset position is determined as the display position corresponding to the second resource type, and the eleventh display position after the second preset position is determined as the display position corresponding to the first resource type. In this way, the display positions corresponding to each first resource in the target resource sequence can be determined, and the display positions corresponding to each second resource can also be determined.

[0080] Understandably, starting from the display position adjacent to the last third resource on the target page, the first and second display positions are determined by checking whether each display position corresponds to the first resource type or the second resource type. This operation is simple and easy to implement.

[0081] It is also understandable that the first step is to determine whether the target resource sequence is the first resource sequence for the target page. If the target resource sequence is not the first resource sequence for the target page, the calculation logic corresponding to the target resource sequence being not the first resource sequence for the target page is used to determine the first display position and the second display position, which can accurately determine the display position corresponding to each first resource and each second resource.

[0082] In another embodiment of this disclosure, the number of resources in each resource sequence obtained for the target page is the same; wherein, S120 may include: when the target resource sequence is the first resource sequence obtained for the target page, calculating the total number of resources in the target resource sequence and a preset number of resource sequences to be obtained based on a first quantity; wherein, the resource sequences to be obtained are resource sequences adjacent to the target resource sequence; and determining a first display position and a second display position within the target page based on the total number of resources, a preset interval quantity, and a first preset position; wherein, the first preset position is the display position corresponding to the first second resource type.

[0083] In this embodiment of the disclosure, when the target resource sequence is the resource sequence obtained for the first time for the target page, if the number of resources in each resource sequence obtained for the target page is the same, when determining the display position corresponding to each first resource and each second resource in the target resource sequence, the display positions corresponding to each resource in the resource sequences to be obtained and the display positions corresponding to the second resource types in each resource sequence to be obtained can also be predetermined. In this case, the first display position includes not only the display position corresponding to each first resource in the target resource sequence but also the display position corresponding to each resource in each resource sequence to be obtained; the second display position includes not only the display position corresponding to each second resource but also the display position corresponding to the second resource types in each resource sequence to be obtained.

[0084] Specifically, the preset quantity and the specific values ​​of the resource quantity of each acquired resource sequence can be set by those skilled in the art according to the actual situation, and are not limited here.

[0085] Specifically, the resource sequence to be acquired refers to the resource sequence that has not yet been acquired and will be acquired later.

[0086] For example, if the number of resources in each acquired resource sequence is 10 and the preset number is 5, then the total number of resources is 60. Through S120, the display positions of the 60 first resource types can be determined, and the display positions of each second resource and each resource in each acquired resource sequence can also be determined.

[0087] In some embodiments, determining the first display position and the second display position within the target page based on the total number of resources, a preset interval number, and a first preset position may include: starting from the first display position in the target page, detecting whether the display position is the first preset position; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type; starting from the display position adjacent to the first preset position in the target page, detecting whether the display position is separated from the first preset position by a preset interval number; if so, determining the display position as the display position corresponding to the second resource type; if not, determining the display position as the display position corresponding to the first resource type, until the first display position corresponding to the resource of the first resource type corresponding to the total number of resources is determined.

[0088] Specifically, after determining the display position corresponding to each first resource in the target resource sequence, the first resource and the second resource are displayed. In the process of displaying the first resource and the second resource, the display positions of the resources corresponding to each first resource type in the preset number of resource series to be acquired, and the display positions of the resources corresponding to the second resource type in each resource series to be acquired are determined.

[0089] It is understandable that by pre-determining the display positions of the resources corresponding to each first resource type in the resource sequence to be acquired, and the display positions of the resources corresponding to the second resource type in each resource series to be acquired, the electronic device can avoid spending time determining the corresponding display positions when it subsequently acquires the resource sequence to be acquired. It can simply query the pre-determined results, thereby speeding up the display of the resources included in the resource sequence to be acquired and improving the user experience.

[0090] Figure 4 A flowchart illustrating another page display method provided by an embodiment of this disclosure is shown. This embodiment is an optimization based on the above embodiments, and can be combined with various optional solutions from one or more of the above embodiments.

[0091] like Figure 4 As shown, the method for displaying this page may include the following steps.

[0092] S410. In response to detecting an access operation for the target page, obtain the target resource sequence corresponding to the target page.

[0093] The target resource sequence includes a first quantity of first resources, and the first resources belong to a first resource type.

[0094] Specifically, S410 is similar to S110, so we will not go into details here.

[0095] S420. Based on the first quantity and the preset interval quantity, determine the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page.

[0096] Specifically, S420 is similar to S120, so we will not go into details.

[0097] S430. According to the sequence order, fill the first resource into the first display position in the display sequence, and fill the second resource into the second display position to obtain the target display resource sequence.

[0098] In this embodiment of the disclosure, the electronic device can fill each first resource into its corresponding display position and fill each second resource into its corresponding display position according to the order of each first resource in the target resource sequence, thereby obtaining the target display resource sequence.

[0099] Specifically, the sequence order is the order in which the first quantity of the first resource is arranged in the target resource sequence.

[0100] Specifically, the display sequence is the arrangement order of the first quantity of the first resource and each of the second resources.

[0101] Specifically, the target displayed resource sequence is a resource sequence in which a second resource is inserted into the target resource sequence.

[0102] Specifically, the first resource in the target resource sequence is filled into the first display position corresponding to the first resource type in the display sequence; the second resource in the target resource sequence is filled into the second display position corresponding to the first resource type in the display sequence; and so on, so that each first resource can be filled into its corresponding display position, and each second resource can be filled into its corresponding display position, thus obtaining the target display resource sequence.

[0103] S440. Display the target display resource sequence within the target page.

[0104] In this embodiment of the disclosure, after obtaining the target display resource sequence, the electronic device can display the target display resource sequence on the target page.

[0105] In some embodiments, the target resource sequence is a whole, or it is no longer divided into target resource subsequences. In this case, S440 may include: displaying the target display resource sequence on the target page all at once.

[0106] In other embodiments, the target resource sequence may include multiple target resource sub-sequences. In this case, S440 may include: obtaining the target display resource sub-sequence corresponding to the first target resource sub-sequence from the target display resource sequence; and displaying the target display resource sub-sequence within the target page.

[0107] Specifically, the displayed resource subsequence includes the first resource included in the target resource subsequence and the second resource corresponding to the target resource subsequence.

[0108] Specifically, the display resource subsequence can be obtained by extracting the first resource included in the target resource subsequence and the second resource corresponding to the target resource subsequence from the display resource subsequence.

[0109] It is understandable that retrieving multiple target resource subsequences at once and then displaying them in batches can avoid frequently retrieving target resource sequences, thereby reducing the frequency with which users have to wait for their electronic devices to retrieve resource sequences after browsing the displayed resources, thus improving the user experience.

[0110] Optionally, after displaying the target display resource subsequence within the target page, the method further includes: in response to detecting an update operation on the target page, obtaining a display resource subsequence corresponding to the second resource subsequence adjacent to the first resource subsequence from the remaining display resource sequences of the target display resource sequence; and displaying the display resource subsequence corresponding to the second resource subsequence within the target page.

[0111] In this embodiment of the disclosure, if the user has finished browsing the target resource subsequence displayed on the target page, an update operation can be performed on the target page. In response to the update operation, the electronic device can display the display resource subsequence corresponding to the second resource subsequence.

[0112] Specifically, the remaining resource sequence is the resource sequence composed of the remaining resources after extracting the target display resource subsequence from the target display resource sequence. The first resource subsequence is the target resource subsequence corresponding to the last display resource subsequence already displayed on the target page. For example, on the timeline, if the most recently displayed resource on the target page is the target display resource subsequence, then the target display resource subsequence is the last display resource subsequence already displayed on the target page, and the target resource subsequence is the first resource subsequence.

[0113] Specifically, the specific implementation method for obtaining the display resource subsequence corresponding to the second resource subsequence is the same as the specific implementation method for obtaining the target display resource subsequence corresponding to the target resource subsequence, and will not be repeated here.

[0114] Specifically, the update operation on the target page can be any operation that enables the electronic device to display the display resource subsequence corresponding to the second resource subsequence.

[0115] For example, updating the target page may include swiping the target page using a mouse, keyboard, or touch. For instance, after displaying the target display resource subsequence, the electronic device, in response to a user swiping up on the target page via touch, acquires and displays the display resource subsequence corresponding to the second resource subsequence.

[0116] Understandably, by responding to the detection of an update operation on the target page, the display resource subsequence corresponding to the second resource subsequence can be displayed quickly after the display resource subsequence corresponding to the first resource subsequence is displayed, thus meeting the user's need to browse subsequent resources as quickly as possible.

[0117] The page display method provided in this disclosure can fill the first resource into the first display position in the display sequence and the second resource into the second display position in sequence to obtain the target display resource sequence, and then display the target display resource sequence on the target page. This simplifies and makes the display of the first and second resources on the target page easy to operate. Furthermore, by displaying the target display resource subsequences one by one according to the target resource subsequences, the next display resource subsequence can be quickly displayed on the target page, reducing the frequency at which users need to wait for the next batch of resources to be displayed on the target page.

[0118] Figure 5 This illustration shows a flowchart of yet another page display method provided by an embodiment of the present disclosure. The embodiments of the present disclosure are optimizations based on the above embodiments, and can be combined with various optional solutions from one or more of the above embodiments.

[0119] like Figure 5 As shown, the method for displaying this page may include the following steps.

[0120] S510. In response to detecting an access operation for the target page, obtain the target resource sequence corresponding to the target page.

[0121] The target resource sequence includes a first quantity of first resources, and the first resources belong to a first resource type.

[0122] Specifically, S510 is similar to S110, so we will not go into details here.

[0123] S520. Based on the first quantity and the preset interval quantity, determine the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page.

[0124] Specifically, S520 is similar to S120, so we will not go into details here.

[0125] S530. Determine the third quantity corresponding to the second resource type based on the second display position.

[0126] In this embodiment of the disclosure, after determining the display position of each second resource corresponding to the target resource sequence, the electronic device can determine the number of second resources corresponding to the target resource sequence (i.e., the fourth number). If the target resource sequence includes multiple target resource sub-sequences, the number of second resources corresponding to each target resource sub-sequence can also be obtained.

[0127] Specifically, by counting the number of display positions reserved for the second resource corresponding to each target resource subsequence, the number of the second resources corresponding to each target resource subsequence can be determined. The number of the second resources corresponding to each target resource subsequence may be the same or different, and this is not limited.

[0128] Similarly, by counting the number of display positions reserved for the second resource corresponding to the entire target resource sequence, the total number of second resources corresponding to the entire target resource sequence can be determined. The number of second resources corresponding to each target resource sequence may be the same or different, and this is not limited.

[0129] For example, such as Figure 2 As shown, if the first quantity is 10 and the preset interval quantity is 4, the first preset position is the 4th display position on the target page. As mentioned above, if the target resource sequence is the resource sequence obtained for the first time on the target page, two display positions corresponding to the second resources need to be reserved, that is, 2 second resources are inserted between the 10 first resources.

[0130] For example, such as Figure 3 As shown, if the first quantity is 10, the preset interval quantity is 4, and the target remaining quantity is 3, then the difference between the preset interval quantity and the target remaining quantity is 1. As mentioned above, if the target resource sequence is a resource sequence that is not obtained for the first time for the target page (a resource sequence obtained for the second time for the target page), three display positions corresponding to the second resources need to be reserved, that is, 3 second resources are inserted between the 10 first resources.

[0131] S540, Acquire the third quantity of the second resource.

[0132] In this embodiment of the disclosure, after determining the third quantity corresponding to the second resource type, the electronic device can acquire the third quantity of the second resource.

[0133] In some embodiments, the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; S540 may include: if a resource cache is detected and the number of pre-stored resources in the resource cache is greater than or equal to the third quantity, selecting the third quantity of second resources from the resource cache.

[0134] Specifically, the target resource subsequence to be displayed is the resource subsequence that will be displayed within the target page.

[0135] Specifically, the resource cache can be any storage area capable of caching pre-stored resources, where the pre-stored resources belong to the second resource type.

[0136] For example, an electronic device can send a resource request to a resource server so that the resource server can respond with a preset resource. The electronic device can store the preset resource that is not displayed on the target page, which is responded to by the resource server, in a resource cache.

[0137] For example, when an electronic device detects that a resource corresponding to a second resource type already displayed on the target page has not been clicked by the user, it can store the resource in a resource cache so that it can be displayed on the target page again later, thereby increasing exposure and improving the effectiveness of advertising.

[0138] Understandably, retrieving the third number of second resources directly from the resource cache can increase the speed of retrieving the second resources, thereby reducing the total time spent on displaying the first and second resources on the target page.

[0139] In other embodiments, the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; S540 may include: sending a first resource request to the resource server when it is detected that no resource cache exists; and receiving a third quantity of second resources from the resource server in response to the first resource request.

[0140] Specifically, the resource server can be any device capable of feeding back resources corresponding to the second resource type to electronic devices.

[0141] Specifically, the first resource request can be any request that can trigger the resource server to send a third number of second resources to the electronic device.

[0142] For example, an electronic device resource can send a first resource request carrying a third quantity to a resource server, and the resource server, in response to the first resource request, can return a second resource of a third quantity to the electronic resource device.

[0143] It is understandable that by obtaining the required quantity (i.e., the third quantity) of second resources, the situation where a large quantity of second resources is obtained is avoided, and some second resources fail to be displayed on the target page, thus avoiding the waste of second resources.

[0144] In some other embodiments, the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; S540 may include: if a resource cache is detected and the number of pre-stored resources in the resource cache is less than the third quantity, determining a fourth quantity corresponding to the second resource type based on the second display position; wherein the pre-stored resources belong to the second resource type, and the fourth quantity corresponds to the target resource sequence; sending a second resource request to the resource server; receiving the fourth resource of the fourth quantity from the resource server in response to the second resource request; wherein the fourth resource belongs to the second resource type; and selecting a second resource from the fourth resource.

[0145] Specifically, the second resource request can be any request that can trigger the resource server to send a fourth number of fourth resources to the electronic device.

[0146] For example, an electronic device can send a request for a second resource carrying a fourth quantity to a resource server. In response to the second resource request, the resource server can provide the electronic device with a fourth quantity of fourth resources. After obtaining the fourth quantity of fourth resources, the electronic device selects a third quantity of fourth resources as the second resource.

[0147] It is understandable that by obtaining the required number of fourth resources for the entire target resource sequence at once, and selecting the third number of second resources from them, there is no need to send resource requests to the resource server again, thereby reducing communication interactions with the resource server and saving communication resources of electronic devices.

[0148] Optionally, after selecting the second resource from the fourth resource, the method further includes: determining the undisplayed resources in the fourth resource; and storing the undisplayed resources in a resource cache.

[0149] Specifically, the undisplayed resources in the fourth resource are the remaining fourth resources after selecting the third number of second resources from the fourth number of fourth resources.

[0150] It is understandable that storing undisplayed resources in a resource cache allows electronic devices to directly retrieve the second resource from the resource cache later, thereby increasing the speed of retrieving the second resource and reducing the total time spent on displaying the first and second resources on the target page.

[0151] S550. Display the second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position.

[0152] Specifically, the S550 is similar to the S130, so we will not go into details.

[0153] The page display method provided in this disclosure can determine and obtain a third number of second resources corresponding to a second resource type, thereby avoiding obtaining a number of second resources exceeding the number corresponding to the target resource sequence, and thus avoiding the second resources not being displayed on the target page, thereby avoiding resource waste.

[0154] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure is shown.

[0155] The electronic devices provided in this disclosure may include those supporting e-book reading functionality. These electronic devices may include, but are not limited to, mobile terminals such as smartphones, laptops, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and wearable devices, as well as fixed terminals such as digital TVs, desktop computers, and smart home devices. It should be noted that the execution entity of the page display method in this disclosure may also be other devices with audio adjustment functions, such as e-reading platforms or Text-to-Speech (TTS) engines that support audio adjustment, and this is not limited.

[0156] It should be noted that, Figure 6 The electronic device 600 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0157] The electronic device 600 conventionally includes a processor 610 and a computer program product or computer-readable medium in the form of a memory 620. The memory 620 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. The memory 620 has storage space 621 for executable instructions (or program code) 6211 for performing any of the method steps in the above-described note-taking method. For example, the storage space 621 for executable instructions may include individual executable instructions 6211 for implementing the various steps in the above-described note-taking method. These executable instructions can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, optical discs (CDs), memory cards, or floppy disks. Such computer program products are typically portable or fixed storage units. The storage unit may have... Figure 6The memory 620 in the electronic device 600 is arranged in a similar manner as a storage segment or storage space. Executable instructions may be compressed, for example, in a suitable form. Typically, the storage unit includes executable instructions for performing the steps of the note-taking method according to this disclosure, i.e., code that can be read by a processor, such as processor 610, which, when executed by the electronic device 600, causes the electronic device 600 to perform the various steps in the note-taking method described above.

[0158] Of course, for the sake of simplicity, Figure 6 Only some of the components of the electronic device 600 relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, input devices, and output devices. In addition, the electronic device 600 may include any other suitable components depending on the specific application.

[0159] This disclosure also provides a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the note-taking methods provided in the embodiments of this disclosure.

[0160] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0161] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0162] In embodiments of this disclosure, program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0163] This application discloses:

[0164] 1A. A page display method, wherein the method includes:

[0165] In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type;

[0166] Based on the first quantity and the preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page;

[0167] According to the first display position and the second display position, the second resource corresponding to the first resource and the second resource type is displayed in the target page.

[0168] 2A. The method according to 1A, wherein determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes:

[0169] When the target resource sequence is the first resource sequence obtained for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the first preset position; wherein, the first preset position is the display position corresponding to the first second resource type.

[0170] 3A. The method according to 2A, wherein determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the first preset position includes:

[0171] Starting from the first display position on the target page, it is detected whether the display position is the first preset position. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type.

[0172] Starting from the display position adjacent to the first preset position on the target page, detect whether the display position is separated from the first preset position by the preset interval number. If yes, determine the display position as the display position corresponding to the second resource type. If no, determine the display position as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined.

[0173] 4A. The method according to 1A, wherein determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes:

[0174] When the target resource sequence is a resource sequence that is not obtained for the first time for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity; wherein, the target remaining quantity is the number of remaining resources in the historical resource sequence adjacent to the target resource sequence, the historical resource sequence includes a second quantity of third resources, the third resources belong to the first resource type, the remaining resources are the third resources whose display position is located after the target resources already displayed within the target page, and the target resources are the resources corresponding to the last second resource type.

[0175] 5A. According to the method described in 4A, wherein determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity includes:

[0176] Starting from the display position adjacent to the last third resource on the target page, detect whether the display position and the last third resource are separated by the difference between the preset interval number and the target remaining number. If yes, determine the display position as the display position corresponding to the second resource type; otherwise, determine the display position as the display position corresponding to the first resource type.

[0177] Starting from the display position adjacent to the second preset position on the target page, it is detected whether the display position and the second preset position are separated by the preset interval number. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined. Wherein, the second preset position is the first display position corresponding to the second resource type corresponding to the target resource sequence.

[0178] 6A. According to the method described in 1A, the number of resources in each resource sequence obtained for the target page is the same;

[0179] The step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes:

[0180] When the target resource sequence is the resource sequence first obtained for the target page, the total number of resources in the target resource sequence and a preset number of resource sequences to be obtained is calculated based on the first quantity; wherein, the resource sequence to be obtained is the resource sequence adjacent to the target resource sequence.

[0181] Based on the total number of resources, the preset interval number, and the first preset position, the first display position and the second display position are determined within the target page; wherein, the first preset position is the display position corresponding to the first second resource type.

[0182] 7A. The method according to any one of 1A-6A, wherein displaying the second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position includes:

[0183] According to the sequence order, the first resource is filled into the first display position in the display sequence, and the second resource is filled into the second display position to obtain the target display resource sequence;

[0184] The target display resource sequence is displayed within the target page.

[0185] 8A. The method according to 7A, wherein the target resource sequence includes multiple target resource subsequences;

[0186] The step of displaying the target display resource sequence within the target page includes:

[0187] From the target display resource sequence, obtain the target display resource subsequence corresponding to the first target resource subsequence;

[0188] The target display resource subsequence is displayed within the target page.

[0189] 9A. The method according to 8A, wherein after displaying the target display resource subsequence within the target page, the method further includes:

[0190] In response to detecting an update operation on the target page, a display resource subsequence corresponding to the second resource subsequence adjacent to the first resource subsequence is obtained from the remaining display resource sequences of the target display resource sequence; wherein, the first resource subsequence is the target resource subsequence corresponding to the last display resource subsequence already displayed in the target page;

[0191] The display resource subsequence corresponding to the second resource subsequence is displayed within the target page.

[0192] 10A. The method according to any one of 1A-9A, wherein, before displaying the second resource corresponding to the first resource and the second resource type in the target page according to the first display position and the second display position, the method further includes:

[0193] Based on the second display position, determine the third quantity corresponding to the second resource type;

[0194] Obtain the third quantity of the second resource.

[0195] 11A. According to the method of 10A, wherein the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0196] Wherein, obtaining the third quantity of the second resources includes:

[0197] If a resource cache is detected and the number of pre-stored resources in the resource cache is greater than or equal to the third number, the third number of the second resources are selected from the resource cache; wherein the pre-stored resources belong to the second resource type.

[0198] 12A. According to the method of 10A, wherein the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0199] Wherein, obtaining the third quantity of the second resources includes:

[0200] If the absence of a resource cache is detected, a first resource request is sent to the resource server;

[0201] Receive the third number of the second resources from the resource server in response to the first resource request.

[0202] 13A. According to the method of 11A, wherein the target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0203] Wherein, obtaining the third quantity of the second resources includes:

[0204] If a resource cache is detected and the number of pre-stored resources in the resource cache is less than the third number, a fourth number corresponding to the second resource type is determined based on the second display position; wherein the pre-stored resources belong to the second resource type, and the fourth number corresponds to the target resource sequence;

[0205] Send a second resource request to the resource server;

[0206] Receive the fourth quantity of fourth resources from the resource server in response to the second resource request; wherein the fourth resources belong to the second resource type;

[0207] Select the second resource from the fourth resource.

[0208] 14A. The method according to 13A, wherein after selecting the second resource from the fourth resource, the method further includes:

[0209] Identify the undisplayed resources in the fourth resource;

[0210] The undisplayed resources are stored in the resource cache area.

[0211] 15B. An electronic device comprising a processor and a memory, the memory for storing executable instructions that cause the processor to perform the following operations:

[0212] In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type;

[0213] Based on the first quantity and the preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page;

[0214] According to the first display position and the second display position, the second resource corresponding to the first resource and the second resource type is displayed in the target page.

[0215] 16B. The electronic device according to 15B, wherein when the processor executes the step of determining, based on the first quantity and a preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type within the target page, the executable instruction specifically causes the processor to execute:

[0216] When the target resource sequence is the first resource sequence obtained for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the first preset position; wherein, the first preset position is the display position corresponding to the first second resource type.

[0217] 17B. The electronic device according to 16B, wherein when the processor executes the step of determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the first preset position, the executable instructions specifically cause the processor to execute:

[0218] Starting from the first display position on the target page, it is detected whether the display position is the first preset position. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type.

[0219] Starting from the display position adjacent to the first preset position on the target page, detect whether the display position is separated from the first preset position by the preset interval number. If yes, determine the display position as the display position corresponding to the second resource type. If no, determine the display position as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined.

[0220] 18B. The electronic device according to 15B, wherein when the processor executes the step of determining, based on the first quantity and a preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type within the target page, the executable instruction specifically causes the processor to execute:

[0221] When the target resource sequence is a resource sequence that is not obtained for the first time for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity; wherein, the target remaining quantity is the number of remaining resources in the historical resource sequence adjacent to the target resource sequence, the historical resource sequence includes a second quantity of third resources, the third resources belong to the first resource type, the remaining resources are the third resources whose display position is located after the target resources already displayed within the target page, and the target resources are the resources corresponding to the last second resource type.

[0222] 19B. The electronic device according to 18B, wherein when the processor executes the step of determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity, the executable instructions specifically cause the processor to execute:

[0223] Starting from the display position adjacent to the last third resource on the target page, detect whether the display position and the last third resource are separated by the difference between the preset interval number and the target remaining number. If yes, determine the display position as the display position corresponding to the second resource type; otherwise, determine the display position as the display position corresponding to the first resource type.

[0224] Starting from the display position adjacent to the second preset position on the target page, it is detected whether the display position and the second preset position are separated by the preset interval number. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined. Wherein, the second preset position is the first display position corresponding to the second resource type corresponding to the target resource sequence.

[0225] 20B. The electronic device according to 15B, wherein the number of resources in each sequence of resources acquired for the target page is the same;

[0226] Specifically, when the processor executes the step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity, the executable instruction specifically causes the processor to execute:

[0227] When the target resource sequence is the resource sequence first obtained for the target page, the total number of resources in the target resource sequence and a preset number of resource sequences to be obtained is calculated based on the first quantity; wherein, the resource sequence to be obtained is the resource sequence adjacent to the target resource sequence.

[0228] Based on the total number of resources, the preset interval number, and the first preset position, the first display position and the second display position are determined within the target page; wherein, the first preset position is the display position corresponding to the first second resource type.

[0229] 21B. The electronic device according to any one of 15B-20B, wherein when the processor executes to display a second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position, the executable instructions specifically cause the processor to execute:

[0230] According to the sequence order, the first resource is filled into the first display position in the display sequence, and the second resource is filled into the second display position to obtain the target display resource sequence;

[0231] The target display resource sequence is displayed within the target page.

[0232] 22B. The electronic device according to 21B, wherein the target resource sequence comprises a plurality of target resource subsequences;

[0233] Specifically, when the processor executes the step of displaying the target display resource sequence within the target page, the executable instructions cause the processor to execute:

[0234] From the target display resource sequence, obtain the target display resource subsequence corresponding to the first target resource subsequence;

[0235] The target display resource subsequence is displayed within the target page.

[0236] 23B. The electronic device according to 22B, wherein, after the processor executes the step of displaying the target display resource subsequence within the target page, the executable instructions further cause the processor to execute:

[0237] In response to detecting an update operation on the target page, a display resource subsequence corresponding to the second resource subsequence adjacent to the first resource subsequence is obtained from the remaining display resource sequences of the target display resource sequence; wherein, the first resource subsequence is the target resource subsequence corresponding to the last display resource subsequence already displayed in the target page;

[0238] The display resource subsequence corresponding to the second resource subsequence is displayed within the target page.

[0239] 24B. An electronic device according to any one of 15B-23B, wherein, before the processor executes the statement of displaying a second resource corresponding to the first resource and the second resource type in the target page according to the first display position and the second display position, the executable instructions further cause the processor to execute:

[0240] Based on the second display position, determine the third quantity corresponding to the second resource type;

[0241] Obtain the third quantity of the second resource.

[0242] 25B. The electronic device according to 24B, wherein the target resource sequence includes a plurality of target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0243] Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions cause the processor to execute:

[0244] If a resource cache is detected and the number of pre-stored resources in the resource cache is greater than or equal to the third number, the third number of the second resources are selected from the resource cache; wherein the pre-stored resources belong to the second resource type.

[0245] 26B. The electronic device according to 24B, wherein the target resource sequence includes a plurality of target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0246] Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions cause the processor to execute:

[0247] If the absence of a resource cache is detected, a first resource request is sent to the resource server;

[0248] Receive the third number of the second resources from the resource server in response to the first resource request.

[0249] 27B. The electronic device according to 25B, wherein the target resource sequence includes a plurality of target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed;

[0250] Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions specifically cause the processor to execute:

[0251] If a resource cache is detected and the number of pre-stored resources in the resource cache is less than the third number, a fourth number corresponding to the second resource type is determined based on the second display position; wherein the pre-stored resources belong to the second resource type, and the fourth number corresponds to the target resource sequence;

[0252] Send a second resource request to the resource server;

[0253] Receive the fourth quantity of fourth resources from the resource server in response to the second resource request; wherein the fourth resources belong to the second resource type;

[0254] Select the second resource from the fourth resource.

[0255] 28B. The electronic device according to 27B, wherein, after the processor executes the step of selecting the second resource from the fourth resource, the executable instructions further cause the processor to execute:

[0256] Identify the undisplayed resources in the fourth resource;

[0257] The undisplayed resources are stored in the resource cache area.

[0258] 29C. A computer-readable storage medium, wherein the storage medium stores a computer program that, when executed by a processor, causes the processor to implement the page display method described in any one of 1A-14A above.

[0259] The various component embodiments of this disclosure can be implemented in hardware in whole or in part, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the electronic device according to embodiments of this disclosure. This disclosure can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing some or all of the methods described herein. Such an implementation of this disclosure can be stored on a computer-readable medium or can take the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0260] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0261] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0262] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A page display method, characterized in that, The method includes: In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type; Based on the first quantity and the preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page; According to the first display position and the second display position, display the second resource corresponding to the first resource and the second resource type in the target page; The step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes: When the target resource sequence is a resource sequence that is not obtained for the first time for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity; wherein, the target remaining quantity is the number of remaining resources in the historical resource sequence adjacent to the target resource sequence, the historical resource sequence includes a second quantity of third resources, the third resources belong to the first resource type, the remaining resources are the third resources whose display position is located after the target resources already displayed within the target page, and the target resources are the resources corresponding to the last second resource type.

2. The method according to claim 1, characterized in that, The step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes: When the target resource sequence is the first resource sequence obtained for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the first preset position; wherein, the first preset position is the display position corresponding to the first second resource type.

3. The method according to claim 2, characterized in that, Determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the first preset position includes: Starting from the first display position on the target page, it is detected whether the display position is the first preset position. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type. Starting from the display position adjacent to the first preset position on the target page, detect whether the display position is separated from the first preset position by the preset interval number. If yes, determine the display position as the display position corresponding to the second resource type. If no, determine the display position as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined.

4. The method according to claim 1, characterized in that, Determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity includes: Starting from the display position adjacent to the last third resource on the target page, detect whether the display position and the last third resource are separated by the difference between the preset interval number and the target remaining number. If yes, determine the display position as the display position corresponding to the second resource type; otherwise, determine the display position as the display position corresponding to the first resource type. Starting from the display position adjacent to the second preset position on the target page, it is detected whether the display position and the second preset position are separated by the preset interval number. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined. Wherein, the second preset position is the first display position corresponding to the second resource type corresponding to the target resource sequence.

5. The method according to claim 1, characterized in that, The number of resources in each resource sequence obtained for the target page is the same; The step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity includes: When the target resource sequence is the resource sequence first obtained for the target page, the total number of resources in the target resource sequence and a preset number of resource sequences to be obtained is calculated based on the first quantity; wherein, the resource sequence to be obtained is the resource sequence adjacent to the target resource sequence. Based on the total number of resources, the preset interval number, and the first preset position, the first display position and the second display position are determined within the target page; wherein, the first preset position is the display position corresponding to the first second resource type.

6. The method according to any one of claims 1-5, characterized in that, According to the first display position and the second display position, display the second resource corresponding to the first resource and the second resource type within the target page, including: According to the sequence order, the first resource is filled into the first display position in the display sequence, and the second resource is filled into the second display position to obtain the target display resource sequence; The target display resource sequence is displayed within the target page.

7. The method according to claim 6, characterized in that, The target resource sequence includes multiple target resource sub-sequences; The step of displaying the target display resource sequence within the target page includes: From the target display resource sequence, obtain the target display resource subsequence corresponding to the first target resource subsequence; The target display resource subsequence is displayed within the target page.

8. The method according to claim 7, characterized in that, After displaying the target display resource subsequence within the target page, the method further includes: In response to detecting an update operation on the target page, a display resource subsequence corresponding to the second resource subsequence adjacent to the first resource subsequence is obtained from the remaining display resource sequences of the target display resource sequence; wherein, the first resource subsequence is the target resource subsequence corresponding to the last display resource subsequence already displayed in the target page; The display resource subsequence corresponding to the second resource subsequence is displayed within the target page.

9. The method according to claim 1, characterized in that, Before displaying the second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position, the method further includes: Based on the second display position, determine the third quantity corresponding to the second resource type; Obtain the third quantity of the second resource.

10. The method according to claim 9, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Wherein, obtaining the third quantity of the second resources includes: If a resource cache is detected and the number of pre-stored resources in the resource cache is greater than or equal to the third number, the third number of the second resources are selected from the resource cache; wherein the pre-stored resources belong to the second resource type.

11. The method according to claim 9, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Wherein, obtaining the third quantity of the second resources includes: If the absence of a resource cache is detected, a first resource request is sent to the resource server; Receive the third number of the second resources from the resource server in response to the first resource request.

12. The method according to claim 10, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Wherein, obtaining the third quantity of the second resources includes: If a resource cache is detected and the number of pre-stored resources in the resource cache is less than the third number, a fourth number corresponding to the second resource type is determined based on the second display position; wherein the pre-stored resources belong to the second resource type, and the fourth number corresponds to the target resource sequence; Send a second resource request to the resource server; Receive the fourth quantity of fourth resources from the resource server in response to the second resource request; wherein the fourth resources belong to the second resource type; Select the second resource from the fourth resource.

13. The method according to claim 12, characterized in that, After selecting the second resource from the fourth resource, the method further includes: Identify the undisplayed resources in the fourth resource; The undisplayed resources are stored in the resource cache area.

14. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store executable instructions that cause the processor to perform the following operations: In response to detecting an access operation to a target page, a target resource sequence corresponding to the target page is obtained; wherein, the target resource sequence includes a first number of first resources, and the first resources belong to a first resource type; Based on the first quantity and the preset interval quantity, a first display position corresponding to the first resource type and a second display position corresponding to the second resource type are determined within the target page; According to the first display position and the second display position, display the second resource corresponding to the first resource and the second resource type in the target page; When the processor executes the step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity, the executable instruction specifically causes the processor to execute: When the target resource sequence is a resource sequence that is not obtained for the first time for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity; wherein, the target remaining quantity is the number of remaining resources in the historical resource sequence adjacent to the target resource sequence, the historical resource sequence includes a second quantity of third resources, the third resources belong to the first resource type, the remaining resources are the third resources whose display position is located after the target resources already displayed within the target page, and the target resources are the resources corresponding to the last second resource type.

15. The electronic device according to claim 14, characterized in that, When the processor executes the step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity, the executable instruction specifically causes the processor to execute: When the target resource sequence is the first resource sequence obtained for the target page, the first display position and the second display position are determined within the target page based on the first quantity, the preset interval quantity, and the first preset position; wherein, the first preset position is the display position corresponding to the first second resource type.

16. The electronic device according to claim 15, characterized in that, When the processor executes the step of determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the first preset position, the executable instructions specifically cause the processor to execute: Starting from the first display position on the target page, it is detected whether the display position is the first preset position. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type. Starting from the display position adjacent to the first preset position on the target page, detect whether the display position is separated from the first preset position by the preset interval number. If yes, determine the display position as the display position corresponding to the second resource type. If no, determine the display position as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined.

17. The electronic device according to claim 14, characterized in that, When the processor executes the step of determining the first display position and the second display position within the target page based on the first quantity, the preset interval quantity, and the target remaining quantity, the executable instructions specifically cause the processor to execute: Starting from the display position adjacent to the last third resource on the target page, detect whether the display position and the last third resource are separated by the difference between the preset interval number and the target remaining number. If yes, determine the display position as the display position corresponding to the second resource type; otherwise, determine the display position as the display position corresponding to the first resource type. Starting from the display position adjacent to the second preset position on the target page, it is detected whether the display position and the second preset position are separated by the preset interval number. If so, the display position is determined as the display position corresponding to the second resource type. If not, the display position is determined as the display position corresponding to the first resource type, until the first display position corresponding to the first number of first resources is determined. Wherein, the second preset position is the first display position corresponding to the second resource type corresponding to the target resource sequence.

18. The electronic device according to claim 14, characterized in that, The number of resources in each resource sequence obtained for the target page is the same; Specifically, when the processor executes the step of determining the first display position corresponding to the first resource type and the second display position corresponding to the second resource type within the target page based on the first quantity and the preset interval quantity, the executable instruction specifically causes the processor to execute: When the target resource sequence is the resource sequence first obtained for the target page, the total number of resources in the target resource sequence and a preset number of resource sequences to be obtained is calculated based on the first quantity; wherein, the resource sequence to be obtained is the resource sequence adjacent to the target resource sequence. Based on the total number of resources, the preset interval number, and the first preset position, the first display position and the second display position are determined within the target page; wherein, the first preset position is the display position corresponding to the first second resource type.

19. The electronic device according to any one of claims 14-18, characterized in that, When the processor executes the command to display the second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position, the executable instruction specifically causes the processor to execute: According to the sequence order, the first resource is filled into the first display position in the display sequence, and the second resource is filled into the second display position to obtain the target display resource sequence; The target display resource sequence is displayed within the target page.

20. The electronic device according to claim 19, characterized in that, The target resource sequence includes multiple target resource sub-sequences; Specifically, when the processor executes the step of displaying the target display resource sequence within the target page, the executable instructions cause the processor to execute: From the target display resource sequence, obtain the target display resource subsequence corresponding to the first target resource subsequence; The target display resource subsequence is displayed within the target page.

21. The electronic device according to claim 20, characterized in that, After the processor executes the step of displaying the target display resource subsequence within the target page, the executable instructions further cause the processor to execute: In response to detecting an update operation on the target page, a display resource subsequence corresponding to the second resource subsequence adjacent to the first resource subsequence is obtained from the remaining display resource sequences of the target display resource sequence; wherein, the first resource subsequence is the target resource subsequence corresponding to the last display resource subsequence already displayed in the target page; The display resource subsequence corresponding to the second resource subsequence is displayed within the target page.

22. The electronic device according to claim 14, characterized in that, Before the processor executes the step of displaying the second resource corresponding to the first resource and the second resource type within the target page according to the first display position and the second display position, the executable instructions further cause the processor to execute: Based on the second display position, determine the third quantity corresponding to the second resource type; Obtain the third quantity of the second resource.

23. The electronic device according to claim 22, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions cause the processor to execute: If a resource cache is detected and the number of pre-stored resources in the resource cache is greater than or equal to the third number, the third number of the second resources are selected from the resource cache; wherein the pre-stored resources belong to the second resource type.

24. The electronic device according to claim 22, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions cause the processor to execute: If the absence of a resource cache is detected, a first resource request is sent to the resource server; Receive the third number of the second resources from the resource server in response to the first resource request.

25. The electronic device according to claim 23, characterized in that, The target resource sequence includes multiple target resource subsequences, and the third quantity corresponds to the target resource subsequence to be displayed; Specifically, when the processor executes the step of acquiring the third quantity of the second resources, the executable instructions specifically cause the processor to execute: If a resource cache is detected and the number of pre-stored resources in the resource cache is less than the third number, a fourth number corresponding to the second resource type is determined based on the second display position; wherein the pre-stored resources belong to the second resource type, and the fourth number corresponds to the target resource sequence; Send a second resource request to the resource server; Receive the fourth quantity of fourth resources from the resource server in response to the second resource request; wherein the fourth resources belong to the second resource type; Select the second resource from the fourth resource.

26. The electronic device according to claim 25, characterized in that, After the processor executes the step of selecting the second resource from the fourth resource, the executable instructions further cause the processor to execute: Identify the undisplayed resources in the fourth resource; The undisplayed resources are stored in the resource cache area.

27. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, causes the processor to implement the page display method according to any one of claims 1-13.

Citation Information

Patent Citations

  • Object display method and system, medium and computing device

    CN107480269A