Page anchor point determination method and device, computer equipment and storage medium

By determining whether there is a page anchor mark in the preset area of ​​the current display area when switching between the page display area, and determining the target page anchor point based on the distance, the problem of inconvenience in navigation in the prior art is solved, and the flexibility and accuracy of page navigation are improved.

CN119669588APending Publication Date: 2025-03-21CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411779860.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, when there is no page anchor in the target area of ​​the display page, the status of the page anchor menu is not updated in time, resulting in inconvenient navigation and affecting the accurate navigation of the page.

Method used

By responding to the switching operation of the target page display area, obtain the current display area and determine whether the page anchor mark exists in its preset area. If it exists, it is directly determined as the target page anchor point; if it does not exist, obtain the distance between the anchor point identifiers of each page and the preset area of ​​the current display area and determine the target page anchor point.

Benefits of technology

By dynamically identifying the page anchor points in the current display area, the flexibility of page navigation and the accuracy of target page anchor points are improved, redundant search and judgment are avoided, and the efficiency of determining target page anchor points is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669588A_ABST
    Figure CN119669588A_ABST
Patent Text Reader

Abstract

The invention relates to a page anchor point determination method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of obtaining a current display area in response to a switching operation on a target page display area, and determining whether a preset area of the current display area has a preset page anchor point identifier or not; under the condition that a preset page anchor point identifier exists in a preset area of the current display area, determining a page anchor point corresponding to the page anchor point identifier as a target page anchor point; under the condition that the preset page anchor point identification does not exist in the preset area of the current display area, respectively obtaining the distance between each preset page anchor point identification in the target page and the preset area of the current display area; and determining a target page anchor point according to the distance between each page anchor point identifier and a preset area of the current display area. By adopting the method, the efficiency and accuracy of confirming the anchor point of the target page can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of front-end development technology, and in particular to a method, device, computer equipment, storage medium and computer program product for determining a page anchor point. Background Art

[0002] With the continuous development of web pages, a new type of hyperlink within a page has emerged: the page anchor. The page anchor is used to implement the internal navigation function of the web page, allowing users to quickly jump to a specific part of the page. In actual use, users usually activate the page anchor through a trigger operation to quickly jump to a specified area, or switch the target page anchor in the page anchor menu by scrolling the page. However, in the prior art, when there is no page anchor in the target area of ​​the displayed page, the status update of the page anchor menu is often not timely enough, which will cause navigation inconvenience and affect the accurate navigation of the page. Summary of the invention

[0003] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for determining a page anchor point in response to the above technical problems.

[0004] In a first aspect, the present application provides a method for determining a page anchor point. The method comprises:

[0005] In response to a switching operation on a target page display area, a current display area is acquired, and it is determined whether a preset page anchor mark exists in a preset area of ​​the current display area;

[0006] In the case where there is a preset page anchor mark in the preset area of ​​the current display area, determining the page anchor mark corresponding to the page anchor mark as the target page anchor mark;

[0007] When there is no preset page anchor mark in the preset area of ​​the current display area, respectively obtaining the distance between each preset page anchor mark in the target page and the preset area of ​​the current display area;

[0008] The target page anchor point is determined according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

[0009] In one of the embodiments, when there is a preset page anchor mark in the preset area of ​​the current display area, determining the page anchor corresponding to the page anchor mark as the target page anchor includes:

[0010] In the case where there is a preset page anchor mark in the preset area of ​​the current display area, determining the number of page anchor marks existing in the preset area;

[0011] In the case that the number of page anchor point identifiers present in the preset area is only one, determining the page anchor point corresponding to the page anchor point identifier as the target page anchor point;

[0012] In the case that there are multiple page anchor point identifiers in the preset area, the target page anchor point is determined according to the height of each page anchor point identifier in the current display area.

[0013] In one embodiment, the step of respectively obtaining the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area includes:

[0014] Obtaining the height of each preset page anchor mark on the target page, and the height of the top of the preset area of ​​the current display area on the target page;

