A method, device, electronic device and storage medium for displaying a target page

By determining the layout package and page display parameters of the page to be displayed when detecting page display controls, the problem of mismatch between the system web page table area and the visual page is solved, the page area is fixed, and the user experience is improved.

CN114296852BActive Publication Date: 2024-08-23GUAHAO (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111622011.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-08-23
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

When the table area of ​​the system web page does not match the visual page, the user experience is poor, and the table area causes the entire page to slide when scrolling.

Method used

When detecting page display controls, determine the layout package and page display parameters of the page to be displayed, including the height information of each area, to fix the page area and avoid sliding.

Benefits of technology

It realizes the adaptability display of the page area, improves the user experience, and avoids the page sliding problem caused by the scrolling of the table area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296852B
    Figure CN114296852B
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for displaying a target page, wherein the method comprises: when a triggering page display control is detected, determining a to-be-used page layout package corresponding to a to-be-displayed page; determining page display parameters in the to-be-displayed page according to the to-be-displayed page layout package; and displaying the to-be-displayed page based on the page display parameters; wherein the page display parameters include height information of each display area in the page. The method solves the problem that each area in the page is not compatible with the to-be-displayed page when the page display parameters of each area in the page are uncertain, and realizes fixing each area in the page in the corresponding area, thereby avoiding the phenomenon that each area scrolls when the page is slid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for displaying a target page. Background Art

[0002] The visualization page of the system webpage may include a table area, and the properties of the corresponding tables in different systems may not be exactly the same, for example, the height of the table may be different.

[0003] During the development process, the height of the table area may not match the visual page of the system web page. As a result, when the user needs to scroll to view more information in the table, not only the table area can be scrolled, but the visual interface of the system web page may also scroll, resulting in a poor user experience.

[0004] In order to improve the user experience when using the form, the page layout of the visual interface of the system web page needs to be adjusted. Summary of the invention

[0005] The present invention provides a method, device, electronic device and storage medium for displaying a target page, so as to fix each area in the page in a corresponding area and avoid the sliding effect of the display area.

[0006] In a first aspect, an embodiment of the present invention provides a method for displaying a target page, comprising:

[0007] When a trigger page display control is detected, determining a page layout package to be used corresponding to the page to be displayed;

[0008] Determining page display parameters in the page to be displayed according to the page layout package to be used;

[0009] Based on the page display parameters, display the page to be displayed;

[0010] The page display parameters include height information of each display area in the page.

[0011] In a second aspect, an embodiment of the present invention further provides a device for displaying a target page, including:

[0012] A page layout package determination module, used to determine a page layout package to be used corresponding to a page to be displayed when a trigger page display control is detected;

[0013] A page display parameter determination module, used to determine the page display parameters of the page to be displayed according to the page layout package to be used;

[0014] A to-be-displayed page display module, used for displaying the to-be-displayed page based on the page display parameters;

[0015] The page display parameters include height information of each display area in the page.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying a target page as described in any one of the embodiments of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the method for displaying a target page as described in any one of the embodiments of the present invention.

[0021] The technical solution of this embodiment, when detecting the triggering of the page display control, determines the page layout package to be used corresponding to the page to be displayed, and the layout of the page to be displayed can be determined by the page layout parameters in the page layout package to be used. According to the page layout package to be used, the page display parameters in the page to be displayed are determined. The method for determining the page display parameters is encapsulated in the page layout package to be used, so that when the page to be displayed is opened, the page layout package to be used is called to determine the height information of each area in the page to be displayed. Based on the page display parameters, the page to be displayed is displayed to show the display page to the user. The problem that each area in the page is not compatible with the page to be displayed when the page display parameters of each area in the page are uncertain is solved, and each area in the page is fixed in the corresponding area, avoiding the phenomenon of each area scrolling when the page is slid. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A flowchart of a method for displaying a target page provided by the first embodiment of the present invention;

[0024] Figure 2 A schematic diagram of a flow chart of a method for displaying a target page provided by Embodiment 2 of the present invention;

[0025] Figure 3 A schematic diagram of a page layout of a page to be displayed provided in the second embodiment of the present invention;

[0026] Figure 4 This is a schematic diagram of the structure of a device for displaying a target page provided by Embodiment 4 of the present invention.

[0027] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0029] Before elaborating on the technical solution in detail, the application scenario of the technical solution is first introduced to make the understanding of the technical solution clearer. In practical applications, when a business system is opened, such as a commercial business system, a medical business system or other business system, multiple pages to be selected can be seen in the system page, and different business pages can be displayed by clicking on different pages to be selected. Generally speaking, in a system, the layout of each page to be displayed is the same, such as including a page selection area to be displayed, a top area, a target display area and a bottom area. Some cards, pictures or text information are usually inserted in the top area of ​​the page. Since the size of the inserted content or the size of the occupied area is not fixed, the display area of ​​the top area will be not fixed, which will cause the target display area in the page to be mismatched with the entire page. At this time, when the target page display area needs to be pulled down, the entire target display page will slide, affecting the user experience. Based on this, the target page display method can be improved based on the technical solution to achieve the effect of adapting the target display page to the entire page.

