Page display method and device, electronic equipment and computer readable medium

By determining the objects to be adjusted and maintained, and adjusting the page according to the preset display information, the problems of complex and high cost of page adjustment in the prior art are solved, and efficient page display adjustment is achieved.

CN119149849APending Publication Date: 2024-12-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310720889.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The existing page adjustment technical solution is complex, resulting in high cost and poor adjustment effect, especially when some areas need to maintain original display information, the adjustment process is cumbersome.

Method used

By obtaining multiple objects on the target page, displaying constraints based on preset objects, determining the object to be adjusted and the object to be maintained, adjusting the page according to these objects and preset display information, ensuring that the display information of the object to be adjusted is consistent with the preset information. The display information of the object to be kept remains in its original state.

Benefits of technology

The page adjustment process is simplified, the adjustment cost is reduced, the page adjustment effect is improved, and efficient display adjustment of some areas of the page is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149849A_ABST
    Figure CN119149849A_ABST
Patent Text Reader

Abstract

The invention discloses a page display method and device, electronic equipment and a computer readable medium, and the method comprises the steps: after a plurality of objects corresponding to a target page are obtained, determining a to-be-adjusted object and a to-be-maintained object from the objects according to a preset object display constraint; and displaying a target page according to the to-be-adjusted object, the to-be-maintained object and the preset display information, so that the display information corresponding to the to-be-adjusted object in the target page in a display state is consistent with the preset display information. The display information corresponding to the to-be-kept object in the target page in the display state is made to be inconsistent with the preset display information, so that the purpose of adjusting and displaying a partial region in the target page according to the preset display information can be achieved, and the page adjustment requirement can be better met; and the page adjustment effect 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 Internet technology, and in particular to a page display method, device, electronic device, and computer-readable medium. Background Art

[0002] In some application scenarios, some information may be displayed with the help of a page so that a user can view the information with the help of the page.

[0003] In practice, pages are usually configured to a certain state to improve the user's page viewing experience; however, in some cases, the state of the page may need to be adjusted.

[0004] However, some related technical solutions for implementing page adjustment (eg, solutions such as manually adjusting configuration parameters) have defects, which affect the page adjustment effect. Summary of the invention

[0005] The present application provides a page display method, device, electronic device, and computer-readable medium, which are conducive to improving page adjustment effects.

[0006] In order to achieve the above objectives, the technical solutions provided by this application are as follows:

[0007] The present application provides a page display method, the method comprising:

[0008] Get multiple objects corresponding to the target page;

[0009] Determining an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint;

[0010] The target page is displayed according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted.

[0011] In a possible implementation manner, displaying the target page according to the object to be adjusted, the object to be maintained, and preset display information corresponding to the object to be adjusted includes:

[0012] If the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information, the display information corresponding to the object to be adjusted in the target page is adjusted according to the preset display information.

[0013] In a possible implementation manner, displaying the target page according to the object to be adjusted, the object to be maintained, and preset display information corresponding to the object to be adjusted includes:

[0014] If the display information corresponding to the object to be kept in the target page is consistent with the preset display information, the display information corresponding to the object to be kept in the target page is restored.

[0015] In a possible implementation manner, determining the object to be adjusted and the object to be maintained from the multiple objects according to the preset object display constraint includes:

[0016] According to the preset object display constraints and the object tree, objects to be adjusted and objects to be kept are determined from the multiple objects; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.

[0017] In one possible implementation, if the preset object display constraint includes a display maintenance mark of the first reference object among the multiple objects, the object to be maintained is determined based on the first reference object and the associated objects of the first reference object; the associated objects are determined based on the path in the object tree that includes the first reference object.

[0018] In a possible implementation manner, the objects to be kept include all objects in the path; and the objects to be adjusted include other objects in the object tree except the objects to be kept.

[0019] In a possible implementation manner, the plurality of objects include N objects, where N is a positive integer;

[0020] The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes:

[0021] Determine whether the preset object display constraint includes a display adjustment mark of an nth object or a display adjustment mark of at least one direct parent object of the nth object, and obtain a first determination result; n is a positive integer, n≤N; the direct parent object is determined according to a path including the nth object in the object tree;

[0022] According to the first judgment result, it is determined whether the nth object is an object to be retained.

[0023] In a possible implementation manner, determining whether the nth object is an object to be retained according to the first judgment result includes:

[0024] If the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object, then determining the nth object as the object to be kept;

[0025] If the first judgment result indicates that the preset object display constraint includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, then determining whether the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object, to obtain a second judgment result;

[0026] According to the second judgment result, it is determined whether the nth object is an object to be retained.

[0027] In a possible implementation manner, determining whether the nth object is an object to be retained according to the second judgment result includes:

[0028] If the second judgment result indicates that the preset object display constraint also includes a display keeping flag of the nth object or a display keeping flag of at least one direct parent object of the nth object, the nth object is determined as the object to be kept;

[0029] If the second judgment result indicates that the preset object display constraint does not include the display keeping mark of the nth object and the display keeping marks of all direct parent family objects of the nth object, it is judged whether there is a display keeping mark of a direct child family object of the nth object in the preset object display constraint to obtain a third judgment result; the direct child family object is determined according to the path including the nth object in the object tree;

[0030] According to the third judgment result, it is determined whether the nth object is an object to be retained.

[0031] In a possible implementation manner, determining whether the nth object is an object to be retained according to the third judgment result includes:

[0032] If the third judgment result indicates that there is a display keeping mark of at least one direct descendant family object of the nth object in the preset object display constraint, the nth object is determined as the object to be kept;

[0033] The method further comprises:

[0034] If the third judgment result indicates that the display keeping marks of all direct descendant family objects of the nth object do not exist in the preset object display constraint, the nth object is determined as the object to be adjusted.

[0035] In a possible implementation manner, the preset object display constraint includes a display keeping mark of a first reference object and a display adjusting mark of a second reference object among the multiple objects;

[0036] The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes:

[0037] According to the preset object display constraint and the object tree, an adjustment mark set, a retention mark set and a retention reference set are determined, wherein the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; and the retention reference set includes the first reference object and the direct parent family object of the first reference object;

[0038] According to the adjustment mark set, the retention mark set and the retention reference set, objects to be adjusted and objects to be retained are determined from the plurality of objects.

[0039] In a possible implementation manner, the plurality of objects include N objects, where N is a positive integer;

[0040] The step of determining the objects to be adjusted and the objects to be retained from the plurality of objects according to the adjustment mark set, the retention mark set and the retention reference set comprises:

[0041] Determine whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object to obtain a fourth determination result; n is a positive integer, n≤N;

[0042] According to the fourth judgment result, it is determined whether the nth object is an object to be retained.

[0043] In a possible implementation manner, determining whether the nth object is an object to be retained according to the fourth judgment result includes:

[0044] If the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct parent objects of the nth object, the nth object is determined as the object to be kept;

[0045] If the fourth judgment result indicates that the adjustment mark set includes the nth object or at least one direct parent object of the nth object, then determine whether the retention mark set includes the nth object or at least one direct parent object of the nth object to obtain a fifth judgment result;

[0046] According to the fifth judgment result, it is determined whether the nth object is an object to be retained.

[0047] In a possible implementation manner, determining whether the nth object is an object to be retained according to the fifth judgment result includes:

[0048] If the fifth judgment result indicates that the retention mark set includes the nth object or at least one direct parent object of the nth object, the nth object is determined as an object to be retained;

[0049] If the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, then judging whether the nth object belongs to the retention reference set, and obtaining a sixth judgment result;

[0050] According to the sixth judgment result, it is determined whether the nth object is an object to be retained.

[0051] In a possible implementation manner, determining whether the nth object is an object to be retained according to the sixth judgment result includes:

[0052] If the sixth judgment result indicates that the nth object belongs to the retained reference set, determining the nth object as an object to be retained;

[0053] The method further comprises:

[0054] If the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted.