[0015] Performing a subtraction process on the height of each page anchor mark on the target page and the height of the top of the preset area on the target page to obtain a height difference between each page anchor mark and the top of the preset area;

[0016] The height difference is processed by absolute value to obtain the distance between each preset page anchor mark in the target page and the preset area of ​​the current display area.

[0017] In one embodiment, determining whether there is a preset page anchor mark in a preset area of ​​the current display area includes:

[0018] Obtain the height range of the preset area of ​​the current display area on the target page, and the height of each page anchor mark on the target page;

[0019] When the height of the target page is within the height range, it is determined that the page anchor mark exists in a preset area of ​​the current display area.

[0020] In one embodiment, the determination of the preset area includes:

[0021] According to the height of the current display area on the target page and the preset height of the preset area, a height range of the preset area on the target page is determined.

[0022] In one embodiment, the method further comprises:

[0023] In response to a triggering operation on a page anchor, the current display area is switched to a page area corresponding to the page anchor.

[0024] In a second aspect, the present application also provides a device for determining a page anchor point. The device comprises:

[0025] A display area acquisition module, used to obtain the current display area in response to a switching operation on the display area of ​​the target page, and determine whether there is a preset page anchor mark in a preset area of ​​the current display area;

[0026] A target anchor point confirmation module, configured to determine a page anchor point corresponding to a preset page anchor point identifier as a target page anchor point when there is a preset page anchor point identifier in a preset area of ​​the current display area;

[0027] The target anchor point confirmation module is further configured to obtain the distance between each preset page anchor point identifier in the target page and the preset area of ​​the current display area when there is no preset page anchor point identifier in the preset area of ​​the current display area;

[0028] The target anchor point confirmation module is further used to determine the target page anchor point according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

[0029] In one of the embodiments, the target anchor point confirmation module includes:

[0030] An anchor point quantity confirmation submodule, used for determining the quantity of page anchor point identifiers existing in the preset area when there are preset page anchor point identifiers in the preset area of ​​the current display area;

[0031] A target anchor point confirmation submodule, configured to determine the page anchor point corresponding to the page anchor point identifier as the target page anchor point when the number of page anchor point identifiers existing in the preset area is only one;

[0032] The target anchor point confirmation submodule is further used to determine the target page anchor point according to the height of each page anchor point identifier in the current display area when there are multiple page anchor point identifiers in the preset area.

[0033] In one of the embodiments, the target anchor point confirmation module includes:

[0034] A height confirmation submodule is used to obtain the height of each preset page anchor mark on the target page, and the height of the top of the preset area of ​​the current display area on the target page;

[0035] A height difference confirmation submodule is used to perform a difference processing between the height of each page anchor mark on the target page and the height of the top of the preset area on the target page to obtain the height difference between each page anchor mark and the top of the preset area;

[0036] The distance confirmation submodule is used to perform absolute value processing on the height difference to obtain the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area.

[0037] In one of the embodiments, the target anchor point confirmation module includes:

[0038] A height confirmation submodule is used to obtain the height range of the preset area of ​​the current display area on the target page, and the height of each page anchor mark on the target page;

[0039] The anchor area determination submodule is used to determine that the page anchor mark exists in a preset area of ​​the current display area when the height of the page anchor mark of the target page is within the height range.

[0040] In one embodiment, the device further comprises:

[0041] The preset area determination module is used to determine the height range of the preset area on the target page according to the height of the current display area on the target page and the preset preset area height.

[0042] In one embodiment, the device further comprises:

[0043] The anchor point triggering module is used to switch the current display area to the page area corresponding to the page anchor point in response to the triggering operation of the page anchor point.

[0044] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for determining a page anchor point as described in any one of the embodiments of the present disclosure is implemented.

[0045] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for determining a page anchor point as described in any one of the embodiments of the present disclosure is implemented.

[0046] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for determining a page anchor point as described in any one of the embodiments of the present disclosure is implemented.