[0030] Embodiment 1

[0031] Figure 1A flow chart of a method for displaying a target page provided in Embodiment 1 of the present invention is provided. This embodiment is applicable to the situation where, when the page layouts in the system are the same, the height information of the target display area in the page is determined, and the page is rendered based on the obtained height information. The method can be executed by a device for displaying the target page, and the device can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal or a PC.

[0032] like Figure 1 As shown, the method includes:

[0033] S110: When a triggering page display control is detected, a page layout package to be used corresponding to a page to be displayed is determined.

[0034] Among them, the page display control can be understood as a control used by the business system to select a display page. For example, in the system page, a page display control can be set, and each page display control corresponds to each page to be used. When it is detected that the page display control is triggered, the corresponding page can be opened. While opening the page to be displayed, the page layout package to be used corresponding to the page can be determined. The page layout package to be used can be understood as a toolkit for adjusting the page display parameters in the page to be displayed. The toolkit may include the layout parameters of each page to be displayed, and may also integrate a method for determining the parameters of the target display area in the page to be displayed, such as a Node package management tool (also called an npm toolkit).

[0035] Specifically, when it is detected that the page display control in the system is triggered, the page to be displayed corresponding to the page display control can be opened, and at the same time, the page layout package to be used corresponding to the page to be displayed is determined, so as to adjust the page layout parameters in the page to be displayed according to the page layout package to be used, so as to ensure that the display areas of the page to be displayed can match each other, and avoid the situation that when the target display area is pulled down, the entire page will slide up and down together with the target display area. Among them, the target display area can be a table area set in the page to be displayed.

[0036] Optionally, when a trigger page display control is detected, determining a page layout package to be used corresponding to a page to be displayed includes: when a trigger page display control is detected, determining a page identifier corresponding to the page display control; and determining, based on a pre-established mapping relationship table, page layout parameters to be used of the page to be used corresponding to the page identifier; wherein the mapping relationship table includes page identifiers and corresponding page layout parameters.

[0037] Among them, the page identifier can be understood as identification information corresponding to the page to be displayed, for example, it can be unique identification information such as the name information or id information of the page to be displayed. In actual applications, the page layouts of the pages to be displayed in the same system are the same, and the page layout parameters to be used can be understood as the layout parameters of each area in the page to be displayed, such as display area 1 is the top display area, display area 2 is the target display area, display area 3 is the bottom display area, etc., that is, according to the page layout parameters to be used, the layout corresponding to the page can be determined. The mapping relationship table can be understood as a list generated according to the correspondence between each page identifier and the page layout parameter. According to the page identifier, the corresponding page layout parameters can be determined, and further the layout of each area in the page can be determined.