[0055] In a possible implementation manner, the object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page, and the filter is determined according to the preset display information.

[0056] In a possible implementation manner, after displaying the target page according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted, the method further includes:

[0057] After detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the target page is restored.

[0058] In a possible implementation manner, the page display method is applied to a client.

[0059] In a possible implementation, the object is a view component or a view component area.

[0060] The present application provides a page display device, comprising:

[0061] An acquisition unit, used for acquiring multiple objects corresponding to a target page;

[0062] A determining unit, configured to determine an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint;

[0063] The display unit is used to display the target page according to the object to be adjusted, the object to be maintained and the preset display information corresponding to the object to be adjusted.

[0064] The present application provides an electronic device, the device comprising: a processor and a memory;

[0065] The memory is used to store instructions or computer programs;

[0066] The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the page display method provided in the present application.

[0067] The present application provides a computer-readable medium, in which instructions or computer programs are stored. When the instructions or computer programs are executed on a device, the device executes the page display method provided by the present application.

[0068] The present application provides a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program codes for executing the page display method provided by the present application.

[0069] Compared with the prior art, this application has at least the following advantages:

[0070] In the technical solution provided by the present application, for a target page requested by a user, after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page, first determine the objects to be adjusted and the objects to be maintained from these objects based on the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page that should be displayed according to the preset display information (for example, gray), and the objects to be maintained are used to represent the objects existing in the target page that should be displayed with the original display information; then, based on the objects to be adjusted, the objects to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the objects to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the objects to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the objects to be maintained in the target page in the display state is still the original display information), so that the purpose of adjusting and displaying a part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.

[0071] It can be seen that since the present application implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, this can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0073] Figure 1 A flow chart of a page display method provided in an embodiment of the present application;

[0074] Figure 2 A schematic diagram of a derivation process provided in an embodiment of the present application;

[0075] Figure 3 A schematic diagram of a different set provided for an embodiment of the present application;

[0076] Figure 4 A schematic diagram of a derivation process provided in an embodiment of the present application;

[0077] Figure 5 A schematic diagram of another derivation process provided in an embodiment of the present application;

[0078] Figure 6 A schematic diagram of the structure of a page display device provided in an embodiment of the present application;

[0079] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] After research, it was found that for some page adjustment schemes, for example, the page graying scheme, if you want to keep the specified area in the page in color while graying the page, you need to gray out the areas in the page that do not need to be kept in color separately, and the processing process is specifically as follows: for the image data in the page, the server needs to send the grayed-out image data; for the local resources of the terminal device, the corresponding gray version needs to be built into the terminal device, and so on.

[0081] The research also found that the page graying solution shown in the previous paragraph has the following shortcomings: because the page graying solution is relatively complex, the cost of the page graying solution (for example, development cost, etc.) is relatively high.

[0082] The study also found that for a page, if the color of a view component in the page is adjusted (for example, a color filter is added), the color of the entire display area of ​​the view component in the page will change. Based on this, the application can use the color adjustment processing for the view component to implement the color adjustment processing (for example, graying processing) for some areas of the page.

[0083] Based on the above findings, the present application also provides a page display method, which includes: after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, first determine the objects to be adjusted and the objects to be maintained from these objects according to the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page and should be displayed according to the preset display information (for example, gray), and the objects to be maintained are used to represent the objects existing in the target page and should be displayed with the original display information; then, according to the objects to be adjusted, the objects to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the objects to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the objects to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the objects to be maintained in the target page in the display state is still the original display information), so that the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.

[0084] It can be seen that since the present application implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, this can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.

[0085] In addition, the present application does not limit the execution subject of the page display method. For example, any implementation of the page display method provided in the embodiment of the present application can be applied to a device with data processing function such as a terminal device or a server. For another example, any implementation of the page display method provided in the embodiment of the present application can also be implemented by means of a data communication process between different devices (for example, a terminal device and a server, two terminal devices, or two servers). Among them, the terminal device can be a smart phone, a computer, a personal digital assistant (PDA) or a tablet computer, etc. The server can be a stand-alone server, a cluster server or a cloud server.

[0086] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0087] In order to better understand the technical solution provided by the present application, the page display method provided by the present application is described below with reference to some drawings. Figure 1 As shown, the page display method provided in the embodiment of the present application includes the following S1-S3. Figure 1 A flowchart of a page display method provided in an embodiment of the present application.

[0088] S1: Get multiple objects corresponding to the target page.

[0089] The target page refers to a page that needs to be displayed (eg, grayed out, etc.); and the present application does not limit the target page. For example, the target page may refer to any page requested by a user.

[0090] Based on the above content, it can be known that in a possible implementation, when the page display method provided by the present application is applied to a client, if the client receives a page display request triggered by a user, the target page mentioned above may refer to the page requested by the page display request. It should be noted that the present application does not limit the implementation of the page display request. For example, the page display request may at least carry the Uniform Resource Locator (URL) of the target page.

[0091] An object refers to an element that is required to be referenced when performing page display processing on the target page above; and this application does not limit the object. For example, the object may refer to a view component, which is a page construction element. For another example, the object may also refer to a view component area, which refers to the area occupied by a view component on the target page.