[0047] The above-mentioned method, device, computer equipment, storage medium and computer program product for determining the page anchor point, when the display area is switched, obtain the current display area, and judge the preset area of ​​the current display area. When there is a page anchor point mark in the preset area, the page anchor point corresponding to the page anchor point mark is determined as the target page anchor point. When there is no page anchor point mark in the preset area, the target page anchor point is determined according to the distance between each page anchor point mark and the preset area. The page anchor point of the current display area is determined by dynamic identification, which improves the flexibility of page navigation and the accuracy of the target page anchor point. When there is a page anchor point mark in the preset area of ​​the current display area, it is directly determined as the target page anchor point, avoiding redundant searches and judgments, and significantly improving the efficiency of determining the target page anchor point. When there is no page anchor point mark in the preset area, the target page anchor point is determined according to the distance between each page anchor point mark and the preset area. This process ensures the accuracy of selecting the target page anchor point and improves the accuracy of determining the target page anchor point. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of a flow chart of a method for determining a page anchor point in one embodiment;

[0049] Figure 2 A schematic diagram of a process for determining a target page anchor point in one embodiment;

[0050] Figure 3 A schematic diagram of a process for determining the distance between a page anchor mark and a preset area in one embodiment;

[0051] Figure 4 A schematic diagram of a process for determining whether a page anchor point identifier exists at a page anchor point in one embodiment;

[0052] Figure 5 A schematic diagram of a flow chart of a method for determining a page anchor point in one embodiment;

[0053] Figure 6 A schematic diagram of various heights of a target page in one embodiment;

[0054] Figure 7 is a structural block diagram of a device for determining a page anchor point in one embodiment;

[0055] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] In one embodiment, Figure 1 As shown, a method for determining a page anchor point is provided. This embodiment takes the method applied to a terminal as an example for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0058] Step S100, in response to a switching operation on a target page display area, a current display area is obtained, and it is determined whether there is a preset page anchor mark in a preset area of ​​the current display area.

[0059] In an exemplary embodiment, switching of the target page display area may include scrolling the target page, etc.; it is understandable that the size of the target page may be larger than the size of the display area. In this case, the page displayed in the display area is smaller than the target page, so it is necessary to switch the page in the display area, that is, to modify the page in the display area, etc.

[0060] In an exemplary embodiment, the current display area may include a page currently displayed by the target page, and the preset area may include a part of the current display area, for example, an upper quarter of the current display area.

[0061] In an exemplary embodiment, the page anchor may include a hyperlink within a page, that is, by clicking the page anchor, the current display area can be switched to the area corresponding to the page anchor, etc.; in another exemplary embodiment, the page anchor may include the subject of the page content. Specifically, the page anchor may also include querying the target anchor according to the currently displayed page when the page is scrolled, and highlighting the target anchor to prompt the subject of the currently displayed page, etc.

[0062] In an exemplary embodiment, the page anchor mark may include the theme of the page content corresponding to the anchor. For example, if the page content is a story, the page anchor mark may be the cause, process, and result. Specifically, the page content includes a "cause" mark, a "process" mark, and a "result" mark, and specific content is displayed under each mark. The page anchor corresponds to the page anchor mark. When the display area is the content of the cause, the page anchor corresponding to the cause is the target page anchor, and the page anchor corresponding to the cause can be highlighted.

[0063] Step S200, when there is a preset page anchor mark in the preset area of ​​the current display area, the page anchor corresponding to the page anchor mark is determined as the target page anchor.

[0064] In an exemplary embodiment, when there are multiple page anchor identifiers in a preset area, all page anchor identifiers can be determined as target page anchors, etc.; in another exemplary embodiment, when there are multiple page anchor identifiers in a preset area, a target page anchor identifier can be selected from the multiple page anchor identifiers, and the corresponding target page anchors can be matched, etc. For example, the first page anchor identifier is selected as the target page anchor identifier, or the page anchor identifier closest to the center of the preset area is selected as the target anchor identifier, etc.

[0065] Step S300, when there is no preset page anchor mark in the preset area of ​​the current display area, respectively obtain the distance between each preset page anchor mark in the target page and the preset area of ​​the current display area.