[0038] For example, in a certain business system, each page to be displayed includes a page selection area to be displayed, a top display area, a target display area, and a bottom display area, and the position information corresponding to each area in the page to be displayed can be determined according to the page layout parameters. It should be noted that the positions of the areas are the same, but the display parameter information corresponding to the areas can be the same or different, such as the size information corresponding to the areas.

[0039] Specifically, the page identifiers of the pages to be displayed and the mapping relationship table between the page identifiers and the page layout parameters are pre-established. When it is detected that the page display control is triggered, the page identifier corresponding to the page to be displayed can be determined, and then based on the mapping relationship table, the page layout parameters corresponding to the page identifier can be determined, and then the layout of each area in the page to be displayed can be determined according to the page layout parameters.

[0040] S120: Determine page display parameters in the page to be displayed according to the page layout package to be used.

[0041] The page display parameters may be understood as size information corresponding to each area in the page, such as height information. The page display parameters include height information of each display area in the page.

[0042] Specifically, when opening the page to be displayed, the page layout package to be used can be called to obtain the page layout parameters of the page to determine the position information corresponding to each display area, and then the page display parameters in the page to be displayed are adjusted based on the display parameter determination method in the page layout package to be used.

[0043] Exemplarily, if the page to be displayed includes a top display area, a target display area, and a bottom display area, the height information of each display area can be determined by calling the display parameter determination method in the page layout package to be used.

[0044] S130: Display the page to be displayed based on the page display parameters.

[0045] Specifically, after determining the page display parameters corresponding to each display area in the page to be displayed, the page to be displayed is rendered according to the layout parameters of the page to be used and the page display parameters of each display area to obtain the page to be displayed and present it to the user.

[0046] Optionally, a to-be-used page layout package corresponding to each to-be-displayed page is constructed, so that the corresponding to-be-displayed page is displayed according to the to-be-displayed page layout package.

[0047] For different business systems, the layout of the pages to be displayed in the system may be different, but for the same business system, the layout of the pages to be displayed is usually the same. In order to enable the present technical solution to be used in different systems, different layout packages of pages to be used can be constructed according to different systems, so that the display parameters of each page to be displayed are determined according to the method for determining the page display parameters in the layout package to be used, and the page to be displayed is rendered to display the corresponding page to be displayed.

[0048] The technical solution of this embodiment, when detecting the triggering of the page display control, determines the page layout package to be used corresponding to the page to be displayed, and the layout of the page to be displayed can be determined by the page layout parameters in the page layout package to be used. According to the page layout package to be used, the page display parameters in the page to be displayed are determined. The method for determining the page display parameters is encapsulated in the page layout package to be used, so that when the page to be displayed is opened, the page layout package to be used is called to determine the height information of each area in the page to be displayed. Based on the page display parameters, the page to be displayed is displayed to show the display page to the user. The problem that each area in the page is not compatible with the page to be displayed when the page display parameters of each area in the page are uncertain is solved, and each area in the page is fixed in the corresponding area, avoiding the phenomenon of each area scrolling when the page is slid.

[0049] Embodiment 2

[0050] As an alternative embodiment of the above embodiment, Figure 2 A flow chart of a method for displaying a target page provided in Embodiment 2 of the present invention. Optionally, the method for displaying a target page also includes constructing a page layout package to be used corresponding to each page to be displayed, so as to display the corresponding page to be displayed according to the page layout package to be used.

[0051] like Figure 2 As shown, the method includes:

[0052] S210: Insert a target element into the top display area of ​​the page to be displayed.

[0053] The top display area can be understood as the upper area of ​​the page to be displayed, see Figure 3 The target element can be understood as a block-level element, for example, a div element. By deploying block-level elements in the page to be displayed, the page to be displayed can be rendered, and the display content contained in each block-level element can be displayed in the page to be displayed.

[0054] It should be noted that in the present technical solution, the target element is an empty block-level element, that is, the target element does not contain any content. In other words, although the target element exists, the relevant information of the target element cannot be displayed in the page to be displayed because the target element is an empty block-level element. However, the position information of the target element in the page to be displayed can be determined through the name of the target element or other identification information.