[0092] In addition, the present application does not limit the implementation method of the above "multiple objects". For example, in some application scenarios, when the object is implemented using a view component, the multiple objects of the target page may include all or part of the view components in the target page (for example, Figure 2 or Figure 3As another example, in some application scenarios, when the object is implemented using a view component area, the multiple objects of the target page may include all or part of the view component area in the target page.

[0093] In addition, the present application does not limit the implementation method of the above-mentioned "multiple objects" acquisition process. For example, it can be implemented by any existing or future method that can acquire multiple objects corresponding to a page.

[0094] For another example, when the page display method provided in the present application is applied to a client, the above-mentioned "multiple objects" can be provided by a server that can communicate data with the client.

[0095] For example, in some application scenarios, the acquisition process of the above "multiple objects" can be specifically as follows: after acquiring the object tree of the target page, all objects in the object tree are determined as the "multiple objects". Among them, the object tree of the target page is used to describe the parent-child relationship between different objects in the multiple objects corresponding to the target page; and the present application does not limit the implementation method of the object tree, for example, when the object is implemented using a view component, the object tree can be implemented using a view tree; the view tree is used to describe the view hierarchy of the target page, so that the view tree can represent the parent-child relationship between different view components in the target page; and the present application does not limit the view tree, for example, when the target page includes Figure 2 or Figure 3 When the view components 1 to 8 are shown, the view tree of the target page can be Figure 2 or Figure 3 As another example, when the object is implemented using a view component area, the object tree can be implemented using a tree structure constructed by multiple view component areas; the "tree structure constructed by multiple view component areas" is used to describe the parent-child relationship between different view component areas in the target page.

[0096] In addition, the present application does not limit the triggering time of S1 above, for example, S1 may specifically be: after receiving a page display request, obtain multiple objects of the target page requested by the page display request. The page display request is used to request the target page; and the present application does not limit the triggering method of the page display request, for example, it may be implemented by any existing or future method that can trigger a page display request for a page (for example, by clicking a page address link, etc.).

[0097] Based on the relevant content of S1 above, it can be known that for a client, after the client receives a page display request triggered for a target page, it obtains multiple objects of the target page (for example, view components or view component areas) so that it can subsequently complete the page display adjustment processing based on these objects, so that the adjusted page can finally be displayed to the user.

[0098] S2: Determine an object to be adjusted and an object to be maintained from a plurality of objects according to a preset object display constraint.

[0099] Among them, the preset object display constraint is used to constrain a certain state (for example, color distribution, texture distribution, or display shape corresponding to some objects, etc.) presented when the above target page is displayed, so that the preset object display constraint can indicate which areas of the target page need to be adjusted for display (for example, adjusted to the target color for display), and which areas of the target page need to be kept in the original state (for example, keep the original color) for display. The target color refers to the color required for color adjustment processing for a page; the target color can be determined in advance according to the application scenario; and the present application does not limit the target color, for example, the target color can be gray. It should be noted that the "original color" in this application refers to the color described by the color attribute of an object.

[0100] In addition, the above preset object display constraints can be set in advance according to the actual application scenario, so that the preset object display constraints can better represent the page display adjustment requirements in the actual application scenario (for example, color adjustment requirements, texture adjustment requirements or object display shape adjustment requirements, etc.).

[0101] In addition, the present application does not limit the method for obtaining the above preset object display constraints. For example, it can be implemented by manual labeling.

[0102] In addition, the present application does not limit the implementation method of the preset object display constraint above. For example, in some application scenarios, the preset object display constraint may include a display constraint mark of the marked object in the above "multiple objects" (for example, a display color constraint mark, a texture constraint mark, or a display shape constraint mark, etc.). The marked object refers to an object that exists in the above target page and has been pre-added with a certain display constraint mark (for example, Figure 2 or Figure 3The view component 1 and the view component 5 shown in the figure); and the marked object can be pre-specified by the user according to the actual application scenario. The display constraint mark refers to the data (such as a string, an image, etc.) pre-marked for the marked object and used to constrain the display information corresponding to the marked object; the display information corresponding to the marked object is used to describe the display state of the marked object on the target page.

[0103] In addition, the present application does not limit the implementation method of the above display constraint mark. For example, in some application scenarios (for example, page color adjustment scenarios similar to graying scenarios), the display constraint mark can be implemented using a display color constraint mark, and the display color constraint mark refers to the data (for example, a string, an image, etc.) pre-marked for the marked object and used to constrain the display color corresponding to the marked object. For another example, in some application scenarios (for example, a page texture adjustment scenario), the display constraint mark can be implemented using a display texture constraint mark, and the display texture constraint mark refers to the data (for example, a certain pattern texture, a certain shadow texture, etc.) pre-marked for the marked object and used to constrain the display texture corresponding to the marked object. For another example, in other application scenarios (for example, an object display shape adjustment scenario), the display constraint mark can be implemented using a display shape constraint mark, and the display shape constraint mark refers to the data (for example, a string, an image, etc.) pre-marked for the marked object and used to constrain the display shape corresponding to the marked object.

[0104] In addition, the present application does not limit the above display constraint mark. For example, the display constraint mark may include a display adjustment mark (for example, Figure 2 or Figure 3 The color adjustment mark "needs to be grayed out" shown) and / or the display maintenance mark (for example, Figure 2 or Figure 3 The display adjustment mark is used to mark an object that may need display adjustment processing (for example, color adjustment processing, texture adjustment processing, or shape adjustment processing, etc.); the display retention mark is used to mark an object that cannot be displayed.

[0105] The object to be adjusted refers to an object existing in the target page above that needs to be displayed according to preset display information (for example, target color, target texture or target shape). Figure 2The view components 3, 4 and 6 shown in the figure). Among them, the preset display information refers to the information required to be used as a basis when adjusting the display of an object in a page; and the present application does not limit the preset display information. For example, in some application scenarios (for example, page color adjustment scenarios similar to graying scenarios), the preset display information can be a target color (for example, gray). For another example, in some application scenarios (for example, page texture adjustment scenarios), the preset display information can be a target texture (for example, a certain pattern texture, a certain shadow texture, etc.). Among them, the target texture refers to the texture required to be used as a basis when adjusting the display texture of a page; the target texture can be determined in advance according to the application scenario; and the present application does not limit the target texture. For example, the target texture can be a certain pattern texture, a certain shadow texture, etc. For another example, in other application scenarios (for example, object display shape adjustment scenarios), the display constraint mark can be implemented using a display shape constraint mark, and the preset display information can be a target shape (for example, a lantern shape, a tree shape, etc.). Among them, the target shape refers to the shape required to be used as the basis for adjusting the display shape of a page; the target shape can be determined in advance based on the application scenario; and this application does not limit the target shape, for example, the target shape can be a lantern shape or a tree shape, etc.

[0106] The objects to be retained refer to the objects existing in the target page above that need to be displayed according to the original display information (for example, Figure 2 The original display information refers to the display information pre-configured for an object (eg, the display information described by the configuration attributes of the object).

[0107] In addition, the present application does not limit the implementation method of S2 above. For example, when the above preset object display constraints include display adjustment marks for some objects and display retention marks for some objects, the S2 can specifically be: each object with a display adjustment mark is determined as an object to be adjusted, and each object with a display retention mark is determined as an object to be retained.

[0108] Through research, it is found that for a page, if a certain view component in the page is adjusted to the target color (target texture or target shape), then the display area where the view component is located in the page is displayed according to the target color (target texture or target shape), so that the display area of ​​the child component of the view component will also be adjusted to the target color (target texture or target shape) accordingly. It can be seen that for view components with a parent-child relationship, the color adjustment processing (display texture adjustment processing or display shape adjustment processing) of the parent component will affect the color adjustment processing (display texture adjustment processing or display shape adjustment processing) of the child component. Therefore, for any view component, the decision of whether the view component needs to be color adjusted (display texture adjustment processing or display shape adjustment processing) can be jointly determined by the parent component and the child component of the view component.

[0109] Based on the findings in the above paragraph, it can be known that in order to better save costs, the number of marked objects involved in the above preset object display constraints can be much less than the number of objects in the above "multiple objects". It can be seen that in a possible implementation, the above preset object display constraints can only include display constraint marks of a small number of marked objects, so that it can be used to deduce whether each object in the target page needs to be adjusted for display by using the display constraint marks of these marked objects and the parent-child relationship between different objects in the above target page. This can effectively save marking costs, thereby helping to reduce page display adjustment costs.

[0110] Based on the above content, the present application also provides a possible implementation of S2 above, which can be specifically: according to the preset object display constraints and the object tree, determine the objects to be adjusted and the objects to be kept from the multiple objects corresponding to the target page above. The object tree is used to describe the parent-child relationship between different objects in the multiple objects; and the relevant content of the object tree can be found above.

[0111] In addition, the present application is not limited to the implementation method of the above step "determining the objects to be adjusted and the objects to be retained from the multiple objects corresponding to the above target page based on the preset object display constraints and the object tree", for example, it may at least include: if the preset object display constraints include a display retention mark of the first reference object, the object to be retained can be determined based on the first reference object and the associated objects of the first reference object (for example, the first reference object and each associated object of the first reference object are determined as the object to be retained). The first reference object refers to an object existing in the above target page and to which the display retention mark is added (for example, Figure 2 or Figure 3The view component 5 shown in the figure); and the present application does not limit the number of the first reference object. The associated object of the first reference object refers to the object affected by the first reference object in terms of display adjustment; and the associated object of the first reference object can be determined based on the path including the first reference object in the object tree above, so that the associated object of the first reference object includes all other objects in the path except the first reference object. For ease of understanding, the following is combined with Figure 2 Provide explanation.

[0112] As an example, suppose the target page above includes Figure 2 The view components 1 to 8 shown in the figure, the above objects are implemented by view components, the above preset display information is implemented by gray, and the above display retention mark is implemented by Figure 2 Based on this assumption, it can be seen that if Figure 2 As shown, if a non-grayable mark is added to view component 5 in advance, the view component 5 should keep the original color; because view component 2 is the parent component of view component 5, it is affected by view component 5 and the view component 2 should also keep the original color; because view component 1 is the parent component of view component 2, it is affected by view component 2 and the view component 1 should also keep the original color; because view component 7 and view component 8 are both child components of view component 5, they are affected by view component 5 and the view components 7 and 8 should also keep the original color. Based on this, it can be seen that although only the non-grayable mark is added to view component 5, it can be deduced with the help of the object tree that view component 1, view component 2, view component 5, view component 7 and view component 8 should all keep the original color (that is, no graying process is performed).

[0113] It should be noted that the "path" involved in this application refers to a path existing in the object tree. For example, Figure 2 For the tree structure shown, the path including view component 5 may include at least the path of "view component 1→view component 2→view component 5→view component 7", and the path of "view component 1→view component 2→view component 5→view component 8", etc.

[0114] Based on the above two paragraphs, it can be known that for any object in the above "multiple objects", if the object is added with a display keep mark or any associated object of the object is added with a display keep mark, it can be determined that the object should be displayed in the original color, so the object can be regarded as an object to be maintained to ensure that the object is not adjusted to the target color, target texture or target shape during the page display adjustment process.

[0115] Based on the content of the previous paragraph, it can be known that in one possible implementation mode, for multiple objects corresponding to the above target page, if the above preset object display constraints include a display retention mark for the first reference object among the multiple objects, then the path including the first reference object can be first determined from the object tree of the target page; then all objects in the path are determined as objects to be retained, so that the objects to be retained can include all objects in the path; then, all other objects in the object tree except these objects to be retained are determined as objects to be adjusted.

[0116] Based on the above content, the present application also provides a possible implementation of S2 above. Under this implementation, when the "multiple objects" above include N objects (for example, there are N objects in the target page above), S2 can specifically include the following steps 11-12.

[0117] Step 11: Determine whether the above preset object display constraints include the display adjustment mark of the nth object or the display adjustment mark of at least one direct parent object of the nth object, and obtain a first judgment result; n is a positive integer, n≤N; the direct parent object is determined based on the path including the nth object in the above object tree.

[0118] The direct parent object of the nth object refers to the object that exists in the target page above and is in the direct line of the nth object and has a higher generation than the nth object (for example, the father object, the grandfather object, the great-grandfather object, etc.). For example, when the nth object is Figure 2 When the view component 5 is shown, Figure 2 The view component 2 shown is the parent component of the view component 5, and Figure 2 The view component 1 shown is the grandparent component of the view component 5, so the view component 2 and the view component 1 are both direct parent objects of the nth object.

[0119] In addition, for the nth object above (for example, Figure 2 For example, for the view component 5 shown in FIG. 1 , all direct ancestors of the nth object can be determined based on the path including the nth object in the object tree, so that all direct ancestors of the nth object include all objects with a higher generation than the nth object in each path (for example, Figure 2 The view component 1 and the view component 2 shown are both view components that are higher in seniority than the view component 5).

[0120] The first judgment result is used to indicate whether the above preset object display constraint includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object.

[0121] Step 12: According to the first judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0122] It should be noted that the present application does not limit the implementation method of step 12. For example, it may specifically include the following steps 121 to 123.

[0123] Step 121: If the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object, the nth object is determined as the object to be retained.

[0124] Based on the relevant content of step 121 above, it can be known that for any object in the above target page, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the above preset object display constraints do not include the display adjustment mark of the object, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be maintained; however, if the direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then only when it is determined that the above preset object display constraints do not include the display adjustment mark of the object and the display adjustment marks of all direct parent objects of the object, can it be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be maintained.

[0125] Step 122: If the first judgment result above indicates that the preset object display constraint above includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, then determine whether the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object to obtain a second judgment result. Where n is a positive integer, n≤N.

[0126] The second judgment result is used to indicate whether the above preset object display constraint also includes a display keeping mark of the nth object or a display keeping mark of at least one direct parent object of the nth object.

[0127] Step 123: According to the second judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0128] It should be noted that the present application does not limit the implementation method of step 123. For example, it may specifically include the following steps 1231 to 1233.

[0129] Step 1231: If the second judgment result indicates that the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object, the nth object is determined as an object to be retained, where n is a positive integer, n≤N.

[0130] In the present application, for any object in the above target page, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the above preset object display constraint includes the display adjustment mark of the object, it can be determined that it is possible to adjust the display information corresponding to the object according to the preset display information, so for further confirmation, it can be further determined whether the preset object display constraint also includes the display retention mark of the nth object, so that when it is determined that the preset object display constraint also includes the display retention mark of the nth object, it can be determined that it is not necessary to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained;

[0131] However, if a direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the above preset object display constraints include the display adjustment mark of the object or the display adjustment mark of at least one direct parent object of the object, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the preset object display constraints also include the display keep mark of the object or the display keep mark of at least one direct parent object of the object, so that when it is determined that the preset object display constraints also include the display keep mark of the object or the display keep mark of at least one direct parent object of the object, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be maintained.

[0132] Step 1232: If the second judgment result above indicates that the preset object display constraint does not include the display retention mark of the nth object and the display retention marks of all direct parent family objects of the nth object, then determine whether there is a display retention mark of the direct child family object of the nth object in the preset object display constraint, and obtain a third judgment result; the direct child family object is determined based on the path including the nth object in the object tree above. Where n is a positive integer, n≤N.

[0133] The direct descendant object of the nth object refers to the object that exists in the target page above and is in the direct line and has a lower generation than the nth object (for example, a child object, a grandchild object, a great-grandchild object, etc.). For example, when the nth object is Figure 2 When the view component 5 is shown, Figure 2 The view component 7 and the view component 8 shown are both subcomponents of the view component 5, so the view component 7 and the view component 8 are both direct subfamily objects of the nth object.

[0134] In addition, for the nth object above (for example, Figure 2 For the view component 5 shown, all direct descendant objects of the nth object can be determined based on the path including the nth object in the object tree, so that all direct descendant objects of the nth object include all objects with a lower generation than the nth object in each path.

[0135] The third judgment result is used to indicate whether there is a display keeping mark for the direct descendant family object of the nth object in the above preset object display constraint.

[0136] Step 1233: According to the third judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0137] It should be noted that the present application does not limit the use process of the third judgment result above. For example, it may specifically include the following steps 12331-12332.

[0138] Step 12331: If the third judgment result above indicates that there is a display retention mark of at least one direct descendant family object of the nth object in the preset object display constraint above, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.

[0139] Step 12332: If the third judgment result above indicates that the display keeping mark of all direct descendants of the nth object does not exist in the preset object display constraint, the nth object is determined as the object to be adjusted, where n is a positive integer, n≤N.

[0140] Based on the relevant contents of step 1232 and step 1233 above, it can be known that for any object in the target page above, if the direct parent family object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the preset object display constraint above includes the display adjustment mark of the object, and it is determined that the preset object display constraint does not include the display retention mark of the object, it can be determined that it is possible to adjust the display information corresponding to the object according to the preset display information. Therefore, in order to further confirm, it can be further determined whether there is a display retention mark of the direct child family object of the object in the preset object display constraint. If there are display retention marks of one or more direct child family objects, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as the object to be retained. If there are no display retention marks of all direct child family objects, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted.

[0141] However, if a direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then upon determining that the above-mentioned preset object display constraints include the display adjustment mark of the object or the display adjustment mark of at least one direct parent object of the object, and determining that the preset object display constraints do not include the display retention mark of the object and the display retention marks of all direct parent objects of the object, if the direct child object of the object does not exist in the object tree of the target page (that is, the object is a leaf node in the object tree), it can be directly determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted; however, if the above-mentioned preset object display constraints include the display adjustment mark of the object or the display adjustment mark of at least one direct parent object of the object, and the preset object display constraints do not include the display retention mark of the object and the display retention marks of all direct parent objects of the object, then If it is a direct descendant object of the object (that is, the object is neither a leaf node nor a root node in the object tree), it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be determined whether there is a display keep mark for the direct descendant object of the object in the preset object display constraint. If there are display keep marks for one or more direct descendant objects, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information. Therefore, the object can be determined as an object to be maintained. If there are no display keep marks for all direct descendant objects, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information. Therefore, the object can be determined as an object to be adjusted.

[0142] Based on the relevant contents of steps 11 to 12 above, it can be known that for any object in the target page, it can be deduced whether the display information corresponding to the object needs to be adjusted according to the preset display information based on the preset object display constraints and the associated objects of the object (for example, Figure 4 The derivation process shown in FIG. 1 is performed, and based on the derivation result, it is determined that the object belongs to an object to be maintained or an object to be adjusted.

[0143] Through research, it is found that for the derivation process shown in steps 11 and 12 above, since the derivation process involves the search and judgment process of direct descendant family objects, and an object often has many direct descendant family objects, the derivation process may take a long time.

[0144] In order to better reduce the time consumption of derivation, the present application also provides another possible implementation of S2 above. In this implementation, when the above preset object display constraints include a display maintenance mark of the first reference object and a display adjustment mark of the second reference object, S2 can specifically include the following steps 21-22.

[0145] Step 21: Based on the above preset object display constraints and the above object tree, determine the adjustment mark set, the retention mark set and the retention reference set, the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; the retention reference set includes the first reference object and the direct parent object of the first reference object.

[0146] The adjustment mark set is used to record the objects to which the display adjustment mark is pre-added. It can be seen that when the above preset object display constraint includes the display adjustment mark of the second reference object, the adjustment mark set can include the second reference object (for example, Figure 2 or Figure 3 The view component 1 shown in the figure) wherein the second reference object refers to an object existing in the target page above and to which the display adjustment mark is added; and the present application does not limit the number of the second reference objects.

[0147] The hold mark set is used to record objects that have been pre-added with a display hold mark. It can be seen that when the above preset object display constraint includes a display hold mark of a first reference object, the hold mark set can include the first reference object (for example, Figure 2 or Figure 3 The view component 5 shown in the figure). For the relevant content of the first reference object, please refer to the above.

[0148] The retention reference set is used to record objects and their direct parent objects that have been pre-added with display retention marks. It can be seen that when the above preset object display constraints include the display retention mark of the first reference object, the retention reference set can include the first reference object and all the direct parent objects of the first reference object. Among them, the direct parent object is determined based on the path including the first reference object in the above object tree. It should be noted that the determination process of the direct parent object of the first reference object is similar to the determination process of the "direct parent object of the nth object" above.

[0149] Based on the relevant content of step 21 above, it can be known that after obtaining multiple objects of the target page above (for example, Figure 3 After the view components 1-8 shown in the figure, the object tree of the target page can be displayed according to the preset object display constraints (for example, Figure 3 ), constructing a set of adjustment tags (e.g., Figure 3 Listing 1), keep the tag set (for example, Figure 3 Listing 2) and maintain reference sets (e.g., Figure 3 3), so that the adjustment mark set is used to record all objects with display adjustment marks (for example, Figure 3 The view component 1 shown in FIG. 1 is used to record all objects with display hold marks (eg, Figure 3 The view component 5 shown in the figure also makes the retention reference set used to record all objects with display retention marks and their direct parent family objects (for example, Figure 3 The view component 5 shown, the parent component of the view component 5 - the view component 2, and the grandparent component of the view component 5 - the view component 1), so that these three sets can be referred to later to deduce which objects in the target page need to have their display information adjusted according to the preset display information and which objects do not need to have their display information adjusted according to the preset display information.

[0150] Step 22: According to the previous text adjustment mark set, the previous text retention mark set and the previous text retention reference set, determine the objects to be adjusted and the objects to be retained from the multiple objects corresponding to the previous text target page.

[0151] It should be noted that the present application does not limit the implementation method of step 22. For the sake of convenience, an example is provided below for explanation.

[0152] As an example, when the above “multiple objects of the target page” includes N objects, step 22 may specifically include the following steps 221 - 222 .

[0153] Step 221: Determine whether the above adjustment mark set includes the nth object or at least one direct parent object of the nth object, and obtain a fourth determination result. Where n is a positive integer, n≤N.

[0154] The fourth judgment result is used to indicate whether the above adjustment mark set includes the nth object or at least one direct parent object of the nth object.

[0155] Step 222: According to the fourth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0156] It should be noted that the present application does not limit the implementation method of the above step 222. For example, it may specifically include the following steps 2221 to 2223.

[0157] Step 2221: If the fourth judgment result above indicates that the above adjustment mark set does not include the nth object and all direct parent objects of the nth object, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.

[0158] In the present application, for any object in the target page above, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the nth object does not belong to the adjustment mark set above, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be maintained; however, if the direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then only when it is determined that the object and all the direct parent objects of the object do not belong to the adjustment mark set, can it be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be maintained.

[0159] Step 2222: if the fourth judgment result above indicates that the adjustment tag set above includes the nth object or at least one direct parent object of the nth object, then it is determined whether the retention tag set above includes the nth object or at least one direct parent object of the nth object to obtain a fifth judgment result, where n is a positive integer, n≤N.

[0160] The fifth judgment result is used to indicate whether the above retention mark set includes the nth object or at least one direct parent object of the nth object.

[0161] Step 2223: According to the fifth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0162] It should be noted that the present application does not limit the implementation method of the above step 222. For example, it may specifically include the following steps 22231 to 22233.

[0163] Step 22231: If the fifth judgment result indicates that the above retention mark set includes the nth object or at least one direct parent object of the nth object, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.

[0164] In the present application, for any object in the above target page, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the object belongs to the above adjustment mark set, it can be determined that it is possible to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be further determined whether the object belongs to the above retention mark set, so that when it is determined that the object belongs to the retention mark set, it can be determined that it is not necessary to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained;

[0165] However, if a direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set or at least one direct parent object of the object belongs to the adjustment mark set, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the object or at least one direct parent object of the object belongs to the above-mentioned retention mark set, so that when it is determined that the object belongs to the retention mark set or at least one direct parent object of the object belongs to the retention mark set, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained.

[0166] Step 22232: If the fifth judgment result above indicates that the above retention mark set does not include the nth object and all direct parent objects of the nth object, then determine whether the nth object belongs to the retention reference set to obtain a sixth judgment result. Where n is a positive integer, n≤N.

[0167] The sixth judgment result is used to indicate whether the nth object above belongs to the retained reference set.

[0168] Step 22233: According to the sixth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer, n≤N.

[0169] It should be noted that the present application does not limit the use process of the sixth judgment result above. For example, it may specifically include the following steps 222331-222332.

[0170] Step 222331: If the sixth judgment result above indicates that the nth object belongs to the retained reference set, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.

[0171] Step 222332: If the sixth judgment result above indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted, where n is a positive integer, n≤N.

[0172] Based on the relevant contents of steps 22232 to 22233 above, it can be known that for any object in the target page above, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set above, and when it is determined that the object does not belong to the retention mark set above, it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be determined whether the object belongs to the retention reference set. If the object belongs to the retention reference set, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information. Therefore, the object can be determined as an object to be retained. If the object does not belong to the retention reference set, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information. Therefore, the object can be determined as an object to be adjusted.

[0173] However, if the object tree of the target page contains a direct parent object of the object (that is, the object is not the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set or at least one direct parent object of the object belongs to the adjustment mark set, and when it is determined that the object and all direct parent objects of the nth object do not belong to the above-mentioned retention mark set, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the object belongs to the retention reference set. If the object belongs to the retention reference set, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information. Therefore, the object can be determined as an object to be retained. If the object does not belong to the retention reference set, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information. Therefore, the object can be determined as an object to be adjusted.

[0174] Based on the above steps 221 to 222, it can be seen that for multiple objects on the target page, first, the preset object display constraints and the object tree of the target page (for example, Figure 3 ), build adjustment tag sets (for example, Figure 3 Listing 1), keep the tag set (for example, Figure 3 Listing 2) and maintain reference sets (e.g., Figure 3 3); then, for any object in the target page, the adjustment mark set, the retention mark set and the retention reference set can be used to deduce whether the display information corresponding to the object needs to be adjusted according to the preset display information (for example, Figure 5 The derivation process shown in FIG. 1 is performed, and based on the derivation result, it is determined that the object belongs to an object to be maintained or an object to be adjusted. It can be seen that since there is no need to use direct subfamily objects in this derivation method, this derivation method can effectively overcome the time-consuming problem caused by executing the search and judgment process of direct subfamily objects, which can effectively reduce the derivation time, thereby facilitating the improvement of derivation efficiency, and further facilitating the improvement of page display adjustment efficiency.

[0175] Based on the relevant content of S2 above, it can be known that after obtaining multiple objects of the target page above (for example, Figure 2 After the view components 1 to 8 are displayed, the objects to be adjusted and the objects to be kept can be determined from these objects according to the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page that should be adjusted and displayed according to the preset display information (for example, Figure 2 The view components 3, 4, and 6 shown in the figure are used to represent objects (for example, Figure 2 The view components 1, 2, 5, 7 and 8 shown in the figure are used to adjust the page display of the target page based on the object to be adjusted and the object to be maintained.

[0176] S3: Displaying a target page according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted.

[0177] Among them, for the target page in the display state, the display information corresponding to the object to be adjusted in the target page is consistent with the above preset display information, and the display information corresponding to the object to be maintained in the target page is inconsistent with the above preset display information (that is, the display information corresponding to the object to be maintained is still the original display information corresponding to the object to be maintained). For example, when the object is implemented using a view component, and the preset display information is implemented using a target color, the color in the display area of ​​the object to be adjusted in the target page is adjusted to the target color, and the color in the display area of ​​the object to be maintained in the target page remains the original color.

[0178] In addition, the present application does not limit the implementation method of the target page in the display state above. For example, when the object to be adjusted above includes a view component area, a filter (such as a gray filter, etc.) is covered on the view component area on the target page in the display state. The filter is determined according to the preset display information so that the display information presented by the area with the filter added is consistent with the preset display information. For another example, when the object to be adjusted above includes a view component, a filter is covered on the display area of ​​the view component on the target page in the display state.

[0179] In addition, the present application does not limit the implementation method of S3 above. For ease of understanding, some examples are provided below for illustration.

[0180] Example 1. In some cases (for example, the color / texture / shape of each object in the target page has never been adjusted), if the display information corresponding to each object in the above target page is the corresponding original display information, then S3 above can be specifically: according to the above preset display information, the display information corresponding to the object to be adjusted in the target page is adjusted, so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the preset display information, and the display information corresponding to other objects in the target page except the object to be adjusted (that is, the object to be maintained above) is inconsistent with the preset display information (that is, based on maintaining its corresponding original display information). Among them, the adjustment process is used to adjust the display information corresponding to an object from the original display information of the object to the preset display information; and the present application does not limit the adjustment process, for example, it can be set according to the actual application scenario. For example, in some application scenarios, the adjustment process can be performed by adding a filter corresponding to the preset display information (for example, Figure 4 as well as Figure 5 This can be implemented using the "Add Gray Filter" method shown in the figure.

[0181] Example 2, in some cases (for example, the color / texture / shape of each object in the target page has been adjusted), if the display information corresponding to each object in the target page above has been adjusted to the preset display information, then S3 above can be specifically: restore the object to be retained in the target page, so that the display information corresponding to the object to be retained in the processed target page is restored from the preset display information to the original display information of the object to be retained, and the display information corresponding to other objects (for example, the object to be adjusted) in the target page except the object to be retained is still the preset display information. Among them, the restoration process refers to the reverse process of the above adjustment process, so that the restoration process can be used to restore the display information corresponding to an object from the preset display information to the original display information of the object; and the present application does not limit the restoration process, for example, it can be set according to the actual application scenario. For example, in some application scenarios, if the above adjustment process is implemented by adding a filter corresponding to the preset display information, then the restoration process can be implemented by removing the filter corresponding to the preset display information.

[0182] Example 3. In some cases (for example, there is one or more objects to be maintained in the target page whose color / texture / shape has been adjusted, and there is also one or more objects to be adjusted in the target page whose color / texture / shape has not been adjusted), if the display information corresponding to the object to be adjusted in the above target page is inconsistent with the above preset display information, and the display information corresponding to the object to be maintained in the target page is consistent with the preset display information, then S3 may specifically include: adjusting the display information corresponding to the object to be adjusted in the target page according to the preset display information, and restoring the display information corresponding to the object to be maintained in the target page, so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the preset display information, and the display information corresponding to the object to be maintained in the target page is restored to the original display information of the object to be maintained (for example, original color, etc.).

[0183] Example 4. In some cases (for example, the color / texture / shape of each object to be adjusted in the target page has been adjusted, and the color / texture / shape of each object to be maintained in the target page has not been adjusted), if the display information corresponding to the object to be adjusted in the above target page is consistent with the above preset display information, and the display information corresponding to the object to be maintained in the target page is inconsistent with the preset display information (that is, the display information corresponding to the object to be maintained is the original display information of the object to be maintained), then the above S3 can be specifically: no processing is required for the target page, and it can be displayed directly, so that the display information corresponding to the object to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the object to be maintained in the target page is restored to the original display information of the object to be maintained (for example, the original color, etc.).

[0184] Based on the relevant contents of the above four examples, it can be known that, for the above target page, if the display information corresponding to the object to be adjusted in the target page still maintains the original display information of the object to be adjusted, the display information corresponding to the object to be adjusted can be adjusted according to the above preset display information (for example, adding a filter corresponding to the preset display information, etc.); however, if the corresponding display information of all objects to be adjusted in the target page has been adjusted to the preset display information, there is no need to perform any processing on all objects to be adjusted in the target page; similarly, if the display information corresponding to all objects to be maintained in the target page still maintains its corresponding original display information, There is no need to perform any processing on all the objects to be kept in the target page; however, if the display information corresponding to the objects to be kept in the target page is adjusted to the preset display information, the objects to be kept can be restored (for example, the filters corresponding to the preset display information are removed). In this way, the display processing process for the target page can be implemented, so that the display information corresponding to all the objects to be adjusted in the target page that is finally displayed is consistent with the preset display information, and the display information corresponding to all the objects to be kept in the target page that is finally displayed is the corresponding original display information, so that the target page meets the page display adjustment requirements in the current application scenario.

[0185] Based on the relevant contents of S1 to S3 above, it can be known that for the page display method provided in the embodiment of the present application, after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, first determine the objects to be adjusted and the objects to be maintained from these objects based on the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page and should be displayed according to the preset display information (for example, gray), and the objects to be maintained are used to represent the objects existing in the target page and should be displayed with the original display information; then, based on the objects to be adjusted, the objects to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the objects to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the objects to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the objects to be maintained in the target page in the display state is still the original display information), so that the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.

[0186] It can be seen that since the present application implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, this can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.

[0187] In fact, for a page, the view hierarchy structure of the page may change, resulting in the object tree of the page being not static. For example, sometimes new objects may be added to the object tree (for example, adding new view components), sometimes some existing objects may be deleted from the object tree, and sometimes the relationship between some existing objects in the object tree may be adjusted.

[0188] Based on the above content, in order to effectively avoid problems caused by changes in the view hierarchy structure of a page, the present application also provides a possible implementation of the above page display method. In this implementation, the page display method may include the following steps 41-44.

[0189] Step 41: Get multiple objects of the target page.

[0190] It should be noted that the relevant content of step 41 can be found in S1 above, and for the sake of brevity, it will not be repeated here.

[0191] Step 42: According to the preset object display constraint, determine the objects to be adjusted and the objects to be kept from the multiple objects on the above target page.

[0192] It should be noted that the relevant content of step 42 can be found in S2 above, and for the sake of brevity, it will not be repeated here.

[0193] Step 43: Display the target page according to the previous object to be adjusted, the previous object to be retained, and the preset display information corresponding to the object to be adjusted.

[0194] It should be noted that the relevant content of step 43 can be found in S3 above, and for the sake of brevity, it will not be repeated here.

[0195] Step 44: If it is detected that the object tree of the target page has changed, then based on the target page with the updated object tree, the above step 41 and subsequent steps are re-executed.

[0196] Based on the relevant contents of steps 41 to 44 above, it can be known that in some application scenarios, the display information adjustment logic provided by the present application (for example, the logic shown in S1-S3 above and the logic shown in steps 41-43) can be bound to the view hierarchy structure of the page (for example, the object tree), so that when a change in the view hierarchy structure of the page is detected (for example, a change in the object tree), the display information adjustment logic is automatically triggered for the page after the view hierarchy structure changes. This can effectively ensure that the page display adjustment requirements set for the page (for example, the preset object display constraints above) are in effect during the entire available period of the page, thereby effectively avoiding defects caused by changes in the view hierarchy structure of the page, and further effectively improving the page display adjustment effect.

[0197] In fact, for a page, the display information presented by the page in different scenarios is different, so in order to better improve the page display effect, the present application also provides a possible implementation of the above page display method, in which the page display method also includes the following step 51. The execution time of step 51 is later than the execution time of S3 above or the execution time of step 43 above.

[0198] Step 51: after detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the above target page is restored.

[0199] Among them, the page display scene changes to indicate that the page display scene corresponding to the target page above changes from the first scene to the second scene. The first scene refers to a scene where the page needs to be displayed according to the preset object display constraints and the preset display information above (for example, a grayed-out page scene, etc.). The second scene refers to a scene where the page does not need to be displayed according to the preset object display constraints and the preset display information above (for example, a normal page display scene, etc.).

[0200] Based on the relevant content of step 51 above, it can be known that for the target page above, when the display information corresponding to the object to be adjusted in the target page is consistent with the preset display information, if it is detected that the page display scene has changed, it can be determined that the display information corresponding to the object to be adjusted needs to be displayed according to its original display information, so the display information corresponding to the object to be adjusted in the target page can be directly restored, so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the original display information of the object to be adjusted, which can meet the page restoration requirements and is conducive to improving the flexibility of page display.

[0201] In addition, for the page display method provided in the embodiment of the present application, in order to better improve the page display efficiency, the page display method can be applied to the client, which can effectively avoid the time consumption caused by data transmission between different devices (for example, server + client), thereby helping to improve the page display efficiency.

[0202] Based on the page display method provided in the embodiment of the present application, the embodiment of the present application also provides a page display device. Figure 6 Explain and illustrate. Figure 6 This is a schematic diagram of the structure of a page display device provided in an embodiment of the present application. It should be noted that for the technical details of the page display device provided in an embodiment of the present application, please refer to the relevant contents of the page display method above.

[0203] like Figure 6 As shown, the page display device 600 provided in the embodiment of the present application includes:

[0204] An acquisition unit 601 is used to acquire multiple objects corresponding to a target page;

[0205] A determining unit 602, configured to determine an object to be adjusted and an object to be kept from the plurality of objects according to a preset object display constraint;

[0206] The display unit 603 is configured to display the target page according to the object to be adjusted, the object to be kept, and the preset display information corresponding to the object to be adjusted.

[0207] In a possible implementation, the display unit 603 is specifically configured to: if the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information, adjust the display information corresponding to the object to be adjusted in the target page according to the preset display information.

[0208] In a possible implementation manner, the display unit 603 is specifically configured to: if the display information corresponding to the object to be retained in the target page is consistent with the preset display information, restore the display information corresponding to the object to be retained in the target page.

[0209] In a possible implementation, the determination unit 602 is specifically used to: determine the objects to be adjusted and the objects to be maintained from the multiple objects based on the preset object display constraints and the object tree; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.

[0210] In one possible implementation, if the preset object display constraint includes a display maintenance mark of the first reference object among the multiple objects, the object to be maintained is determined based on the first reference object and the associated objects of the first reference object; the associated objects are determined based on the path in the object tree that includes the first reference object.

[0211] In a possible implementation manner, the objects to be kept include all objects in the path; and the objects to be adjusted include other objects in the object tree except the objects to be kept.

[0212] In a possible implementation manner, the plurality of objects include N objects, where N is a positive integer;

[0213] The determining unit 602 includes:

[0214] A first judgment subunit is used to judge whether the preset object display constraint includes a display adjustment mark of an nth object or a display adjustment mark of at least one direct parent object of the nth object, and obtain a first judgment result; n is a positive integer, n≤N; the direct parent object is determined according to a path including the nth object in the object tree;

[0215] The first determining subunit is used to determine whether the nth object is an object to be retained according to the first judgment result.

[0216] In a possible implementation manner, the first determining subunit includes:

[0217] a second determining subunit, configured to determine the nth object as the object to be retained if the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object;

[0218] a second judgment subunit, configured to, if the first judgment result indicates that the preset object display constraint includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, determine whether the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object, to obtain a second judgment result;

[0219] The third determining subunit is used to determine whether the nth object is an object to be retained according to the second judgment result.

[0220] In a possible implementation manner, the third determining subunit includes:

[0221] a fourth determining subunit, configured to determine the nth object as the object to be retained if the second judgment result indicates that the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object;

[0222] a third judgment subunit, configured to judge whether there is a display keeping mark of a direct descendant family object of the nth object in the preset object display constraint, if the second judgment result indicates that the preset object display constraint does not include a display keeping mark of the nth object and the display keeping marks of all direct parent family objects of the nth object, to obtain a third judgment result; the direct descendant family object is determined based on a path including the nth object in the object tree;

[0223] The fifth determining subunit is used to determine whether the nth object is an object to be retained according to the third judgment result.

[0224] In one possible implementation, the fifth determination subunit is specifically used to: if the third judgment result indicates that there is a display keep mark for at least one direct descendant family object of the nth object in the preset object display constraint, then the nth object is determined as the object to be maintained; if the third judgment result indicates that there are no display keep marks for all direct descendant family objects of the nth object in the preset object display constraint, then the nth object is determined as the object to be adjusted.

[0225] In a possible implementation manner, the preset object display constraint includes a display keeping mark of a first reference object and a display adjusting mark of a second reference object among the multiple objects;

[0226] The determining unit 602 includes:

[0227] a sixth determination subunit, configured to determine, according to the preset object display constraint and the object tree, an adjustment mark set, a retention mark set, and a retention reference set, wherein the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; and the retention reference set includes the first reference object and a direct parent family object of the first reference object;

[0228] The seventh determining subunit is used to determine the objects to be adjusted and the objects to be kept from the multiple objects according to the adjustment mark set, the keeping mark set and the keeping reference set.

[0229] In a possible implementation manner, the plurality of objects include N objects, where N is a positive integer;

[0230] The seventh determining subunit comprises:

[0231] The fourth judgment subunit is used to judge whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object, and obtain a fourth judgment result; n is a positive integer, n≤N;

[0232] An eighth determining subunit is configured to determine whether the nth object is an object to be retained according to the fourth determination result.

[0233] In a possible implementation manner, the eighth determining subunit includes:

[0234] a ninth determining subunit, configured to determine the nth object as an object to be retained if the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct parent objects of the nth object;

[0235] a fifth judgment subunit, configured to judge whether the retaining mark set includes the nth object or at least one direct parent object of the nth object if the fourth judgment result indicates that the adjustment mark set includes the nth object or at least one direct parent object of the nth object, to obtain a fifth judgment result;

[0236] The tenth determining subunit is used to determine whether the nth object is an object to be retained according to the fifth judgment result.

[0237] In a possible implementation manner, the tenth determining subunit includes:

[0238] an eleventh determining subunit, configured to determine the nth object as an object to be retained if the fifth judgment result indicates that the retaining mark set includes the nth object or at least one direct parent object of the nth object;

[0239] a sixth judgment subunit, configured to judge whether the nth object belongs to the retention reference set if the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, to obtain a sixth judgment result;

[0240] The twelfth determining subunit is configured to determine whether the nth object is an object to be retained according to the sixth determination result.

[0241] In one possible implementation, the twelfth determination subunit is specifically used to: if the sixth judgment result indicates that the nth object belongs to the retention reference set, then determine the nth object as the object to be retained; if the sixth judgment result indicates that the nth object does not belong to the retention reference set, then determine the nth object as the object to be adjusted.

[0242] In a possible implementation manner, the object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page, and the filter is determined according to the preset display information.

[0243] In a possible implementation manner, the page display device 600 further includes:

[0244] The restoration unit is used to restore the display information corresponding to the object to be adjusted in the target page after detecting that the page display scene has changed.

[0245] In a possible implementation, the object is a view component or a view component area.

[0246] Based on the relevant content of the above-mentioned page display device 600, it can be known that for the page display device 600 provided in the embodiment of the present application, after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, first determine the objects to be adjusted and the objects to be maintained from these objects according to the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page and should be displayed according to the preset display information (for example, gray), and the objects to be maintained are used to represent the objects existing in the target page and should maintain the original display information for display; then, according to the objects to be adjusted, the objects to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the objects to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the objects to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the objects to be maintained in the target page in the display state is still the original display information), so that the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.

[0247] It can be seen that since the present application implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, this can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.

[0248] In addition, an embodiment of the present application also provides an electronic device, which includes a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the page display method provided in the embodiment of the present application.

[0249] See also Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0250] like Figure 7As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0251] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0252] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0253] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept, and the technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0254] The embodiment of the present application also provides a computer-readable medium, in which instructions or computer programs are stored. When the instructions or computer programs are executed on a device, the device executes any implementation of the page display method provided in the embodiment of the present application.

[0255] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 of computer-readable storage media may include, but are not limited to: 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 the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium 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. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0256] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0257] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0258] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can execute the method.