[0066] In an exemplary embodiment, obtaining the distance between each preset page anchor point identifier in the target page and the preset area of ​​the current display area may include selecting a page height of the current display area as the height of the preset area, and obtaining the page height corresponding to each page anchor point identifier in turn, and determining the distance between the page anchor point identifier and the preset area based on the page height of the page anchor point identifier and the height of the preset area of ​​the current display area; in actual use, the height of the preset area may be the height of the top of the current display area, etc.

[0067] Step S400, determining a target page anchor point according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

[0068] In an exemplary embodiment, the page anchor corresponding to the page anchor identifier that is closest to the preset area may be selected as the target page anchor.

[0069] In the above-mentioned method for determining the page anchor point, when the display area is switched, the current display area is obtained, and the preset area of ​​the current display area is judged. When there is a page anchor point identifier in the preset area, the page anchor point corresponding to the page anchor point identifier is determined as the target page anchor point. When there is no page anchor point identifier in the preset area, the target page anchor point is determined according to the distance between each page anchor point identifier and the preset area. The page anchor point of the current display area is determined by dynamic identification, which improves the flexibility of page navigation and the accuracy of the target page anchor point. When there is a page anchor point identifier in the preset area of ​​the current display area, it is directly determined as the target page anchor point to avoid redundant searches and judgments, which significantly improves the efficiency of determining the target page anchor point. When there is no page anchor point identifier in the preset area, the target page anchor point is determined according to the distance between each page anchor point identifier and the preset area. This process ensures the accuracy of the target page anchor point selection and improves the accuracy of the target page anchor point determination.

[0070] In one embodiment, Figure 2 As shown, when there is a preset page anchor mark in the preset area of ​​the current display area, determining the page anchor corresponding to the page anchor mark as the target page anchor includes:

[0071] Step S301, when there is a preset page anchor mark in the preset area of ​​the current display area, determine the number of page anchor marks existing in the preset area.

[0072] Step S302: when the number of page anchor point identifiers existing in the preset area is only one, determine the page anchor point corresponding to the page anchor point identifier as the target page anchor point.

[0073] Step S303, when there are multiple page anchor markers in the preset area, determine the target page anchor according to the height of each page anchor marker in the current display area.

[0074] In an exemplary embodiment, the page anchor point identifiers of the current display area may be from top to bottom, so according to the heights of the page anchor point identifiers in the current display area, the one with the highest height may be selected as the target anchor point identifier, etc.

[0075] In an exemplary embodiment, when the display area is switched, it can be determined whether there is a page anchor identifier in the upper quarter area after the switch. If so, the page anchor identifier can be marked as a candidate anchor identifier, and then the number of candidate anchor identifiers can be determined. If there is only one, the page anchor identifier is the target page anchor identifier; if there are multiple, the first one (i.e., the page anchor identifier closest to the top of the current display area) is determined as the target page anchor identifier, etc.

[0076] In this embodiment, when there are anchor point markers in the preset area, the number of anchor points is first determined. If there is only one, it is directly confirmed as the target page anchor point, which simplifies the anchor point selection process. If there are multiple anchor points, the height of each anchor point in the current display area is used for judgment. This method can ensure that more relevant and significant anchor points are selected, further improving the accuracy of the target page anchor point and the accuracy of page navigation. This further improves the flexibility and accuracy of page navigation.

[0077] In one embodiment, Figure 3 As shown, the step of respectively obtaining the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area includes:

[0078] Step S401, obtaining the height of each preset page anchor mark on the target page, and the height of the top of the preset area of ​​the current display area on the target page.

[0079] Step S402 , performing a subtraction process on the height of each page anchor mark on the target page and the height of the top of the preset area on the target page to obtain the height difference between each page anchor mark and the top of the preset area.

[0080] Step S403: performing absolute value processing on the height difference to obtain the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area.

[0081] In an exemplary embodiment, the height of each page anchor mark on the target page can be obtained through a preset setting, etc.; the acquisition of the height of the preset area can pre-set the height of the content of the target page, and confirm the height of the preset area through the top content of the current display area, etc.