[0055] Specifically, according to the page layout parameters of the page to be displayed, the position information corresponding to each area, or the arrangement of each area in the page to be displayed, can be determined. Each area in the page to be displayed corresponds to a block-level element, and each block-level element corresponds to the page layout parameters. The target element is inserted into the block-level element corresponding to the top display area of ​​the page to be displayed, or the target element can be inserted below the block-level element corresponding to the top display area of ​​the page to be displayed, so that the target element is closely connected with the block-level element corresponding to the top display area in the page to be displayed, so as to facilitate the determination of the height information of the top of the top display area of ​​the page to be displayed according to the target element.

[0056] S220: deploy a first target function to determine top height information from the target element to the top position of the page to be displayed based on the target function.

[0057] The first target function is a specific function, for example, it may be a getBoundingClientRect().top function, based on which the top height information of the target element and the top position of the page to be displayed can be determined.

[0058] Specifically, when rendering the page to be displayed, the position of the target element can be determined according to the identification information of the target element, and then the top height information of the target element and the top position of the page to be displayed can be obtained through the deployed first objective function.

[0059] S230: deploy a second objective function to obtain bottom height information of a bottom area in the page to be displayed.

[0060] Among them, the second target function can also be understood as a specific function, for example, it can be a getBoundingClientRect().bottom function. The second target function can be used to obtain the bottom height information of the bottom area in the page to be displayed. Exemplarily, similar to the method of determining the top height information, a target element can be inserted between the target display area and the bottom area, that is, an empty div element can be inserted, and the identification information of this target element can be determined to determine the position information of the target element according to the identification information, and then based on the second target function and the position information of the target element, the bottom height information is obtained.

[0061] Specifically, similar to the first objective function, when rendering the page to be displayed, by obtaining the indicative information of the block-level element corresponding to the bottom area of ​​the page to be displayed, the bottom height information of the bottom area of ​​the page to be displayed can be determined based on the deployed second objective function.

[0062] Alternatively, optionally, the height information of the bottom area in the page to be displayed can also be pre-set height information, and the bottom height information of the bottom area in each page to be displayed is used as a fixed page display parameter to determine the height information of the target display area based on the top height information and bottom height information of the page to be displayed.

[0063] S240: Deploy a third objective function for determining a target display area.

[0064] The third objective function may be understood as a function for determining height information of the target display area.

[0065] Specifically, in order to make the target display area in the page to be displayed adapt to the various areas in the page to be displayed when it is displayed, in other words, according to the deployed third objective function, the height information of the target display area can be obtained, and the height information in the display parameters of the target display area can be adjusted according to the obtained height information, so that the target display area is displayed at an appropriate height in the page to be displayed.

[0066] Exemplarily, the total height information of the page to be displayed is recorded as H, the top height information obtained based on the first objective function is recorded as h1, the bottom height information obtained based on the second objective function is recorded as h2, and the height information of the target display area is recorded as h3. Based on the third objective function, h3=H-h1-h2 can be obtained.

[0067] S250: Determine the page layout package to be used based on the first objective function, the second objective function, and the third objective function.

[0068] Specifically, the page layout package to be used includes a method for determining page display parameters, and the page display parameters can be determined based on the first objective function, the second objective function, and the third objective function.

[0069] Optionally, the first objective function is used to determine the top height information from the target element to the top position; the second objective function is used to obtain the bottom height information of the bottom area in the page to be displayed; the third objective function is used to determine the third height information of the target display area according to the total height information, the bottom height information and the top height information of the page to be displayed in the display interface, so as to adjust the target display area for display in the page to be displayed based on the third height information.

[0070] Optionally, determining the page display parameters in the page to be displayed according to the page layout package to be used includes: determining the total height information of the target display area according to the page layout package to be used, and using the total height information as the height attribute of the target component; and determining the page display parameters based on the height attribute.