[0259] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, 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 the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through 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., through the Internet using an Internet service provider).

[0260] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0261] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit / module does not, in some cases, constitute a limitation on the unit itself.

[0262] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0263] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0264] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0265] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0266] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0267] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0268] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A page display method, characterized in that: The method comprises: Get multiple objects corresponding to the target page; Determining an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint; The target page is displayed according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted.

2. The method according to claim 1, characterized in that The displaying of the target page according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted includes: If the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information, the display information corresponding to the object to be adjusted in the target page is adjusted according to the preset display information.

3. The method according to claim 1, characterized in that The displaying of the target page according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted includes: If the display information corresponding to the object to be kept in the target page is consistent with the preset display information, the display information corresponding to the object to be kept in the target page is restored.

4. The method according to claim 1, characterized in that The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint comprises: According to the preset object display constraints and the object tree, objects to be adjusted and objects to be kept are determined from the multiple objects; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.

5. The method according to claim 4, characterized in that If the preset object display constraint includes a display maintenance mark of the first reference object among the multiple objects, the object to be maintained is determined based on the first reference object and the associated objects of the first reference object; the associated objects are determined based on the path in the object tree that includes the first reference object.

6. The method according to claim 5, characterized in that The objects to be retained include all objects in the path; The objects to be adjusted include other objects in the object tree except the objects to be kept.