[0082] In this embodiment, by obtaining the height of each preset anchor point on the target page and performing a difference process with the height of the top of the preset area of ​​the current display area, the distance between each anchor point and the top of the preset area can be accurately calculated. This method ensures that when there is no anchor point in the preset area, the anchor point with the highest correlation with the display area can be more accurately identified, thereby selecting the best target page anchor point. In this way, the correlation between the page content and the target anchor point is strengthened, and the accuracy of the target page anchor point is improved.

[0083] In one embodiment, Figure 4 As shown, the determining whether there is a preset page anchor mark in the preset area of ​​the current display area includes:

[0084] Step S101, obtaining a height range of a preset area of ​​a current display area on a target page, and a height of each page anchor mark on the target page.

[0085] Step S102, when the height of the target page is within the height range, determining that the page anchor mark exists in a preset area of ​​the current display area.

[0086] In an exemplary embodiment, the height range of the preset area on the target page can be determined by analyzing the area where the page roller is located, and determining the height range of the preset area, etc. For example, the upper limit of the height range of the preset area is equal to the height of the target page × the percentage where the roller is located, and the lower limit of the preset area is equal to the height of the target page × (the percentage where the roller is located + the preset threshold value), wherein the preset threshold value is used to characterize the size of the preset area, etc.

[0087] In this embodiment, by obtaining the height range of the preset area of ​​the current display area in the target page and comparing the heights of the anchor point markers of each page, it is possible to accurately determine which anchor point markers are actually located in the visible display area. This method improves the accuracy of anchor point determination and ensures that only anchor points that are truly related to the current display content are taken into consideration, thereby optimizing the page navigation effect, reducing information redundancy, and improving the efficiency of target page anchor point confirmation.

[0088] In one embodiment, the determination of the preset area includes:

[0089] According to the height of the current display area on the target page and the preset height of the preset area, a height range of the preset area on the target page is determined.

[0090] In an exemplary embodiment, determining the height range of the preset area may include pre-setting the height of the preset area, and further determining the height of the top of the preset area on the target page based on the height of the top content of the current display area on the target page, that is, the upper limit of the height of the preset area, and based on the height and the height of the preset area, obtaining the height of the bottom of the preset area on the target page, that is, the lower limit of the height of the preset area, so that the height range of the preset area on the target page, etc. can be known.

[0091] In this embodiment, the height range of the preset area on the target page is determined by the height of the current display area on the target page and the preset preset area height. By the preset preset area height and the height of the current display area on the target page, the height range of the preset area can be quickly determined, and further, whether there is a page anchor mark within the range can be quickly determined, thereby improving the efficiency of determining the target page anchor.

[0092] In one embodiment, the method further comprises:

[0093] In response to a triggering operation on a page anchor, the current display area is switched to a page area corresponding to the page anchor.

[0094] In an exemplary embodiment, the page anchor may include an anchor with an identifier, wherein the identifier of the page anchor may be consistent with the page anchor identifier in the target page; for example, if there is a "cause" identifier, a "process" identifier, and a "result" identifier in the target page, the identifier of the page anchor may be displayed as "cause", "process", and "result"; by triggering these anchors, the display area can be quickly positioned to the area of ​​the page anchor identifier in the target page corresponding to these anchors, etc.

[0095] In this embodiment, when a user triggers an anchor operation, the system can quickly switch the current display area to the page area corresponding to the anchor, allowing the account to directly access the content they are interested in. This immediate response not only reduces the account's search time, but also optimizes the flow and display of information and improves the interactivity of the page. In addition, through smooth jumps, the readability and usability of the content are enhanced.

[0096] In an exemplary embodiment, the method for determining the page anchor point can be as follows: Figure 5 The flowchart shown is implemented, specifically including:

[0097] Step S901, event monitoring; when a page scrolling event is triggered, calling an anchor synchronization function, etc.;

[0098] Step S902, obtaining information, obtaining a scroll container from the scroll event object, and obtaining the height of the content area and the top padding of the content area;