[0071] The total height information of the target display area can be understood as the display height of the target display area in the page to be displayed, which can be determined according to the height information of the page to be displayed, the top height information of the page to be displayed, and the bottom height information. When rendering the page to be displayed, the page can be rendered by the components in the component library of the rendering page. The target component can be understood as the component corresponding to the rendering of the target display area, which can be used to store the height attribute of the target display area. The height attribute can be used to control the height information of the target display area.

[0072] Specifically, based on the first objective function in the page layout package to be used, the top height information from the target element in the page to be displayed to the top position can be obtained, and based on the second objective function, the bottom height information of the bottom area in the page to be displayed can be obtained. Usually, the bottom height information in the page to be displayed is a fixed value, or the bottom height information can also be determined according to the second objective function. Then, based on the third objective function, the third height information, that is, the height information of the target display area, can be determined. Specifically, the total height information of the target display area is the difference between the total height information of the page to be displayed and the top height information and the bottom height information. After obtaining the total height information of the target display area, fill the total height information into the height attribute corresponding to the target component to determine the page display parameters of the target area based on the height attribute.

[0073] Optionally, displaying the page to be displayed based on the page display parameters includes: rendering the acquired page display data according to a height attribute to obtain the page to be displayed; wherein the height information of the target display area in the page to be displayed matches the height attribute.

[0074] The page display data may be understood as the height information of the obtained target display area.

[0075] Specifically, the height information corresponding to the target display area can be stored in the height attribute of the target component, and the obtained height information is used as the page display data of the target display area, and then the page to be displayed is rendered based on the obtained page display data, where the height information of the target display area in the page to be displayed matches the height attribute.

[0076] S260: Determine page display parameters in the page to be displayed according to the page layout package to be used.

[0077] S270: Display the page to be displayed based on the page display parameters.

[0078] The technical solution of this embodiment is to insert a target element into the top display area of ​​the page to be displayed. When the identification information of the target element is input, the top height information of the top position of the page to be displayed can be obtained according to the position of the target element and the deployed first target function. The first target function is deployed to determine the top height information of the target element to the top position of the page to be displayed based on the target function, and the second target function is deployed to obtain the bottom height information of the bottom area of ​​the page to be displayed. The top height information and the bottom height information can be obtained respectively according to the first target function and the second target function, and then the height information of the target display area can be obtained according to the third target function. The third target function for determining the target display area is deployed, and the total height information, the top height information and the bottom height information of the page to be displayed are processed by the third target function to obtain the height information of the target display area. Based on the first target function, the second target function and the third target function, the page layout package to be used is determined, so that the pre-packaged page layout package to be used can be directly called when adjusting the height of the target display area of ​​the page to be displayed and rendering the page in different systems. The problem that each area in the page is not compatible with the page to be displayed when the page display parameters of each area in the page are uncertain is solved, and each area in the page is fixed in the corresponding area, avoiding the phenomenon of each area scrolling when the page is slid.

[0079] Embodiment 3

[0080] In a specific example, the page layouts of various pages to be displayed in a business system are usually unified, such as a commercial business system or a medical business system, and most of them are similar to the settings of the top area, the target display area, and the bottom area, see Figure 3 . In the present technical solution, the target display area may be a table area, and information such as images or texts may be inserted in the area above the table area (i.e., the top position of the page to be displayed). Due to the different sizes of the inserted images or the different amounts of input text, the height information of the top display area may not be fixed, but generally speaking, the height information of the bottom area of ​​the page to be displayed is fixed and can be used to display the page number information of the page to be displayed. Since the height information of the top display area is not fixed, when the height information of the target display area is not compatible with that of the top display area and the bottom display area, when the target display area is pulled down, the target display area may scroll along with the pull-down action, affecting the user experience.