7. The method according to claim 4, characterized in that The plurality of objects include N objects, where N is a positive integer; The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes: Determine whether the preset object display constraint includes a display adjustment mark of an nth object or a display adjustment mark of at least one direct parent object of the nth object, and obtain a first determination result; n is a positive integer, n≤N; the direct parent object is determined according to a path including the nth object in the object tree; According to the first judgment result, it is determined whether the nth object is an object to be retained.

8. The method according to claim 7, characterized in that The determining, according to the first judgment result, whether the nth object is an object to be retained includes: If the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object, then determining the nth object as the object to be kept; If the first judgment result indicates that the preset object display constraint includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, then determining whether the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object, to obtain a second judgment result; According to the second judgment result, it is determined whether the nth object is an object to be retained.

9. The method according to claim 8, characterized in that The determining, according to the second judgment result, whether the nth object is an object to be retained includes: If the second judgment result indicates that the preset object display constraint also includes a display keeping flag of the nth object or a display keeping flag of at least one direct parent object of the nth object, the nth object is determined as the object to be kept; If the second judgment result indicates that the preset object display constraint does not include the display keeping mark of the nth object and the display keeping marks of all direct parent family objects of the nth object, it is judged whether there is a display keeping mark of a direct child family object of the nth object in the preset object display constraint to obtain a third judgment result; the direct child family object is determined according to the path including the nth object in the object tree; According to the third judgment result, it is determined whether the nth object is an object to be retained.