[0099] Step S903, determining whether there is a page anchor mark within the preset range of the visible area; if yes, proceed to step S904; if no, proceed to step S905;

[0100] Step S904, establishing a first array to store all page anchors; adding a preset identifier to the page anchors corresponding to the page anchor identifiers existing in the preset range, and selecting the first page anchor with the preset identifier in the first array as the target page anchor;

[0101] Step S905, establishing a second array to store the distance between the page anchor mark in the target page and the top of the content area;

[0102] Step S906, selecting the page anchor point corresponding to the page anchor point identifier with the smallest absolute value in the second array as the target page anchor point;

[0103] Step S907, highlighting the target page anchor point; and continuing to monitor the triggering operation of the next display area switch.

[0104] In an exemplary embodiment, when the content corresponding to the last page anchor of the target page is too small, the last page anchor will not be determined as the target page anchor even when the page is scrolled to the bottom. Therefore, in order to solve this problem, this solution proposes to add a blank grid at the bottom of the target page. The height of the added blank grid can be determined in the following ways: respectively determine the height of the visualization area of ​​the target page (denoted as a), obtain the page content corresponding to the last page anchor mark (denoted as b), and determine the height of the last page anchor (denoted as c); the height of the blank grid to be supplemented may include d=abc; after obtaining the distance of the blank grid, it can be verified according to the following formula, g=abcd; when g > 0: the height d of the blank block needs to be increased, and the adjustment amount is g. When g < 0: the current blank block height is too large, and the height d needs to be reduced, and the adjustment amount is |g|. When g = 0: the blank block height is appropriate and no adjustment is required. Specifically, the height information of each page can be as follows Figure 6 The height information shown specifically includes the display area height a, the height b of the last anchor mark, the height c of the page content corresponding to the last page anchor, the blank block height d, and the actual height e of the target page.

[0105] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0106] Based on the same inventive concept, the embodiment of the present application also provides a device for determining a page anchor point for implementing the method for determining a page anchor point involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for determining one or more page anchor points provided below can refer to the limitations of the method for determining a page anchor point above, and will not be repeated here.

[0107] In one embodiment, Figure 7 As shown, a device 100 for determining a page anchor point is provided, comprising: a display area acquisition module 101 and a target anchor point confirmation module 102, wherein:

[0108] A display area acquisition module, used to obtain the current display area in response to a switching operation on the display area of ​​the target page, and determine whether there is a preset page anchor mark in a preset area of ​​the current display area;

[0109] A target anchor point confirmation module, configured to determine a page anchor point corresponding to a preset page anchor point identifier as a target page anchor point when there is a preset page anchor point identifier in a preset area of ​​the current display area;

[0110] The target anchor point confirmation module is further configured to obtain the distance between each preset page anchor point identifier in the target page and the preset area of ​​the current display area when there is no preset page anchor point identifier in the preset area of ​​the current display area;

[0111] The target anchor point confirmation module is further used to determine the target page anchor point according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

[0112] In one embodiment, the target anchor point confirmation module includes:

[0113] An anchor point quantity confirmation submodule, used for determining the quantity of page anchor point identifiers existing in the preset area when there are preset page anchor point identifiers in the preset area of ​​the current display area;

[0114] A target anchor point confirmation submodule, configured to determine the page anchor point corresponding to the page anchor point identifier as the target page anchor point when the number of page anchor point identifiers existing in the preset area is only one;

[0115] The target anchor point confirmation submodule is further used to determine the target page anchor point according to the height of each page anchor point identifier in the current display area when there are multiple page anchor point identifiers in the preset area.

[0116] In one embodiment, the target anchor point confirmation module includes:

[0117] A height confirmation submodule is used to obtain the height of each preset page anchor mark on the target page, and the height of the top of the preset area of ​​the current display area on the target page;

[0118] A height difference confirmation submodule is used to perform a difference processing between the height of each page anchor mark on the target page and the height of the top of the preset area on the target page to obtain the height difference between each page anchor mark and the top of the preset area;

[0119] The distance confirmation submodule is used to perform absolute value processing on the height difference to obtain the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area.