[0081] Based on this, in order to avoid the target display area from scrolling along with the pull-down action, the top display position of the target display area can be fixed, that is, the height information of the target display area, the top display area and the bottom display area can be adjusted so that each display area can be displayed in a matching manner in the page to be displayed. When constructing the page to be displayed, the page to be displayed can be constructed through a component library, which includes a table component (i.e., a target component). The height information of the table area (i.e., the target display area) can be rendered by passing fixed height information to the height attribute (i.e., the height attribute) in the target component. In order to dynamically determine the height information of the target display area, first obtain the height clientHeight value of the page to be displayed (i.e., the total height information of the page to be displayed), then insert an empty div element (i.e., the target element) between the target component and the block-level element corresponding to the top display area, and create unique identification information for the target element, such as creating the name of the target element, etc. By setting the target element, when rendering the page, the top height information of the page to be displayed can be obtained based on the getBoundingClientRect().top method (i.e., the first target function), and the bottom height information can be obtained according to the getBoundingClientRect().bottom method (i.e., the second target function). After obtaining the total height information, top height information and bottom height information of the page to be displayed, the height information of the target display area can be obtained based on the third target function. Then the obtained height information is passed to the height attribute in the target component as the page display data of the target display area and the page to be displayed is rendered.

[0082] It should be noted that when assigning a value to the height attribute of the target display area, first determine whether there is a corresponding page display parameter in the page to be displayed. If so, render the page to be displayed. If not, render the page to be displayed. In order to be better applicable to each system and process the page to be displayed in each system based on this solution, the method for determining the page display parameter of the target display area can be encapsulated to obtain an npm toolkit, and then the npm toolkit can be introduced into each system so that when the technical solution needs to be used, the npm toolkit installed in the system can be directly called.

[0083] It can be understood that after calling the npm toolkit encapsulated in the present technical solution, you only need to input the identification information of the target element to obtain the position of the target element, and then determine the height information of the target display area according to the method of the present technical solution, and use the obtained height information as the page display parameter of the target display area, and then input the height attribute of the target component based on the page display parameter, render the page to be displayed, and obtain the page to be displayed.

[0084] The technical solution of this embodiment, when detecting the triggering of the page display control, determines the page layout package to be used corresponding to the page to be displayed, and the layout of the page to be displayed can be determined by the page layout parameters in the page layout package to be used. According to the page layout package to be used, the page display parameters in the page to be displayed are determined. The method for determining the page display parameters is encapsulated in the page layout package to be used, so that when the page to be displayed is opened, the page layout package to be used is called to determine the height information of each area in the page to be displayed. Based on the page display parameters, the page to be displayed is displayed to show the display page to the user. The problem that each area in the page is not compatible with the page to be displayed when the page display parameters of each area in the page are uncertain is solved, and each area in the page is fixed in the corresponding area, avoiding the phenomenon of each area scrolling when the page is slid.

[0085] Embodiment 4

[0086] Figure 4 A device for displaying a target page is provided in accordance with a fourth embodiment of the present invention. The device includes: a page layout package determination module 310, a page display parameter determination module 320, and a to-be-displayed page display module 330.

[0087] The page layout package determination module 310 is used to determine the page layout package to be used corresponding to the page to be displayed when a trigger page display control is detected;

[0088] A page display parameter determination module 320, configured to determine page display parameters in the page to be displayed according to the page layout package to be used;

[0089] A to-be-displayed page display module 330, configured to display the to-be-displayed page based on the page display parameters;

[0090] The page display parameters include height information of each display area in the page.

[0091] The technical solution of this embodiment, when detecting the triggering of the page display control, determines the page layout package to be used corresponding to the page to be displayed, and the layout of the page to be displayed can be determined by the page layout parameters in the page layout package to be used. According to the page layout package to be used, the page display parameters in the page to be displayed are determined. The method for determining the page display parameters is encapsulated in the page layout package to be used, so that when the page to be displayed is opened, the page layout package to be used is called to determine the height information of each area in the page to be displayed. Based on the page display parameters, the page to be displayed is displayed to show the display page to the user. The problem that each area in the page is not compatible with the page to be displayed when the page display parameters of each area in the page are uncertain is solved, and each area in the page is fixed in the corresponding area, avoiding the phenomenon of each area scrolling when the page is slid.

[0092] Based on any optional technical solution in the embodiments of the present invention, optionally, the page layout package determination module includes:

[0093] A page identifier determination submodule, used to determine a page identifier corresponding to the page display control when a triggering page display control is detected;

[0094] A page layout parameter determination submodule, used to determine the page layout parameters to be used of the page to be used corresponding to the page identifier according to a pre-established mapping relationship table;

[0095] The mapping relationship table includes page identifiers and corresponding page layout parameters.

[0096] Based on any optional technical solution in the embodiments of the present invention, optionally, the device for displaying the target page further includes:

[0097] The page layout package construction module is used to construct a to-be-used page layout package corresponding to each to-be-displayed page, so as to display the corresponding to-be-displayed page according to the to-be-displayed page layout package.

[0098] Based on any optional technical solution in the embodiments of the present invention, optionally, the page layout package construction module includes:

[0099] A target element insertion submodule, used for inserting a target element into the top display area of ​​the page to be displayed;

[0100] A first target function deployment submodule, used to deploy a first target function to determine the top height information from the target element to the top position of the page to be displayed based on the target function;

[0101] A second objective function deployment submodule, used to deploy a second objective function to obtain bottom height information of a bottom area in the page to be displayed;

[0102] A third objective function deployment submodule, used to deploy a third objective function for determining a target display area;

[0103] The page layout package to be used determining submodule is used to determine the page layout package to be used based on the first objective function, the second objective function and the third objective function.

[0104] Based on any optional technical solution in the embodiments of the present invention, optionally, the first objective function is used to determine the top height information from the target element to the top position;

[0105] The second objective function is used to obtain bottom height information of the bottom area of ​​the page to be displayed;

[0106] The third objective function is used to determine the third height information of the target display area according to the total height information, the bottom height information and the top height information of the page to be displayed in the display interface, so as to adjust the display of the target display area in the page to be displayed based on the third height information.

[0107] Based on any optional technical solution in the embodiments of the present invention, optionally, the page display parameter determination module includes:

[0108] A total height information determining unit, configured to determine the total height information of the target display area according to the page layout package to be used, and use the total height information as a height attribute of the target component;

[0109] The page display parameter determination unit is used to determine the page display parameter based on the height attribute.

[0110] Based on any optional technical solution in the embodiments of the present invention, optionally, the total height information determining unit is used to:

[0111] According to the height attribute, the acquired page display data is rendered to obtain the page to be displayed; wherein the height information of the target display area in the page to be displayed matches the height attribute.

[0112] The device for displaying a target page provided by the embodiment of the present invention can execute the method for displaying a target page provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0113] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0114] Embodiment 5

[0115] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary electronic device 40 suitable for implementing exemplary embodiments of the present invention is shown. Figure 5 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0116] like Figure 5 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0117] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0118] The electronic device 40 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 40, including volatile and non-volatile media, removable and non-removable media.

[0119] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 40 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0120] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0121] The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboards, pointing devices, displays 410, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 40, and / or may communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 411. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 412. As shown, the network adapter 412 communicates with other modules of the electronic device 40 via the bus 403. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0122] The processing unit 401 executes various functional applications and data processing by running the programs stored in the system memory 402, such as implementing the method for displaying a target page provided by the embodiment of the present invention.

[0123] Embodiment 6

[0124] Embodiment 6 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a method for displaying a target page when executed by a computer processor, the method comprising:

[0125] When a trigger page display control is detected, determining a page layout package to be used corresponding to the page to be displayed;

[0126] Determining page display parameters in the page to be displayed according to the page layout package to be used;

[0127] Based on the page display parameters, display the page to be displayed;

[0128] The page display parameters include height information of each display area in the page.

