A content page display method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202610770864.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-29
- Publication Date
- 2026-08-28
AI Technical Summary
[0004]在处理多楼层复杂页面且页面之间存在内容或语义关联的场景时,现有技术单纯分页容易导致页面分页展示过程中内容或语义不关联性问题加剧
[0020] This invention addresses the issue of excessive pagination in existing technologies. The technical solution involves acquiring a current user's browsing request for a target page (not a first-screen browsing request), retrieving target version snapshot data from a pre-stored snapshot database based on the snapshot data version number carried in the current browsing request (the snapshot data version number is the baseline data version number for the first-screen browsing, and the pre-stored snapshot database stores snapshot data for each version of the target page's baseline data), and retrieving first-category target floor data from the target version snapshot data based on the pagination conditions carried in the current browsing request to display to the current user. This approach, prioritizing snapshot data loading based on data version number in non-first-screen content-based page browsing scenarios, solves the problem of increased content or semantic irrelevance during page pagination display caused by simple pagination in existing technologies, ensuring the relevance of content or semantics during page pagination display.
Smart Images

Figure CN122654429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a content-based page display method, apparatus, electronic device, and storage medium. Background Technology
[0002] As internet content becomes increasingly abundant, the amount of information on web pages is growing, especially content-based pages which often contain multiple sections. The content between these sections is frequently related in terms of content or semantics, resulting in complex page structures and large amounts of data. Users often need to navigate frequently during browsing. Currently, pagination is used to reduce the amount of data on a single page, allowing users to switch between different content by clicking page numbers. While pagination reduces the amount of data on a single page, it can easily obscure the connections between different pages.
[0003] However, in the process of realizing this invention, at least the following problems were found in the prior art:
[0004] When dealing with complex multi-level pages where there are content or semantic relationships between pages, existing pagination technologies can easily exacerbate the problem of content or semantic irrelevance during the pagination display process. Summary of the Invention
[0005] This invention provides a content-based page display method, apparatus, electronic device, and storage medium to ensure the relevance of content or semantics during page pagination.
[0006] In a first aspect, embodiments of the present invention provide a method for displaying content-based pages, the method comprising:
[0007] Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request;
[0008] Based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page;
[0009] Based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data and displayed to the current user.
[0010] Secondly, embodiments of the present invention also provide a content-based page display device, the device comprising:
[0011] The request acquisition module is used to acquire the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request;
[0012] The snapshot data lookup module is used to look up the target version snapshot data from the pre-stored snapshot database based on the snapshot data version number carried by the current browsing request; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page;
[0013] The snapshot data display module is used to search for first-category target floor data from the target version snapshot data and display it to the current user based on the pagination conditions carried by the current browsing request.
[0014] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:
[0015] One or more processors;
[0016] Memory, used to store one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the content-based page display method provided in any embodiment of the present invention.
[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the content-based page display method provided in any embodiment of the present invention.
[0019] The embodiments of the above invention have the following advantages or beneficial effects:
[0020] This invention addresses the issue of excessive pagination in existing technologies. The technical solution involves acquiring a current user's browsing request for a target page (not a first-screen browsing request), retrieving target version snapshot data from a pre-stored snapshot database based on the snapshot data version number carried in the current browsing request (the snapshot data version number is the baseline data version number for the first-screen browsing, and the pre-stored snapshot database stores snapshot data for each version of the target page's baseline data), and retrieving first-category target floor data from the target version snapshot data based on the pagination conditions carried in the current browsing request to display to the current user. This approach, prioritizing snapshot data loading based on data version number in non-first-screen content-based page browsing scenarios, solves the problem of increased content or semantic irrelevance during page pagination display caused by simple pagination in existing technologies, ensuring the relevance of content or semantics during page pagination display. Attached Figure Description
[0021] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1a A flowchart illustrating a content-based page display method provided in an embodiment of the present invention;
[0023] Figure 1b This is a schematic diagram of a storage structure for baseline data and snapshot data provided in this embodiment;
[0024] Figure 2 A flowchart illustrating another content-based page display method provided in an embodiment of the present invention;
[0025] Figure 3a This embodiment provides a relationship diagram of a content-based page loading module;
[0026] Figure 3b This embodiment provides a schematic diagram of a complete content-based page display method that combines the operations of various modules;
[0027] Figure 4 This is a schematic diagram of the structure of the content-based page display device provided in an embodiment of the present invention;
[0028] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0029] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0030] Figure 1a This is a flowchart illustrating a content-based page display method provided in an embodiment of the present invention. This embodiment is applicable to situations where a page server connects to one or more different business servers to process user page browsing requests. This method can be executed by a content-based page display device integrated into the page server, which can be implemented in software and / or hardware. Figure 1a As shown, the method specifically includes the following steps:
[0031] S110. Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request.
[0032] The target page can be a content-based page that presents main information and detailed content. The first page a user sees upon opening the target page, before they begin scrolling, is the initial screen view. Pages seen after the user initiates any action on the target page are considered non-initial screen views.
[0033] S120. Based on the snapshot data version number carried in the current browsing request, retrieve the target version snapshot data from the pre-stored snapshot database; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page.
[0034] In this embodiment, when the current browsing request is not a first-screen browsing request, after the first-screen browsing operation preceding the non-first-screen browsing request, the page identifier (i.e., version number) of the target page from the first-screen browsing can be added to the non-first-screen browsing request as the snapshot data version number to be accessed. This ensures that the non-first-screen browsing request can correctly access the page, avoiding mismatches in page content or semantics. Furthermore, based on the snapshot data version number carried by the current non-first-screen browsing request, the target version snapshot data corresponding to the snapshot data version number can be retrieved from the pre-stored snapshot database.
[0035] In this embodiment, the page data of the target page can be stored in two ways: page baseline data and page snapshot data. Page snapshot data is a copy of the page baseline data. Page baseline data can be stored in a baseline database based on data version, and page snapshot data can be stored in a snapshot database based on data version. (See reference...) Figure 1b Both the baseline data and snapshot data for a single version page can include the following three parts: floor list data, floor cache data, and page version (or snapshot version). Floor data can be understood as the page components of the target page, and the floor list data can be understood as a list of page components. The version number of the baseline data can be generated based on the publication time of the baseline data, and the version number of the snapshot data can be derived from the version number of the baseline data. In this embodiment, the page baseline data can be set to a long cache, and the page snapshot data can be set to a short cache. The duration of the short cache can be set to the maximum time a user can stay on the target page, such as 1 hour.
[0036] S130. Based on the pagination conditions carried in the current browsing request, find the first type of target floor data from the target version snapshot data and display it to the current user.
[0037] Pagination conditions refer to parameters or rules used to control data pagination during data querying or content display of the target version snapshot data. Examples include specifying page numbers or the number of items per page. Pagination conditions can be used to locate the starting position of pages not on the first screen.
[0038] In one optional implementation, the process of retrieving first-category target floor data from the target version snapshot data and displaying it to the current user based on the pagination conditions carried in the current browsing request may include: determining the number of non-first-screen floors corresponding to the current browsing request based on the pagination conditions, wherein the number of non-first-screen floors is less than the number of first-screen floors; determining the first-category target floor data from the target version snapshot data based on the number of non-first-screen floors and the number of first-screen floors; and displaying the first-category target floor data to the current user.
[0039] For example, in an e-commerce product browsing scenario, after a user has viewed the first 20 floors of data, when the user continues to scroll down the page, the front end will automatically trigger a non-first-screen request carrying the pagination condition page=2. `pageSize=10` indicates a request for page 2, with 10 floors per page. The server calculates the number of floors not on the first screen and their starting positions based on the pagination criteria: the first screen already displays 20 floors, and with `pageSize=10`, page 2 corresponds to floors 21-30, meaning there are 10 floors not on the first screen. Then, from the latest version's baseline data, the server filters the data for floors 21-30 according to the pagination criteria to display to the user.
[0040] Since users typically access the content on the first screen more frequently than in non-first screen areas, this embodiment can appropriately reduce the number of floors in non-first screen areas in its floor allocation strategy to optimize the overall content display effect.
[0041] In one scenario, where the current browsing request is a first-screen browsing request, the content-based page display method may include: retrieving the latest version number baseline data from a pre-stored baseline database; calculating the number of first-screen floors matching the current browsing request based on the user terminal model identifier and preset floor data height carried in the current browsing request; and searching for third-category target floor data from the latest version number baseline data based on the number of first-screen floors to display to the current user.
[0042] In the first-screen browsing scenario of this embodiment, real-time baseline data of the target page can be loaded and displayed to the user. This ensures that the user can obtain the freshest content when entering the target page, providing the user with a real-time information display experience and effectively guaranteeing the timeliness and accuracy of the first-screen content.
[0043] Based on the above optional implementation methods, calculating the number of first-screen floors matching the current browsing request based on the user terminal model identifier and the preset height of the floor data carried in the current browsing request may include: determining the current user's terminal screen height based on the user terminal model identifier; calculating the ratio of the terminal screen height to the preset height of the floor data, and calculating the product of the ratio and a preset coefficient, wherein the preset coefficient is greater than 1; and determining the number of first-screen floors matching the current request based on the product result.
[0044] This embodiment dynamically allocates first-screen floors based on differences in user terminals. Specifically, the user terminal type can be determined based on the user terminal model identifier carried in the request, thereby determining the user terminal screen height. The number of first-screen floors is then determined based on the ratio of the user terminal screen height to the preset floor height. Optionally, this embodiment can multiply the ratio by a coefficient greater than 1 to determine the number of first-screen floors; this setting ensures the complete display of the first-screen content.
[0045] This embodiment's technical solution involves obtaining the current user's current browsing request for the target page; this current browsing request is not a first-screen browsing request; based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number for the first-screen browsing, and the pre-stored snapshot database stores the snapshot data for each version corresponding to the baseline data of each version of the target page; based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data to be displayed to the current user. By employing a technique that prioritizes loading snapshot data based on the data version number in a non-first-screen content-based page browsing scenario, this solution addresses the problem that simple pagination in existing technologies can easily lead to increased content or semantic irrelevance during page pagination display, ensuring the relevance of content or semantics during page pagination display.
[0046] Figure 2 This is a flowchart of another content-based page display method provided by an embodiment of the present invention. Based on the above embodiments, this embodiment refines and further adds operations to step S120. For example... Figure 2 As shown, the method specifically includes the following steps:
[0047] S210. Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request.
[0048] S220. Query the pre-stored snapshot database based on the snapshot data version number carried in the current browsing request.
[0049] S230. If valid snapshot data corresponding to the snapshot data version number exists in the pre-stored snapshot database, the valid snapshot data is used as the target version snapshot data; according to the pagination conditions carried by the current browsing request, the first type of target floor data is searched from the target version snapshot data to be displayed to the current user; the snapshot data version number is the base data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the base data of each version of the target page.
[0050] In this embodiment, since the snapshot data is set as a short cache, if the user stays on the target page for longer than the cache validity period of the snapshot data during the initial browsing process, the corresponding snapshot data cannot be found in the pre-stored snapshot database based on the snapshot data version number carried in the current non-initial browsing request. Therefore, if the corresponding snapshot data can be found, it can be used as the target version snapshot data. Furthermore, based on the pagination conditions carried, the first type of target floor data is searched from the target version snapshot data to be displayed to the current user.
[0051] S240. If valid snapshot data does not exist, retrieve the latest version of the baseline data from the pre-stored baseline database; based on the user terminal model identifier carried in the current browsing request, search for the second type of target floor data from the latest version of the baseline data to display it to the current user.
[0052] If valid snapshot data is not available, you can switch to displaying the first screen page again based on the baseline data.
[0053] For example, an e-commerce merchant updates the baseline data of a target page sequentially at times T1, T2, and T3 (latest), with T1, T2, and T3 being incremental. The pre-stored snapshot database stores the corresponding snapshot data for versions T1 and T2. Assuming user 1 views the baseline data for version T1 on the first screen during the period between times T1 and T2, if user 1 does not exit the target page and the snapshot data for version T1 is still valid (stored for less than 1 hour), then user 1 will continue to see the snapshot data for version T1 when scrolling the page (not viewing the first screen). If user 1 exits and re-enters the target page, refreshes the target page, or the snapshot data for version T1 becomes invalid (stored for more than 1 hour), then user 1 will see the latest real-time baseline data for version T3.
[0054] In one optional implementation, the second type of target floor data is retrieved from the latest version of the baseline data based on the user terminal model identifier carried in the current browsing request and displayed to the current user. This may include: determining the number of floors on the first screen corresponding to the current browsing request based on the user terminal model identifier; determining the second type of target floor data from the latest version of the baseline data based on the number of floors on the first screen; and displaying the second type of target floor data to the current user.
[0055] In this embodiment, the floor allocation can be redistributed through the first-screen browsing strategy, that is, determined by the ratio of the user terminal screen height to the preset floor height.
[0056] The technical solution in this embodiment improves the user experience by prioritizing the loading of snapshot data based on the data version number in scenarios where content-type pages are not viewed on the first screen. If valid snapshot data exists, the page is displayed through non-first screen browsing; if valid snapshot data does not exist, the page is switched to the latest baseline data and displayed through first screen browsing.
[0057] To enable those skilled in the art to better understand the content-based page display method of this embodiment, Figure 3a This embodiment provides a relationship diagram for a content-based page loading module. It includes a page content / floor snapshot module, an intelligent floor allocation module, and a page access strategy module. The page content / floor snapshot module is primarily responsible for asynchronous page content generation and configuring floor snapshot creation strategies (such as snapshot cache duration). The intelligent floor allocation module dynamically allocates the number of floors to different terminals based on the strategy. The page access strategy module is responsible for the semantic and content-related relationships between floors in the content-based page.
[0058] Figure 3b This is a schematic diagram illustrating a complete content-based page display method that combines the operations of various modules, as provided in this embodiment.
[0059] When the page content / floor snapshot module retrieves baseline data, it first checks if the previous version of baseline data exists. If it does, it generates snapshot data of the previous version and updates the previous version of baseline data using real-time baseline data. Retrieving page content can be done actively or passively. Active retrieval involves proactively calling dependent interfaces to obtain page content, while passive retrieval involves asynchronous message processing. This mechanism uses data synchronization technology to proactively update data, providing users with a zero-latency, real-time information display experience.
[0060] User access strategies are divided into first-screen browsing and non-first-screen browsing. First-screen data loading uses a real-time updated baseline data source to ensure users receive the freshest content upon entering the page. For non-first-screen requests, data is first retrieved from snapshot storage. The system checks if the required snapshot data exists. If valid snapshot data exists, pagination logic is used for floor data processing. If the snapshot data does not exist or is invalid, the system automatically switches to the baseline data for floor data processing. The system also checks if the snapshot data contains the next page indicated by the pagination condition. If it does, the user is shown that page. If not, it checks if it's the first screen. If not, an empty page is displayed. If it is the first screen data, fallback logic is executed, such as displaying default content.
[0061] The following are embodiments of the content-based page display device provided by the present invention. This device and the content-based page display method of Embodiment 1 above belong to the same inventive concept. For details not described in detail in the embodiments of the content-based page display device, please refer to the contents of the above embodiments.
[0062] Figure 4 This is a schematic diagram of the structure of a content-based page display device provided in an embodiment of the present invention. The device includes: a request acquisition module 410, a snapshot data search module 420, and a snapshot data first display module 430. Wherein:
[0063] The request acquisition module 410 is used to acquire the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request;
[0064] The snapshot data lookup module 420 is used to look up the target version snapshot data from the pre-stored snapshot database according to the snapshot data version number carried by the current browsing request; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page;
[0065] The snapshot data first display module 430 is used to search for first-type target floor data from the target version snapshot data and display it to the current user based on the pagination conditions carried by the current browsing request.
[0066] This embodiment's technical solution involves obtaining the current user's current browsing request for the target page; this current browsing request is not a first-screen browsing request; based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number for the first-screen browsing, and the pre-stored snapshot database stores the snapshot data for each version corresponding to the baseline data of each version of the target page; based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data to be displayed to the current user. By employing a technique that prioritizes loading snapshot data based on the data version number in a non-first-screen content-based page browsing scenario, this solution addresses the problem that simple pagination in existing technologies can easily lead to increased content or semantic irrelevance during page pagination display, ensuring the relevance of content or semantics during page pagination display.
[0067] Optionally, the snapshot data lookup module 420 in the above-mentioned device can be used for:
[0068] The pre-stored snapshot database is queried based on the snapshot data version number carried in the current browsing request;
[0069] If valid snapshot data corresponding to the snapshot data version number exists in the pre-stored snapshot database, the valid snapshot data will be used as the target version snapshot data.
[0070] Optionally, the above-mentioned device may also include a second snapshot data display module, comprising:
[0071] The first benchmark data acquisition unit is used to acquire the latest version of benchmark data from the pre-stored benchmark database when the valid snapshot data does not exist;
[0072] The second snapshot data display unit is used to search for second-type target floor data from the latest version of the baseline data based on the user terminal model identifier carried in the current browsing request, and to display it to the current user.
[0073] Optionally, the second snapshot data display unit in the above-mentioned device can be used for:
[0074] Based on the user terminal model identifier, determine the number of floors on the first screen corresponding to the current browsing request;
[0075] Based on the number of floors on the first screen, the second type of target floor data is determined from the latest version of the baseline data;
[0076] The second type of target floor data is displayed to the current user.
[0077] Optionally, in the above-mentioned device, the snapshot data first display module 430 can be used for:
[0078] Based on the pagination conditions, determine the number of non-first-screen floors corresponding to the current browsing request, wherein the number of non-first-screen floors is less than the number of first-screen floors;
[0079] Based on the number of non-first-screen floors and the number of first-screen floors, the first type of target floor data is determined from the target version snapshot data;
[0080] The first type of target floor data is displayed to the current user.
[0081] Optionally, in the above-mentioned device, the version number of the reference data is generated based on the release time of the reference data, and the current browsing request is a first-screen browsing request. Correspondingly, the content-type page display device further includes a first-screen browsing data display module, comprising:
[0082] The second benchmark data acquisition unit is used to acquire the latest version number benchmark data from the pre-stored benchmark database;
[0083] The first-screen floor number calculation unit is used to calculate the number of first-screen floors matching the current browsing request based on the user terminal model identifier and floor data preset height carried in the current browsing request.
[0084] The benchmark data display module is used to search for third-category target floor data from the latest version number benchmark data based on the number of floors on the first screen and display it to the current user.
[0085] Optionally, in the above-mentioned device, the first screen floor number calculation unit can be used for:
[0086] The screen height of the current user's terminal is determined based on the user terminal model identifier;
[0087] Calculate the ratio of the terminal screen height to the preset height of the floor data, and calculate the product of the ratio and a preset coefficient, wherein the preset coefficient is greater than 1;
[0088] The number of first-screen floors matching the current request is determined based on the product result.
[0089] The content-based page display device provided in this embodiment of the invention can execute the content-based page display method provided in Embodiment 1 of the invention, and has the corresponding functional modules and beneficial effects of executing the content-based page display method.
[0090] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary server 12 suitable for implementing embodiments of the present invention is shown. Figure 5 The server 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0091] like Figure 5 As shown, server 12 is presented in the form of a general-purpose computing device. The components of server 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0092] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0093] Server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by server 12, including volatile and non-volatile media, removable and non-removable media.
[0094] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 As not shown, disk drives for reading and writing to removable non-volatile disks (e.g., "floppy disks") and optical disc drives for reading and writing to removable non-volatile optical discs (e.g., CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0095] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0096] Server 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable users to interact with server 12, and / or with any device that enables server 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, server 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of server 12 via bus 18. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0097] Processing unit 16 executes various functional applications and data processing by running programs stored in system memory 28, such as implementing the steps of a content-based page display method provided in Embodiment 1 of this invention, which includes:
[0098] Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request;
[0099] Based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page;
[0100] Based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data and displayed to the current user.
[0101] Of course, those skilled in the art will understand that the processor can also implement the technical solutions of the content-based page display method provided in any embodiment of the present invention.
[0102] This embodiment provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements the steps of a content-based page display method provided in the foregoing embodiments of the present invention. The method includes:
[0103] Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request;
[0104] Based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page;
[0105] Based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data and displayed to the current user.
[0106] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0107] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0108] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0109] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" 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 it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0111] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for displaying content-based pages, characterized in that, The method includes: Obtain the current browsing request from the current user for the target page; the current browsing request is a non-first screen browsing request; Based on the snapshot data version number carried in the current browsing request, the target version snapshot data is retrieved from the pre-stored snapshot database; the snapshot data version number is the baseline data version number of the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page; Based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data and displayed to the current user.
2. The method according to claim 1, characterized in that, Based on the snapshot data version number carried in the current browsing request, retrieve the target version snapshot data from the pre-stored snapshot database, including: The pre-stored snapshot database is queried based on the snapshot data version number carried in the current browsing request; If valid snapshot data corresponding to the snapshot data version number exists in the pre-stored snapshot database, the valid snapshot data will be used as the target version snapshot data.
3. The method according to claim 2, characterized in that, Also includes: If the valid snapshot data does not exist, the latest version of the benchmark data is obtained from the pre-stored benchmark database; Based on the user terminal model identifier carried in the current browsing request, the second type of target floor data is retrieved from the latest version of the baseline data and displayed to the current user.
4. The method according to claim 3, characterized in that, Based on the user terminal model identifier carried in the current browsing request, the second type of target floor data is retrieved from the latest version of the baseline data and displayed to the current user, including: Based on the user terminal model identifier, determine the number of floors on the first screen corresponding to the current browsing request; Based on the number of floors on the first screen, the second type of target floor data is determined from the latest version of the baseline data; The second type of target floor data is displayed to the current user.
5. The method according to claim 1, characterized in that, Based on the pagination conditions carried in the current browsing request, the first type of target floor data is retrieved from the target version snapshot data and displayed to the current user, including: Based on the pagination conditions, determine the number of non-first-screen floors corresponding to the current browsing request, wherein the number of non-first-screen floors is less than the number of first-screen floors; Based on the number of non-first-screen floors and the number of first-screen floors, the first type of target floor data is determined from the target version snapshot data; The first type of target floor data is displayed to the current user.
6. The method according to claim 1, characterized in that, The version number of the benchmark data is generated based on the release time of the benchmark data. The current browsing request is the first screen browsing request, and also includes: Retrieve the latest version number benchmark data from the pre-stored benchmark database; Based on the user terminal model identifier and floor data preset height carried in the current browsing request, calculate the number of first-screen floors that match the current browsing request; Based on the number of floors on the first screen, third-category target floor data is retrieved from the latest version number baseline data and displayed to the current user.
7. The method according to claim 6, characterized in that, Based on the user terminal model identifier and preset floor data height carried in the current browsing request, calculate the number of first-screen floors matching the current browsing request, including: The screen height of the current user's terminal is determined based on the user terminal model identifier; Calculate the ratio of the terminal screen height to the preset height of the floor data, and calculate the product of the ratio and a preset coefficient, wherein the preset coefficient is greater than 1; The number of first-screen floors matching the current request is determined based on the product result.
8. A content-based page display device, characterized in that, include: The request retrieval module is used to retrieve the current browsing requests from the current user to the target page; The current browsing request is not a first-screen browsing request; The snapshot data lookup module is used to look up the target version snapshot data from the pre-stored snapshot database based on the snapshot data version number carried by the current browsing request. The snapshot data version number is the baseline data version number for the first screen browsing, and the pre-stored snapshot database is used to store the snapshot data of each version corresponding to the baseline data of each version of the target page; The snapshot data first display module is used to search for first-type target floor data from the target version snapshot data and display it to the current user based on the pagination conditions carried by the current browsing request.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the content-based page display method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the content-based page display method as described in any one of claims 1-7.