[0120] In one embodiment, the target anchor point confirmation module includes:

[0121] A height confirmation submodule is used to obtain the height range of the preset area of ​​the current display area on the target page, and the height of each page anchor mark on the target page;

[0122] The anchor area determination submodule is used to determine that the page anchor mark exists in a preset area of ​​the current display area when the height of the page anchor mark of the target page is within the height range.

[0123] In one embodiment, the device further comprises:

[0124] The preset area determination module is used to determine the height range of the preset area on the target page according to the height of the current display area on the target page and the preset preset area height.

[0125] In one embodiment, the device further comprises:

[0126] The anchor point triggering module is used to switch the current display area to the page area corresponding to the page anchor point in response to the triggering operation of the page anchor point.

[0127] Each module in the above-mentioned device for determining the page anchor point can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0128] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store page anchor identification data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining a page anchor is implemented.

[0129] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0130] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0131] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0132] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0133] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for determining a page anchor point, characterized in that: The method comprises: In response to a switching operation on a target page display area, a current display area is acquired, and it is determined whether a preset page anchor mark exists in a preset area of ​​the current display area; In the case where there is a preset page anchor mark in the preset area of ​​the current display area, determining the page anchor mark corresponding to the page anchor mark as the target page anchor mark; When there is no preset page anchor mark in the preset area of ​​the current display area, respectively obtaining the distance between each preset page anchor mark in the target page and the preset area of ​​the current display area; The target page anchor point is determined according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

2. The method according to claim 1, characterized in that In the case where there is a preset page anchor mark in the preset area of ​​the current display area, determining the page anchor corresponding to the page anchor mark as the target page anchor includes: In the case where there is a preset page anchor mark in the preset area of ​​the current display area, determining the number of page anchor marks existing in the preset area; In the case that the number of page anchor point identifiers present in the preset area is only one, determining the page anchor point corresponding to the page anchor point identifier as the target page anchor point; In the case that there are multiple page anchor point identifiers in the preset area, the target page anchor point is determined according to the height of each page anchor point identifier in the current display area.

3. The method according to claim 1, characterized in that The respectively obtaining the distance between each preset page anchor mark in the target page and a preset area of ​​the current display area includes: Obtaining the height of each preset page anchor mark on the target page, and the height of the top of the preset area of ​​the current display area on the target page; Performing a subtraction process on the height of each page anchor mark on the target page and the height of the top of the preset area on the target page to obtain a height difference between each page anchor mark and the top of the preset area; The height difference is processed by absolute value to obtain the distance between each preset page anchor mark in the target page and the preset area of ​​the current display area.

4. The method according to claim 1, characterized in that: The determining whether there is a preset page anchor mark in a preset area of ​​the current display area includes: Obtain the height range of the preset area of ​​the current display area on the target page, and the height of each page anchor mark on the target page; When the height of the target page is within the height range, it is determined that the page anchor mark exists in a preset area of ​​the current display area.

5. The method according to claim 4, characterized in that The determination of the preset area includes: According to the height of the current display area on the target page and the preset height of the preset area, a height range of the preset area on the target page is determined.

6. The method according to claim 1, characterized in that The method further comprises: In response to a triggering operation on a page anchor, the current display area is switched to a page area corresponding to the page anchor.

7. A device for determining a page anchor point, characterized in that: The device comprises: A display area acquisition module, used to obtain the current display area in response to a switching operation on the display area of ​​the target page, and determine whether there is a preset page anchor mark in a preset area of ​​the current display area; A target anchor point confirmation module, configured to determine a page anchor point corresponding to a preset page anchor point identifier as a target page anchor point when there is a preset page anchor point identifier in a preset area of ​​the current display area; The target anchor point confirmation module is further configured to obtain the distance between each preset page anchor point identifier in the target page and the preset area of ​​the current display area when there is no preset page anchor point identifier in the preset area of ​​the current display area; The target anchor point confirmation module is further used to determine the target page anchor point according to the distance between each page anchor point identifier and a preset area of ​​the current display area.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.