[0129] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0130] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0131] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0132] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for displaying a target page, It is characterized in that include: When a trigger page display control is detected, determining a page layout package to be used corresponding to the page to be displayed; Determining page display parameters in the page to be displayed according to the page layout package to be used; Based on the page display parameters, display the page to be displayed; Wherein, the page display parameters include height information of each display area in the page; The method further comprises: constructing a to-be-used page layout package corresponding to each to-be-displayed page, so as to display the corresponding to-be-displayed page according to the to-be-displayed page layout package; Wherein, the construction of the to-be-used page layout package corresponding to each to-be-displayed page includes: inserting a first target element in the top display area of ​​the to-be-displayed page; deploying a first target function to determine the top height information of the target element to the top position of the to-be-displayed page based on the target function; inserting a second target element in the bottom area of ​​the to-be-displayed page; deploying a second target function to obtain the bottom height information of the bottom area of ​​the to-be-displayed page based on the second target function and the second target element; deploying a third target function to determine the target display area; determining the to-be-used page layout package based on the first target function, the second target function and the third target function; wherein the first target element and the second target element are both empty block-level elements; Among them, the first objective function is used to determine the top height information from the target element to the top position; the second objective function is used to obtain the bottom height information of the bottom area in the page to be displayed; the third objective function is used to determine the third height information of the target display area according to the total height information, the bottom height information and the top height information of the page to be displayed in the display interface, so as to adjust the target display area to be displayed in the page to be displayed based on the third height information.

2. The method according to claim 1, It is characterized in that The step of determining a page layout package to be used corresponding to a page to be displayed when a triggering page display control is detected includes: When a triggering page display control is detected, determining a page identifier corresponding to the page display control; Determining, according to a pre-established mapping relationship table, a to-be-used page layout parameter of the to-be-used page corresponding to the page identifier; The mapping relationship table includes page identifiers and corresponding page layout parameters.

3. The method according to claim 1, It is characterized in that The step of determining the page display parameters of the page to be displayed according to the page layout package to be used includes: Determine the total height information of the target display area according to the page layout package to be used, and use the total height information as the height attribute of the target component; Based on the height attribute, a page display parameter is determined.

4. The method according to claim 3, It is characterized in that The step of displaying the page to be displayed based on the page display parameter includes: Rendering the acquired page display data according to the height attribute to obtain the page to be displayed; The height information of the target display area in the page to be displayed matches the height attribute.

5. A device for displaying a target page, It is characterized in that include: A page layout package determination module, used to determine a page layout package to be used corresponding to a page to be displayed when a trigger page display control is detected; A page display parameter determination module, used to determine the page display parameters of the page to be displayed according to the page layout package to be used; A to-be-displayed page display module, used for displaying the to-be-displayed page based on the page display parameters; Wherein, the page display parameters include height information of each display area in the page; The device for displaying the target page further comprises: a page layout package construction module, which is used to construct a to-be-used page layout package corresponding to each to-be-displayed page, so as to display the corresponding to-be-displayed page according to the to-be-used page layout package; Wherein, the page layout package construction module includes: a target element insertion submodule, which is used to insert a first target element in the top display area of ​​the page to be displayed; a first target function deployment submodule, which is used to deploy a first target function to determine the top height information of the target element to the top position of the page to be displayed based on the target function; a second target function deployment submodule, which is used to insert a second target element in the bottom area of ​​the page to be displayed; deploy a second target function to obtain the bottom height information of the bottom area of ​​the page to be displayed based on the second target function and the second target element; a third target function deployment submodule, which is used to deploy a third target function for determining the target display area; a page layout package determination submodule to be used, which is used to determine the page layout package to be used based on the first target function, the second target function and the third target function; wherein, the first target element and the second target element are both empty block-level elements; Among them, the first objective function is used to determine the top height information from the target element to the top position; the second objective function is used to obtain the bottom height information of the bottom area in the page to be displayed; the third objective function is used to determine the third height information of the target display area according to the total height information, the bottom height information and the top height information of the page to be displayed in the display interface, so as to adjust the target display area to be displayed in the page to be displayed based on the third height information.

6. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a storage device for storing 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 method for displaying a target page as described in any one of claims 1 to 4.

7. A storage medium containing computer executable instructions, It is characterized in that When the computer executable instructions are executed by a computer processor, they are used to execute the method for displaying a target page as claimed in any one of claims 1 to 4.