10. The method according to claim 9, characterized in that The determining, according to the third judgment result, whether the nth object is an object to be retained includes: If the third judgment result indicates that there is a display keeping mark of at least one direct descendant family object of the nth object in the preset object display constraint, the nth object is determined as the object to be kept; The method further comprises: If the third judgment result indicates that the display keeping marks of all direct descendant family objects of the nth object do not exist in the preset object display constraint, the nth object is determined as the object to be adjusted.

11. The method according to claim 4, characterized in that The preset object display constraint includes a display keeping mark of a first reference object and a display adjusting mark of a second reference object among the plurality of objects; The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes: According to the preset object display constraint and the object tree, an adjustment mark set, a retention mark set and a retention reference set are determined, wherein the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; and the retention reference set includes the first reference object and the direct parent family object of the first reference object; According to the adjustment mark set, the retention mark set and the retention reference set, objects to be adjusted and objects to be retained are determined from the plurality of objects.

12. The method according to claim 11, characterized in that The plurality of objects include N objects, where N is a positive integer; The step of determining the objects to be adjusted and the objects to be retained from the plurality of objects according to the adjustment mark set, the retention mark set and the retention reference set comprises: Determine whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object to obtain a fourth determination result; n is a positive integer, n≤N; According to the fourth judgment result, it is determined whether the nth object is an object to be retained.

13. The method according to claim 12, characterized in that The step of determining, according to the fourth judgment result, whether the nth object is an object to be retained includes: If the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct parent objects of the nth object, the nth object is determined as the object to be kept; If the fourth judgment result indicates that the adjustment mark set includes the nth object or at least one direct parent object of the nth object, then determine whether the retention mark set includes the nth object or at least one direct parent object of the nth object to obtain a fifth judgment result; According to the fifth judgment result, it is determined whether the nth object is an object to be retained.

14. The method according to claim 13, characterized in that The step of determining whether the nth object is an object to be retained according to the fifth judgment result includes: If the fifth judgment result indicates that the retention mark set includes the nth object or at least one direct parent object of the nth object, the nth object is determined as an object to be retained; If the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, then judging whether the nth object belongs to the retention reference set, and obtaining a sixth judgment result; According to the sixth judgment result, it is determined whether the nth object is an object to be retained.

15. The method according to claim 14, characterized in that The determining, according to the sixth judgment result, whether the nth object is an object to be retained includes: If the sixth judgment result indicates that the nth object belongs to the retained reference set, determining the nth object as an object to be retained; The method further comprises: If the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted.

16. The method according to claim 1, characterized in that The object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page, and the filter is determined according to the preset display information.

17. The method according to claim 1, characterized in that After displaying the target page according to the object to be adjusted, the object to be maintained, and the preset display information corresponding to the object to be adjusted, the method further includes: After detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the target page is restored.

18. A page display device, characterized in that: include: An acquisition unit, used for acquiring multiple objects corresponding to a target page; A determining unit, configured to determine an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint; The display unit is used to display the target page according to the object to be adjusted, the object to be maintained and the preset display information corresponding to the object to be adjusted.

19. An electronic device, characterized in that: The device comprises: a processor and a memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the method according to any one of claims 1 to 17.

20. A computer readable medium, characterized in that The computer-readable medium stores instructions or computer programs, and when the instructions or computer programs are executed on a device, the device executes the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • A color adjustment method for an application picture in wearable equipment and the wearable equipment

    CN109917901A

  • Page mode switching method, device and equipment

    CN112965779A

  • Page processing method and device, electronic equipment and storage medium

    CN113343066A

  • Browser video display method and device, storage medium and electronic equipment

    CN113676766A