WO2024255903A1 - 页面显示方法、装置、电子设备、计算机可读介质 - Google Patents
页面显示方法、装置、电子设备、计算机可读介质 Download PDFInfo
- Publication number
- WO2024255903A1 WO2024255903A1 PCT/CN2024/099573 CN2024099573W WO2024255903A1 WO 2024255903 A1 WO2024255903 A1 WO 2024255903A1 CN 2024099573 W CN2024099573 W CN 2024099573W WO 2024255903 A1 WO2024255903 A1 WO 2024255903A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- display
- nth
- objects
- preset
- adjusted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
Definitions
- the present disclosure relates to a page display method, device, electronic device, and computer-readable medium.
- 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.
- 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.
- the present disclosure provides a page display method, device, electronic device, and computer-readable medium.
- the present disclosure provides a page display method, the method comprising:
- the target page is displayed according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted.
- displaying the target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted includes:
- 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. The information is adjusted.
- displaying the target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted includes:
- 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.
- determining the object to be adjusted and the object to be maintained from the multiple objects according to the preset object display constraint includes:
- 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.
- 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.
- 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.
- 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:
- 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;
- the nth object is an object to be retained.
- determining whether the nth object is an object to be retained according to the first judgment result includes:
- 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;
- the preset object display constraint includes the display of the nth object an adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, determining whether the preset object display constraint further 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 determination result;
- determining whether the nth object is an object to be retained according to the second judgment result includes:
- 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;
- 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;
- determining whether the nth object is an object to be retained according to the third judgment result includes:
- the nth object is determined as the object to be kept;
- the method further comprises:
- the nth object is determined as the object to be adjusted.
- 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;
- 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:
- 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 Including a first reference object; the retained reference set includes the first reference object and a direct parent family object of the first reference object;
- 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.
- 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:
- n is a positive integer, n ⁇ N;
- determining whether the nth object is an object to be retained according to the fourth judgment result includes:
- the nth object is determined as the object to be kept;
- 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;
- determining whether the nth object is an object to be retained according to the fifth judgment result includes:
- the nth object is determined as an object to be retained
- 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;
- determining whether the nth object is an object to be retained according to the sixth judgment result includes:
- the method further comprises:
- the nth object is determined as the object to be adjusted.
- 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.
- the method further includes:
- the display information corresponding to the object to be adjusted in the target page is restored.
- the page display method is applied to a client.
- the object is a view component or a view component area.
- the present disclosure provides a page display device, comprising:
- 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 kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted.
- the present disclosure provides an electronic device, the device comprising: 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 page display method provided by the present disclosure.
- the present disclosure provides a computer-readable medium, in which instructions or computer programs are stored.
- the device executes the page display method provided by the present disclosure.
- the present disclosure provides a computer program product, which includes a computer program carried on a non-transitory computer readable medium, wherein the computer program includes a method for executing the page display method provided by the present disclosure. program code.
- FIG1 is a flow chart of a page display method provided by an embodiment of the present disclosure.
- FIG2 is a schematic diagram of a derivation process provided by an embodiment of the present disclosure.
- FIG3 is a schematic diagram of a different set provided by an embodiment of the present disclosure.
- FIG4 is a schematic diagram of a derivation process provided by an embodiment of the present disclosure.
- FIG5 is a schematic diagram of another derivation process provided by an embodiment of the present disclosure.
- FIG6 is a schematic diagram of the structure of a page display device provided by an embodiment of the present disclosure.
- FIG. 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
- 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.
- 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.
- the present disclosure also provides a page display method, which includes: after obtaining multiple objects (such as view components or view component areas) corresponding to the target page requested by the user, first determining the objects to be adjusted and the objects to be displayed from these objects according to the preset object display constraints.
- objects such as view components or view component areas
- Maintain the object so that the object to be adjusted is used to represent the object existing in the target page and should be displayed according to the preset display information (for example, gray), and the object to be maintained is used to represent the object existing in the target page and should maintain the original display information for display; then display the target page according to the object to be adjusted, the object to be maintained and the preset display information, 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 in the display state is inconsistent with the preset display information (that is, the display information corresponding to the object 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, so as to better meet the page adjustment requirements, and further help to improve the page adjustment effect.
- the preset display information for example, gray
- the object to be maintained is used to represent the object existing in the target
- the present disclosure implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process, thereby effectively reducing the page adjustment cost.
- display adjustment processing for example, graying processing
- any implementation of the page display method provided in the embodiment of the present disclosure can be applied to a device with data processing function such as a terminal device or a server.
- a device with data processing function such as a terminal device or a server.
- any implementation of the page display method provided in the embodiment of the present disclosure can also be implemented with the help of a data communication process between different devices (for example, a terminal device and a server, two terminal devices, or two servers).
- the terminal device can be a smart phone, a computer, a personal digital assistant (PDA) or a tablet computer, etc.
- the server can be an independent server, a cluster server or a cloud server.
- the page display method provided by the present disclosure is described below in conjunction with some drawings.
- the page display method provided by the embodiment of the present disclosure includes the following S1-S3.
- Figure 1 is a flow chart of a page display method provided by the embodiment of the present disclosure.
- S1 Get multiple objects corresponding to the target page.
- the target page refers to a page that needs to be displayed (eg, grayed out), and the present disclosure does not limit the target page.
- the target page may refer to any page requested by a user.
- the page display method provided by the present disclosure when the page display method provided by the present disclosure is applied to a client, if the client receives a page display request triggered by a user, the above target page may refer to the page requested by the page display request. It should be noted that the present disclosure does not limit the implementation method of the page display request.
- the page display request may at least carry the Uniform Resource Locator (URL) of the target page.
- URL Uniform Resource Locator
- An object refers to an element that is required to be referenced when performing page display processing on the target page above; and the present disclosure does not limit the object.
- the object may refer to a view component, which is a page construction element.
- the object may also refer to a view component area, which refers to the area occupied by a view component on the target page.
- the present disclosure does not limit the implementation methods of the above "multiple objects".
- the multiple objects of the target page may include all or part of the view components in the target page (for example, view component 1-view component 8 shown in Figure 2 or Figure 3).
- the multiple objects of the target page may include all or part of the view component area in the target page.
- the present disclosure does not limit the implementation method of the above-mentioned "multiple objects" acquisition process.
- it can be implemented by any existing or future method that can acquire multiple objects corresponding to a page.
- the above “multiple objects” may be provided by a server that is capable of performing data communication with the client.
- 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".
- 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 disclosure does not limit the implementation method of the object tree.
- 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 disclosure does not limit the view tree.
- the target page includes view components 1 to 8 as shown in FIG. 2 or FIG.
- the view tree of the target page may be a tree structure as shown in FIG. 2 or FIG. 3.
- the object tree may 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.
- 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 disclosure does not limit the triggering method of the page display request.
- 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.).
- the 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.
- objects of the target page for example, view components or view component areas
- 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.
- 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, kept in the original color) for display.
- the target color refers to the color required to be used as the basis for color adjustment processing for a page; the target color can be determined in advance based on the application scenario; and the present disclosure does not limit the target color, for example, the target color can be gray.
- the "original color" in the present disclosure refers to the color described by the color attribute of an object.
- 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.).
- the present disclosure does not limit the method for obtaining the preset object display constraint. Assisted by manual labeling.
- the present disclosure does not limit the implementation method of the preset object display constraints above.
- the preset object display constraints may include display constraint marks of the marked objects in the "multiple objects" above (for example, display color constraint marks, texture constraint marks, or display shape constraint marks, etc.).
- the marked object refers to an object that exists in the target page above and has been pre-added with a certain display constraint mark (for example, view component 1 and view component 5 shown in Figure 2 or Figure 3); and the marked object can be pre-specified by the user according to the actual application scenario.
- the display constraint mark refers to data (for example, a character 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.
- the present disclosure does not limit the implementation method of the above display constraint mark.
- the display constraint mark can be implemented by 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.
- the display constraint mark can be implemented by 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.
- the display constraint mark can be implemented by 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.
- the display constraint mark may include a display adjustment mark (for example, a color adjustment mark of "need to be grayed out mark” shown in FIG. 2 or FIG. 3) and/or a display retention mark (for example, a color retention mark of "cannot be grayed out mark” shown in FIG. 2 or FIG. 3).
- the display adjustment mark is used to mark that an object may need to be subjected to display adjustment processing (for example, color adjustment processing, texture adjustment processing, or shape adjustment processing, etc.); the display retention mark is used to mark that an object cannot be subjected to display adjustment processing.
- the object to be adjusted refers to the object existing in the target page above that needs to be displayed according to the preset display information (for example, target color, target texture or target shape) (for example, view component 3, view component 4 and view component 6 shown in Figure 2).
- the preset display information for example, target color, target texture or target shape
- the preset display information can be a target color (for example, gray).
- the preset display information can be a target texture (for example, a certain pattern texture, a certain shadow texture, etc.).
- the target texture refers to the texture required to be used as a basis for display texture adjustment processing for a page; the target texture can be determined in advance based on the application scenario; and the present disclosure does not limit the target texture, for example, the target texture can be a certain pattern texture, a certain shadow texture, etc.
- 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.).
- the target shape refers to the shape required to be used as a basis for adjusting the display shape of a page; the target shape can be determined in advance based on the application scenario; and the present disclosure does not limit the target shape, for example, the target shape can be a lantern shape or a tree shape, etc.
- 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, view component 1, view component 2, view component 5, view component 7, and view component 8 shown in FIG. 2).
- the original display information refers to the display information pre-configured for an object (for example, the display information described by the configuration properties of the object).
- 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.
- 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.
- the present disclosure 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.
- the present disclosure is not limited to the implementation 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 constraint and the object tree", for example, it may at least include: if the preset object display constraint includes 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 the object existing in the above target page and to which the display retention mark is added (for example, the view component 5 shown in Figure 2 or Figure 3); and the present disclosure does not limit the number of the first reference object.
- the associated objects of the first reference object refer to the objects affected by the first reference object in terms of display adjustment; and the associated objects of the first reference object can be determined based on the path including the first reference object in the above object tree, so that the associated objects of the first reference object include all other objects in the path except the first reference object. For ease of understanding, the following is explained in conjunction with Figure 2.
- the target page includes view components 1 to 8 shown in FIG2, the object is implemented by view components, the preset display information is implemented by gray, and the display retention mark is implemented by the mark "cannot be grayed out" shown in FIG2.
- 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; Component 1 is the parent component of view component 2, so under the influence of view component 2, view component 1 should also keep its original color; because view component 7 and view component 8 are both child components of view component 5, under the influence of view component 5, view component 7 and view component 8 should also keep their original colors.
- view component 1 is marked as not grayed out, it can be deduced from the object tree that view component 1, view component 2, view component 5, view component 7 and view component 8 should all keep their original colors (that is, not
- the path including view component 5 may at least include 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.
- 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.
- S2 may specifically include the following steps 11-12.
- 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.
- 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 and has a higher generation than the nth object (for example, the father object, the grandfather object, the great-grandfather object, etc.).
- the nth object is the view component 5 shown in FIG2
- the view component 2 shown in FIG2 is the parent component of the view component 5
- the view component 1 shown in FIG2 is the grandparent component of the view component 5
- the view component 2 and the view component 1 are both direct parent family objects of the nth object.
- all direct parent objects of the nth object can be determined based on the path including the nth object in the object tree, so that all direct parent objects of the nth object include all objects in each path that are higher in generation than the nth object (for example, view component 1 and view component 2 shown in Figure 2 are both view components that are higher in generation than view component 5).
- 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.
- 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.
- step 12 does not limit the implementation of step 12.
- it may specifically include the following steps 121 to 123.
- 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.
- step 121 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.
- Step 122 If the first judgment result indicates that the preset object display constraint includes a display adjustment flag of the nth object or a display adjustment flag of at least one direct parent object of the nth object, If the preset object display constraint further includes a display retention flag of the nth object or a display retention flag of at least one direct parent object of the nth object, a second judgment result is obtained.
- n is a positive integer, n ⁇ N.
- 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.
- 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.
- step 123 does not limit the implementation of step 123.
- it may specifically include the following steps 1231 to 1233.
- 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.
- 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)
- the above preset object display constraint includes the display adjustment mark of the object
- 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)
- the above preset object display constraint includes 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.
- the preset object display constraint also includes 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 constraint also includes 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 to be preserved. Holding object.
- 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.
- the direct descendant object of the nth object refers to an object that exists in the target page above and is in the direct line and has a lower generation than the nth object (e.g., a child object, a grandchild object, a great-grandchild object, etc.).
- a child object e.g., a child object, a grandchild object, a great-grandchild object, etc.
- the view component 7 and the view component 8 shown in FIG2 are both subcomponents of the view component 5
- the view component 7 and the view component 8 are both direct descendant objects of the nth object.
- 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.
- 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.
- 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.
- the present disclosure does not limit the use process of the third judgment result above.
- it may specifically include the following steps 12331-12332.
- 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.
- 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.
- step 1232 and step 1233 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 after determining the preset object display When the constraint 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 the display information corresponding to the object may need to be adjusted 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 a direct descendant family object of the object in the preset object display constraint.
- the object can be determined as an object to be retained. If there are no display retention marks of all direct descendant 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 an object to be adjusted.
- 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)
- 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, and it is determined 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
- 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)
- 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.
- step 11 to 12 Based on the relevant content 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, the derivation process shown in Figure 4), and based on the derivation result, it can be determined whether the object belongs to an object to be maintained or an object to be adjusted.
- S2 may specifically include the following steps 21-22.
- 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.
- the adjustment mark set is used to record objects to which display adjustment marks have been pre-added. It can be seen that when the preset object display constraint includes a display adjustment mark of a second reference object, the adjustment mark set may include the second reference object (for example, the view component 1 shown in FIG. 2 or 3).
- the second reference object refers to an object existing in the target page above to which the display adjustment mark has been added; and the present disclosure does not limit the number of the second reference objects.
- the keep mark set is used to record objects that have been pre-added with display keep marks. It can be seen that when the above preset object display constraint includes a display keep mark of a first reference object, the keep mark set can include the first reference object (for example, the view component 5 shown in Figure 2 or Figure 3). For the relevant content of the first reference object, please refer to the above.
- 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.
- an adjustment tag set for example, list 1 shown in Figure 3
- a retention tag set for example, list 2 shown in Figure 3
- a display tag set for example, list 3
- a reference set is maintained (e.g., list 3 shown in FIG3 ) so that the adjustment mark set is used to record all objects with display adjustment marks (e.g., view component 1 shown in FIG3 ), and the maintained mark set is used to record all objects with display retention marks (e.g., view component 5 shown in FIG3 ), and the maintained reference set is used to record all objects with display retention marks and their direct parent objects (e.g., view component 5 shown in FIG3 , the parent component of view component 5 - view component 2, and the grandparent component of view component 5 - 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.
- the adjustment mark set is used to record all objects with display adjustment marks (e.g., view component 1 shown in FIG3 )
- the maintained mark set is used to record all objects with display retention marks (e.g., view component 5 shown in
- 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.
- step 22 may specifically include the following steps 221 - 222 .
- 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.
- n is a positive integer, n ⁇ N.
- 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.
- 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.
- step 222 does not limit the implementation of the above step 222.
- it may specifically include the following steps 2221 to 2223.
- 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.
- 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)
- the object when it is determined that the nth object does not belong to the above adjustment 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 is an object to be maintained; 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), only when it is determined that the object and all 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.
- 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.
- 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.
- 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.
- the present disclosure does not limit the implementation method of the above step 222.
- it may specifically include the following steps 22231 to 22233.
- 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.
- 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)
- the object is the root node in the object tree
- the object tree of the target page contains a direct parent object of the object (that is, the object is not a root node in the object tree)
- the object belongs to the adjustment mark set or at least one direct parent object of the object belongs to the adjustment mark set
- 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 further determined whether the object or at least one direct parent object of the object belongs to the above adjustment mark set.
- a retention mark set is maintained 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.
- 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.
- n is a positive integer, n ⁇ N.
- the sixth judgment result is used to indicate whether the nth object above belongs to the retained reference set.
- 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.
- 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.
- 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.
- step 22232-22233 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 it is determined that the object does not belong to the retention mark set above, 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 there is no need to adjust the display information corresponding to the object according to the preset display information.
- 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.
- the object tree of the target page contains a direct parent object of the object (that is, the object is not a root node in the object tree)
- 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 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 the display information corresponding to the object may need to be adjusted according to the preset display information.
- the object belongs to the retained reference 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 the object to be retained. If the object does not belong to the retained reference set, 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.
- an adjustment mark set e.g., list 1 shown in FIG. 3
- a retention mark set e.g., list 2 shown in FIG. 3
- a retention reference set e.g., list 3 shown in FIG. 3
- 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 (e.g., the derivation process shown in FIG.
- this derivation method can effectively overcome the time-consuming problem caused by executing the search and judgment process of direct descendant family objects, so that the derivation time can be effectively reduced, thereby facilitating the improvement of derivation efficiency, and further facilitating the improvement of page display adjustment efficiency.
- the objects to be adjusted and the objects to be maintained 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 and should be adjusted and displayed according to the preset display information (for example, view component 3, view component 4 and view component 6 shown in Figure 2), 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 (that is, there is no need to adjust the display according to the preset display information) (for example, view component 1, view component 2, view component 5, view component 7 and view component 8 shown in Figure 2), so that the page display adjustment processing for the target page can be completed based on the objects to be adjusted and the objects to be maintained.
- the preset display information for example, view component 3, view component 4 and view component 6 shown in Figure 2
- 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 (that is, there is no need to adjust the display according to the preset display information) (for example, view component 1,
- S3 Displaying a target page according to the object to be maintained, the object to be adjusted, and preset display information corresponding to the object to be adjusted.
- the display information corresponding to the object to be adjusted in the target page is consistent with the above preset display information, and the object to be kept in the target page corresponds to
- the display information of the object to be maintained is inconsistent with the preset display information above (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).
- the object is implemented using a view component
- 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
- the color in the display area of the object to be maintained in the target page remains the original color.
- the present disclosure does not limit the implementation method of the target page in the display state above.
- a filter such as a gray filter, etc.
- 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.
- a filter is covered on the display area of the view component on the target page in the display state.
- 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 target page above is the corresponding original display information, then S3 above can be specifically: according to the preset display information above, 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).
- 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 disclosure does not limit the adjustment process, for example, it can be set according to the actual application scenario.
- the adjustment process can be implemented by adding a filter corresponding to the preset display information (for example, "adding a gray filter” shown in Figures 4 and 5).
- 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 has been adjusted to the preset display information, then S3 above may specifically be: 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 target page except for the object The display information corresponding to other objects (for example, objects to be adjusted) other than the object to be maintained is still the preset display information.
- S3 above may specifically be: 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 target page except for the object
- the display information corresponding to other objects (for example, objects to be adjusted) other than the object to be maintained is still the preset display information.
- 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 disclosure 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.
- 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.).
- 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.).
- 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); however, if the target page If the display information corresponding to all objects to be adjusted in the 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 retained in the target page still retains its corresponding original display information, there is no need to perform any processing on all objects to be retained in the target page; however, if the display information corresponding to an object to be retained in the target page is adjusted to the preset display information, the object to be retained can be restored (for example, the filter corresponding to the preset display information is removed), so that the display processing process for the target page can be implemented
- the present disclosure implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process, thereby effectively reducing the page adjustment cost.
- display adjustment processing for example, graying processing
- 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 a new view component), sometimes some existing objects may be deleted from the object tree, and sometimes the associations between some existing objects in the object tree may be adjusted. Tie.
- the present disclosure also provides a possible implementation of the above page display method.
- the page display method may include the following steps 41-44.
- Step 41 Get multiple objects of the target page.
- step 41 can be found in S1 above, and for the sake of brevity, it will not be repeated here.
- 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.
- step 42 can be found in S2 above, and for the sake of brevity, it will not be repeated here.
- 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.
- step 43 can be found in S3 above, and for the sake of brevity, it will not be repeated here.
- 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.
- the display information adjustment logic provided by the present disclosure 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.
- the present disclosure also provides a possible implementation of the above page display method.
- the page display method also includes the following step 51.
- the execution time of step 51 is later than the execution time of step S3 above or step 43 above. Execution time.
- 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.
- 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.).
- step 51 above 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.
- the page display method in order to better improve the page display efficiency, 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.
- the embodiment of the present disclosure also provides a page display device, which is explained and illustrated in conjunction with Figure 6.
- Figure 6 is a schematic diagram of the structure of a page display device provided by the embodiment of the present disclosure. It should be noted that for the technical details of the page display device provided by the embodiment of the present disclosure, please refer to the relevant content of the page display method above.
- the page display device 600 provided in the embodiment of the present disclosure includes:
- An acquisition unit 601 is configured to acquire multiple objects corresponding to a target page
- a determining unit 602 is configured to determine an object to be adjusted and an object to be kept from a plurality of objects according to a preset object display constraint;
- the display unit 603 is configured to display a target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted.
- 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, the display information corresponding to the object to be adjusted in the target page is adjusted according to the preset display information.
- 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.
- the determination unit 602 is specifically configured to: determine the objects to be adjusted and the objects to be kept from multiple objects according to preset object display constraints and an object tree; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.
- the object to be retained 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.
- 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.
- the plurality of objects includes N objects, where N is a positive integer
- the determining unit 602 includes:
- the first judgment subunit is configured to judge whether 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 family object of the nth object, and obtain a first judgment result;
- n is a positive integer, n ⁇ N;
- the direct parent family object is determined according to a path including the nth object in the object tree;
- the first determining subunit is configured to determine whether the nth object is an object to be retained according to the first judgment result.
- the first determining subunit includes:
- a second determining subunit is configured to determine the nth object as an object to be kept 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 second judgment subunit is 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 family 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 family object of the nth object, and obtain a second judgment result.
- the third determining subunit is configured to determine whether the nth object is an object to be retained according to the second judgment result.
- the third determining subunit includes:
- 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;
- the third judgment subunit is 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 the display keeping mark of the nth object and the display keeping marks of all direct parent family objects of the nth object, and obtain a third judgment result; the direct descendant family object is determined according to a path including the nth object in the object tree;
- the fifth determining subunit is configured to determine whether the nth object is an object to be retained according to the third judgment result.
- the fifth determination subunit is specifically configured as follows: if the third judgment result indicates that there is a display keep mark for at least one direct sub-family object of the nth object in the preset object display constraint, 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 sub-family objects of the nth object in the preset object display constraint, the nth object is determined as the object to be adjusted.
- 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;
- the determining unit 602 includes:
- a sixth determination subunit is 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;
- the seventh determining subunit is configured to determine 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.
- the plurality of objects includes N objects, where N is a positive integer
- the seventh determining subunit comprises:
- the fourth judgment subunit is configured to judge whether the adjustment mark set includes the nth object or at least one direct parent family object of the nth object, and obtain a fourth judgment result; n is a positive integer, n ⁇ N;
- the eighth determining subunit is configured to determine whether the nth object is an object to be retained according to the fourth judgment result.
- the eighth determining subunit includes:
- a ninth determination subunit configured to determine the nth object as the 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;
- a fifth judgment subunit configured to judge whether the retained marking set includes the nth object or at least one direct parent object of the nth object if the fourth judgment result indicates that the adjusted marking set includes the nth object or at least one direct parent object of the nth object, to obtain a fifth judgment result;
- the tenth determining subunit is configured to determine whether the nth object is an object to be retained according to the fifth judgment result.
- the tenth determining subunit includes:
- an eleventh determining subunit configured to determine the nth object as the object to be retained if the fifth judgment result indicates that the retention mark set includes the nth object or at least one direct parent family object of the nth object;
- 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;
- the twelfth determining subunit is configured to determine whether the nth object is an object to be retained according to the sixth judgment result.
- the twelfth determination subunit is specifically configured as: if the sixth judgment result indicates that the nth object belongs to the retained reference set, then the nth object is determined as the object to be retained; if the sixth judgment result indicates that the nth object does not belong to the retained reference set, then the nth object is determined as the object to be adjusted.
- 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 preset display information.
- the page display device 600 further includes:
- the restoration unit is configured to restore the target page after detecting that the page display scene has changed.
- the display information corresponding to the object to be adjusted is restored.
- the object is a view component or a view component area.
- the page display device 600 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
- the present disclosure implements display adjustment processing (for example, graying processing) for a part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process, thereby effectively reducing the page adjustment cost.
- display adjustment processing for example, graying processing
- an embodiment of the present disclosure further 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 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-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
- mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
- PDAs personal digital assistants
- PADs tablet computers
- PMPs portable multimedia players
- vehicle-mounted terminals such as vehicle-mounted navigation terminals
- fixed terminals such as digital TVs, desktop computers, etc.
- the electronic device shown in FIG. 7 is only an example and should not bring any limitation to the functions and scope of use
- the electronic device 700 may include a processing device (eg, a central processing unit, a graphics processing unit, etc.) 701, which may be configured to process data according to a program stored in a read-only memory (ROM) 702 or from a processor.
- the storage device 708 performs various appropriate actions and processes by loading programs in the random access memory (RAM) 703.
- RAM random access memory
- Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703.
- 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.
- the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709.
- the communication device 709 may allow the electronic device 700 to communicate wirelessly or wired with other devices to exchange data.
- FIG. 7 shows an electronic device 700 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
- 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.
- 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.
- the processing device 701 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the embodiment of the present disclosure further provides a computer-readable medium, in which instructions or computer programs are stored.
- the instructions or computer programs are executed on a device, the device executes any implementation of the page display method provided by the embodiment of the present disclosure.
- the computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the 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, or a computer-readable medium.
- a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
- a 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 combination with an instruction execution system, device 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.
- the client and 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).
- HTTP Hyper Text Transfer Protocol
- 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.
- the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
- 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.
- Computer program code for performing 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 the remote computer or server.
- 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 A computer (connected via the Internet, for example, using an Internet service provider).
- LAN local area network
- WAN wide area network
- Internet service provider connected via the Internet, for example, using an Internet service provider.
- 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.
- 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.
- 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.
- 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.
- exemplary types of hardware logic components 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.
- FPGAs field programmable gate arrays
- ASICs application specific integrated circuits
- ASSPs application specific standard products
- SOCs systems on chips
- CPLDs complex programmable logic devices
- 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.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM portable compact disk read-only memory
- CD-ROM compact disk read-only memory
- magnetic storage device or any suitable combination of the foregoing.
- 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.
- 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.
- 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.
- 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.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开的实施例提供一种页面显示方法、装置、电子设备、计算机可读介质,该页面显示方法包括:在获取到该目标页面对应的多个对象之后,先依据预设对象显示约束,从这些对象中确定待调整对象和待保持对象;再根据该待调整对象、该待保持对象以及该预设显示信息,显示目标页面,以使处于显示状态的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该处于显示状态的目标页面中待保持对象对应的显示信息与该预设显示信息不一致,如此能够实现将该目标页面中部分区域按照该预设显示信息进行调整显示的目的,从而能够更好地满足页面调整需求,进而有利于提高页面调整效果。
Description
本申请要求于2023年6月16日递交的中国专利申请第202310720889.X号的优先权,在此全文引用上述中国专利申请公开的内容以作为本公开的一部分。
本公开涉及一种页面显示方法、装置、电子设备、计算机可读介质。
在一些应用场景下,一些信息可以借助页面进行显示,以便用户可以借助该页面查看这些信息。
实际上,页面通常会被配置为某种状态,以提高用户的页面查看体验;但是,在某些情况下,可能需要调整页面的状态。
然而,因一些用于实现页面调整的相关技术方案(比如,手动调整配置参数等方案)存在缺陷,影响页面调整效果。
发明内容
本公开提供了一种页面显示方法、装置、电子设备、计算机可读介质。
本公开提供一种页面显示方法,所述方法包括:
获取目标页面对应的多个对象;
依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象;
根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面。
在一种可能的实施方式下,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面,包括:
若所述目标页面中待调整对象对应的显示信息与所述预设显示信息不一致,则按照所述预设显示信息,对所述目标页面中待调整对象对应的显示
信息进行调整处理。
在一种可能的实施方式下,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面,包括:
若所述目标页面中待保持对象对应的显示信息与所述预设显示信息一致,则将所述目标页面中待保持对象对应的显示信息进行还原处理。
在一种可能的实施方式下,所述依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象,包括:
依据所述预设对象显示约束以及对象树,从所述多个对象中确定待调整对象和待保持对象;所述对象树用于描述所述多个对象中不同对象之间的父子关系。
在一种可能的实施方式下,若所述预设对象显示约束包括所述多个对象中第一参考对象的显示保持标记,则所述待保持对象是根据所述第一参考对象、以及所述第一参考对象的关联对象所确定的;所述关联对象是依据所述对象树中包括所述第一参考对象的路径所确定的。
在一种可能的实施方式下,所述待保持对象包括所述路径中的所有对象;所述待调整对象包括所述对象树中除了所述待保持对象以外的其他对象。
在一种可能的实施方式下,所述多个对象包括N个对象,N为正整数;
所述依据所述预设对象显示约束以及对象树,从所述多个对象中确定待调整对象和待保持对象,包括:
判断所述预设对象显示约束中是否包括第n个对象的显示调整标记或者所述第n个对象的至少一个直系父族对象的显示调整标记,得到第一判断结果;n为正整数,n≤N;所述直系父族对象是依据所述对象树中包括所述第n个对象的路径所确定的;
根据所述第一判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第一判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第一判断结果表示所述预设对象显示约束不包括第n个对象的显示调整标记以及所述第n个对象的所有直系父族对象的显示调整标记,则将所述第n个对象确定为所述待保持对象;
若所述第一判断结果表示所述预设对象显示约束包括第n个对象的显示
调整标记或者所述第n个对象的至少一个直系父族对象的显示调整标记,则判断所述预设对象显示约束是否还包括第n个对象的显示保持标记或者所述第n个对象的至少一个直系父族对象的显示保持标记,得到第二判断结果;
根据所述第二判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第二判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第二判断结果表示所述预设对象显示约束还包括第n个对象的显示保持标记或者所述第n个对象的至少一个直系父族对象的显示保持标记,则将所述第n个对象确定为所述待保持对象;
若所述第二判断结果表示所述预设对象显示约束不包括第n个对象的显示保持标记以及所述第n个对象的所有直系父族对象的显示保持标记,则判断所述预设对象显示约束中是否存在第n个对象的直系子族对象的显示保持标记,得到第三判断结果;所述直系子族对象是依据所述对象树中包括所述第n个对象的路径所确定的;
根据所述第三判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第三判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第三判断结果表示所述预设对象显示约束中存在第n个对象的至少一个直系子族对象的显示保持标记,则将所述第n个对象确定为所述待保持对象;
所述方法还包括:
若所述第三判断结果表示所述预设对象显示约束中不存在第n个对象的所有直系子族对象的显示保持标记,则将所述第n个对象确定为所述待调整对象。
在一种可能的实施方式下,所述预设对象显示约束包括所述多个对象中第一参考对象的显示保持标记以及第二参考对象的显示调整标记;
所述依据所述预设对象显示约束以及对象树,从所述多个对象中确定待调整对象和待保持对象,包括:
依据所述预设对象显示约束以及对象树,确定调整标记集、保持标记集以及保持参考集,所述调整标记集包括所述第二参考对象;所述保持标记集
包括第一参考对象;所述保持参考集包括所述第一参考对象以及所述第一参考对象的直系父族对象;
依据所述调整标记集、保持标记集以及保持参考集,从所述多个对象中确定待调整对象和待保持对象。
在一种可能的实施方式下,所述多个对象包括N个对象,N为正整数;
所述依据所述调整标记集、保持标记集以及保持参考集,从所述多个对象中确定待调整对象和待保持对象,包括:
判断所述调整标记集是否包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,得到第四判断结果;n为正整数,n≤N;
根据所述第四判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第四判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第四判断结果表示所述调整标记集不包括所述第n个对象以及所述第n个对象的所有直系父族对象,则将所述第n个对象确定为待保持对象;
若所述第四判断结果表示所述调整标记集包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,则判断所述保持标记集是否包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,得到第五判断结果;
根据所述第五判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第五判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第五判断结果表示所述保持标记集包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,则将所述第n个对象确定为待保持对象;
若所述第五判断结果表示所述保持标记集不包括所述第n个对象以及所述第n个对象的所有直系父族对象,则判断所述第n个对象是否属于所述保持参考集,得到第六判断结果;
根据所述第六判断结果,确定所述第n个对象是否为待保持对象。
在一种可能的实施方式下,所述根据所述第六判断结果,确定所述第n个对象是否为待保持对象,包括:
若所述第六判断结果表示所述第n个对象属于所述保持参考集,则将所述第n个对象确定为待保持对象;
所述方法还包括:
若所述第六判断结果表示所述第n个对象不属于所述保持参考集,则将所述第n个对象确定为待调整对象。
在一种可能的实施方式下,所述待调整对象包括视图组件区域,在所述目标页面上所述视图组件区域上覆盖有滤镜,所述滤镜是根据所述预设显示信息确定的。
在一种可能的实施方式下,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面之后,所述方法还包括:
在检测到页面显示场景发生变化之后,将所述目标页面中待调整对象对应的显示信息进行还原处理。
在一种可能的实施方式下,所述页面显示方法应用于客户端。
在一种可能的实施方式下,所述对象为视图组件或者视图组件区域。
本公开提供了一种页面显示装置,包括:
获取单元,用于获取目标页面对应的多个对象;
确定单元,用于依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象;
显示单元,用于根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面。
本公开提供了一种电子设备,所述设备包括:处理器和存储器;
所述存储器,用于存储指令或计算机程序;
所述处理器,用于执行所述存储器中的所述指令或计算机程序,以使得所述电子设备执行本公开提供的页面显示方法。
本公开提供了一种计算机可读介质,所述计算机可读介质中存储有指令或计算机程序,当所述指令或计算机程序在设备上运行时,使得所述设备执行本公开提供的页面显示方法。
本公开提供了一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行本公开提供的页面显示方法
的程序代码。
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本公开实施例提供的一种页面显示方法的流程图;
图2为本公开实施例提供的一种推导过程的示意图;
图3为本公开实施例提供的一种不同集合的示意图;
图4为本公开实施例提供的一种推导流程的示意图;
图5为本公开实施例提供的另一种推导流程的示意图;
图6为本公开实施例提供的一种页面显示装置的结构示意图;以及
图7为本公开实施例提供的一种电子设备的结构示意图。
经研究发现,对于一些页面调整方案,比如,页面置灰方案来说,如果想要在页面置灰前提下实现将该页面中指定区域保持彩色,则需要针对该页面中无需保持彩色的区域分别进行置灰处理,而且该处理过程具体为:对于该页面中的图像数据,需要由服务端下发置灰处理后的图像数据;对于终端设备的本地资源,需要在该终端设备内置相应的灰色版本等等。
经研究也发现,上段所示的页面置灰方案存在以下不足:因该页面置灰方案比较复杂,导致该页面置灰方案的成本(比如,开发成本等)比较高。
经研究还发现,对于一个页面来说,如果该页面中某个视图组件的颜色被调整了(比如,添加了某种颜色滤镜),则该页面中该视图组件的整个显示区域内颜色都会发生变化。基于此可知,本公开可以借助针对视图组件的颜色调整处理,实现针对页面中部分区域的颜色调整处理(比如,置灰处理)。
基于上述发现,本公开还提供了一种页面显示方法,该方法包括:在获取到被用户请求的目标页面对应的多个对象(比如,视图组件或者视图组件区域)之后,先依据预设对象显示约束,从这些对象中确定待调整对象和待
保持对象,以使该待调整对象用于表示该目标页面中存在的、应该按照预设显示信息(比如,灰色)进行显示的对象,并使得该待保持对象用于表示该目标页面中存在的、应该保持原始显示信息进行显示的对象;再根据该待调整对象、该待保持对象以及该预设显示信息,显示目标页面,以使处于显示状态的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该处于显示状态的目标页面中待保持对象对应的显示信息与该预设显示信息不一致(也就是,该处于显示状态的目标页面中待保持对象对应的显示信息依旧为原始的显示信息),如此能够实现将该目标页面中部分区域按照该预设显示信息进行调整显示的目的,从而能够更好地满足页面调整需求,进而有利于提高页面调整效果。
可见,因本公开是通过调整一个页面中部分对象的方式实现针对该页面中部分区域的显示调整处理(比如,置灰处理),如此能够有效地简化页面调整流程,从而能够有效地降低页面调整成本。
另外,本公开不限定页面显示方法的执行主体,例如,本公开实施例提供的页面显示方法的任一实施方式可以应用于终端设备或服务器等具有数据处理功能的设备。又如,本公开实施例提供的页面显示方法的任一实施方式也可以借助不同设备(例如,终端设备与服务器、两个终端设备、或者两个服务器)之间的数据通信过程进行实现。其中,终端设备可以为智能手机、计算机、个人数字助理(Personal Digital Assitant,PDA)或平板电脑等。服务器可以为独立服务器、集群服务器或云服务器。
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
为了更好地理解本公开所提供的技术方案,下面先结合一些附图对本公开提供的页面显示方法进行说明。如图1所示,本公开实施例提供的页面显示方法,包括下文S1-S3。其中,该图1为本公开实施例提供的一种页面显示方法的流程图。
S1:获取目标页面对应的多个对象。
其中,目标页面是指需要进行页面显示处理(比如,置灰处理等)的页面;而且本公开不限定该目标页面,例如,该目标页面可以是指任意一个被用户请求的页面。
基于上段内容可知,在一种可能的实施方式下,当本公开提供的页面显示方法应用于客户端时,如果该客户端接收到用户触发的页面显示请求,则上文目标页面可以是指由该页面显示请求所请求的页面。需要说明的是,本公开不限定该页面显示请求的实施方式,比如,该页面显示请求至少可以携带有该目标页面的统一资源定位器(Uniform Resource Locator,URL)。
对象是指在针对上文目标页面进行页面显示处理时所需参考的要素;而且本公开不限定该对象,比如,该对象可以是指视图组件,该视图组件是一种页面构建元素。又如,该对象也可以是指视图组件区域,该视图组件区域是指一个视图组件在该目标页面上所占区域。
另外,本公开不限定上文“多个对象”的实施方式,例如,在一些应用场景下,当该对象采用视图组件进行实施时,该目标页面的多个对象可以包括该目标页面中的全部或者部分视图组件(比如,图2或者图3所示的视图组件1-视图组件8)。又如,在一些应用场景下,当该对象采用视图组件区域进行实施时,该目标页面的多个对象可以包括该目标页面中的全部或者部分视图组件区域。
此外,本公开不限定上文“多个对象”的获取过程的实施方式,例如,其可以采用现有的或者未来出现的任意一种能够获取一个页面对应的多个对象的方法进行实施。
又如,当本公开提供的页面显示方法应用于客户端时,上文“多个对象”可以由能够与该客户端进行数据通信的服务端所提供。
还如,在一些应用场景下,上文“多个对象”的获取过程具体可以为:在获取到目标页面的对象树之后,将该对象树中所有对象确定为该“多个对象”。其中,该目标页面的对象树用于描述该目标页面对应的多个对象中不同对象之间的父子关系;而且本公开不限定该对象树的实施方式,比如,当该对象采用视图组件进行实施时,该对象树可以采用视图树进行实施;该视图树用于描述该目标页面的视图层级结构,以使该视图树能够表示出该目标页面中不同视图组件之间的父子关系;而且本公开不限定该视图树,比如,当
该目标页面包括图2或者图3所示的视图组件1-视图组件8时,该目标页面的视图树可以为图2或者图3所示的树结构。又如,当该对象采用视图组件区域进行实施时,该对象树可以采用由多个视图组件区域所构建的树结构进行实施;该“由多个视图组件区域所构建的树结构”用于描述该目标页面中不同视图组件区域之间的父子关系。
此外,本公开不限定上文S1的触发时机,比如,S1具体可以为:在接收到页面显示请求之后,获取由该页面显示请求所请求的目标页面的多个对象。其中,该页面显示请求用于请求该目标页面;而且本公开不限定该页面显示请求的触发方式,例如,其可以采用现有的或者未来出现的任意一种能够针对一个页面触发页面显示请求的方式(比如,通过点击页面地址链接等)进行实施。
基于上文S1的相关内容可知,对于一个客户端来说,如果在该客户端接收到针对目标页面所触发的页面显示请求之后,获取该目标页面的多个对象(比如,视图组件或者视图组件区域),以便后续能够基于这些对象,完成页面显示调整处理,以使最终能够将调整处理后的页面显示给用户。
S2:依据预设对象显示约束,从多个对象中确定待调整对象和待保持对象。
其中,预设对象显示约束用于约束当上文目标页面进行显示时所呈现的某种状态(比如,颜色分布情况、纹理分布情况或者一些对象对应的显示形状等),以使该预设对象显示约束能够表示出需要将该目标页面中哪些区域进行调整显示(比如,调整为目标颜色进行显示),并将该目标页面中哪些区域保持原始状态(比如,保持原始颜色)进行显示。该目标颜色是指在针对一个页面进行颜色调整处理时所需依据的颜色;该目标颜色可以预先依据应用场景进行确定;而且本公开不限定该目标颜色,比如,该目标颜色可以为灰色。需要说明的是,本公开中“原始颜色”是指由一个对象的颜色属性所描述的颜色。
另外,上文预设对象显示约束可以预先依据实际应用场景进行设定,以使该预设对象显示约束能够更好地表示出在该实际应用场景的页面显示调整需求(比如,颜色调整需求、纹理调整需求或者对象显示形状调整需求等)。
此外,本公开不限定上文预设对象显示约束的获取方式,例如,可以借
助人工标注方式进行实施。
还有,本公开不限定上文预设对象显示约束的实施方式,例如,在一些应用场景下,该预设对象显示约束可以包括上文“多个对象”中被标记对象的显示约束标记(比如,显示颜色约束标记、纹理约束标记或者显示形状约束标记等)。其中,该被标记对象是指在上文目标页面中存在的、被预先添加了某种显示约束标记的对象(比如,图2或者图3所示的视图组件1和视图组件5);而且该被标记对象可以由用户依据实际的应用场景进行预先指定的。该显示约束标记是指预先针对该被标记对象所标记的、用于约束该被标记对象对应的显示信息的数据(比如,字符串、图像等);该被标记对象对应的显示信息用于描述该被标记对象在目标页面上所呈现的显示状态。
另外,本公开不限定上文显示约束标记的实施方式,比如,在一些应用场景(比如,类似于置灰场景等页面颜色调整场景)下,该显示约束标记可以采用显示颜色约束标记进行实施,该显示颜色约束标记是指预先针对该被标记对象所标记的、用于约束该被标记对象对应的显示颜色的数据(比如,字符串、图像等)。又如,在一些应用场景(比如,页面纹理调整场景)下,该显示约束标记可以采用显示纹理约束标记进行实施,该显示纹理约束标记是指预先针对该被标记对象所标记的、用于约束该被标记对象对应的显示纹理的数据(比如,某种花纹纹理、某种阴影纹理等)。还如,在另一些应用场景(比如,对象显示形状调整场景)下,该显示约束标记可以采用显示形状约束标记进行实施,该显示形状约束标记是指预先针对该被标记对象所标记的、用于约束该被标记对象对应的显示形状的数据(比如,字符串、图像等)。
此外,本公开不限定上文显示约束标记,比如,该显示约束标记可以包括显示调整标记(比如,图2或者图3所示的“需要置灰标记”这一颜色调整标记)和/或显示保持标记(比如,图2或者图3所示的“不能置灰标记”这一颜色保持标记)。该显示调整标记用于标记一个对象可能需要进行显示调整处理(比如,进行颜色调整处理、纹理调整处理或者形状调整处理等);该显示保持标记用于标记一个对象不能进行显示调整处理。
待调整对象是指上文目标页面中存在的、需要按照预设显示信息(比如,目标颜色、目标纹理或者目标形状)进行显示的对象(比如,图2所示的视图组件3、视图组件4以及视图组件6)。其中,该预设显示信息是指在针对
页面中某个对象进行调整显示时所需依据的信息;而且本公开不限定该预设显示信息,比如,在一些应用场景(比如,类似于置灰场景等页面颜色调整场景)下,该预设显示信息可以为目标颜色(比如,灰色)。又如,在一些应用场景(比如,页面纹理调整场景)下,该预设显示信息可以为目标纹理(比如,某种花纹纹理、某种阴影纹理等)。其中,该目标纹理是指在针对一个页面进行显示纹理调整处理时所需依据的纹理;该目标纹理可以预先依据应用场景进行确定;而且本公开不限定该目标纹理,比如,该目标纹理可以为某种花纹纹理、某种阴影纹理等。还如,在另一些应用场景(比如,对象显示形状调整场景)下,该显示约束标记可以采用显示形状约束标记进行实施,该预设显示信息可以为目标形状(比如,灯笼形状、树木形状等)。其中,该目标形状是指在针对一个页面进行显示形状调整处理时所需依据的形状;该目标形状可以预先依据应用场景进行确定;而且本公开不限定该目标形状,比如,该目标形状可以为灯笼形状或者树木形状等。
待保持对象是指上文目标页面中存在的、需要按照原始显示信息进行显示的对象(比如,图2所示的视图组件1、视图组件2、视图组件5、视图组件7以及视图组件8)。其中,该原始显示信息是指预先针对一个对象所配置的显示信息(比如,由该对象的配置属性所描述的显示信息)。
另外,本公开不限定上文S2的实施方式,例如,当上文预设对象显示约束包括一些对象的显示调整标记以及一些对象的显示保持标记时,该S2具体可以为:将具有显示调整标记的各个对象均确定为待调整对象,并将具有显示保持标记的各个对象均确定为待保持对象。
经研究发现,对于一个页面来说,如果该页面中某个视图组件被调整为目标颜色(目标纹理或者目标形状),则该视图组件在该页面中所处的显示区域内均是按照该目标颜色(目标纹理或者目标形状)进行显示的,从而使得该视图组件的子组件的显示区域内也会相应地被调整为目标颜色(目标纹理或者目标形状)。可见,对于具有父子关系的视图组件来说,针对父组件的颜色调整处理(显示纹理调整处理或者显示形状调整处理)会影响到针对子组件的颜色调整处理(显示纹理调整处理或者显示形状调整处理),故对于任意一个视图组件来说,该视图组件是否需要进行颜色调整处理(显示纹理调整处理或者显示形状调整处理)的这一决策可以由该视图组件的父组件以及子
组件共同决定的。
基于上段发现可知,为了更好地节省成本,上文预设对象显示约束所涉及的被标记对象的个数可以远远少于上文“多个对象”中的对象个数。可见,在一种可能的实施方式下,上文预设对象显示约束可以只包括少量被标记对象的显示约束标记,以便后续能够借助这些被标记对象的显示约束标记以及上文目标页面中不同对象之间的父子关系,推导出该目标页面中每个对象是否需要进行显示调整处理,如此能够有效地节省标记成本,从而有利于降低页面显示调整成本。
基于上段内容,本公开还提供了上文S2的一种可能的实施方式,其具体可以为:依据预设对象显示约束以及对象树,从上文目标页面对应的多个对象中确定待调整对象和待保持对象。其中,该对象树用于描述该多个对象中不同对象之间的父子关系;而且对象树的相关内容请参见上文。
另外,本公开不限地上文步骤“依据预设对象显示约束以及对象树,从上文目标页面对应的多个对象中确定待调整对象和待保持对象”的实施方式,例如,其可以至少包括:若该预设对象显示约束包括第一参考对象的显示保持标记,则可以根据该第一参考对象以及该第一参考对象的关联对象,确定该待保持对象(比如,将该第一参考对象以及该第一参考对象的各个关联对象均确定为该待保持对象)。其中,该第一参考对象是指上文目标页面中存在的、被添加了该显示保持标记的对象(比如,图2或者图3所示的视图组件5);而且本公开不限定该第一参考对象的个数。该第一参考对象的关联对象是指在显示调整方面上受到该第一参考对象影响的对象;而且该第一参考对象的关联对象可以依据上文对象树中包括该第一参考对象的路径进行确定,以使该第一参考对象的关联对象包括该路径中除了该第一参考对象以外的其他所有对象。为了便于理解,下面结合图2进行说明。
作为示例,假设上文目标页面包括图2所示的视图组件1-视图组件8,上文对象采用视图组件进行实施,上文预设显示信息采用灰色进行实施,而且上文显示保持标记采用图2所示的“不能置灰标记”这一标记进行实施。基于该假设可知,如图2所示,如果预先针对视图组件5添加了不能置灰标记,则该视图组件5应该保持原始颜色;因视图组件2为视图组件5的父组件,则受该视图组件5的影响,该视图组件2也应该保持原始颜色;因视图
组件1为该视图组件2的父组件,则受该视图组件2的影响,该视图组件1也应该保持原始颜色;因视图组件7和视图组件8均为该视图组件5的子组件,则受该视图组件5的影响,该视图组件7和视图组件8也应该保持原始颜色。基于此可知,虽然只针对视图组件5添加了不能置灰标记,但是借助对象树可以推导出视图组件1、视图组件2、视图组件5、视图组件7以及视图组件8均应该保持原始颜色(也就是,不进行置灰处理)。
需要说明的是,本公开所涉及的“路径”是指对象树中存在的一种路径,例如,对于图2所示的树结构来说,包括视图组件5路径可以至少包括“视图组件1→视图组件2→视图组件5→视图组件7”这一路径、以及“视图组件1→视图组件2→视图组件5→视图组件8”这一路径等。
基于上述两段内容可知,对于上文“多个对象”中的任意一个对象来说,如果该对象被添加了显示保持标记或者该对象的任意一个关联对象被添加了显示保持标记,则可以确定该对象应该保持原始颜色进行显示,故可以将该对象视为待保持对象即可,以确保该对象在页面显示调整处理过程中不被调整为目标颜色、目标纹理或者目标形状。
基于上段内容可知,在一种可能的实施方式下,对于上文目标页面对应的多个对象来说,如果上文预设对象显示约束包括该多个对象中第一参考对象的显示保持标记,则可以先从该目标页面的对象树中确定包括该第一参考对象的路径;再将该路径中的所有对象均确定为待保持对象,以使该待保持对象可以包括该路径中的所有对象;然后,将该对象树中除了这些待保持对象以外的其他对象均确定为待调整对象。
基于上述内容,本公开还提供了上文S2的一种可能的实施方式,在该实施方式下,当上文“多个对象”包括N个对象(比如,上文目标页面中存在N个对象)时,该S2具体可以包括下文步骤11-步骤12。
步骤11:判断上文预设对象显示约束中是否包括第n个对象的显示调整标记或者该第n个对象的至少一个直系父族对象的显示调整标记,得到第一判断结果;n为正整数,n≤N;该直系父族对象是依据上文对象树中包括该第n个对象的路径所确定的。
其中,第n个对象的直系父族对象是指上文目标页面中存在的、直系的、辈分高于该第n个对象的对象(比如,父对象、祖父对象、曾祖对象、……
等)。例如,当该第n个对象为图2所示的视图组件5时,因图2所示的视图组件2为该视图组件5的父组件,而且图2所示的视图组件1为该视图组件5的祖父组件,则该视图组件2以及该视图组件1均是该第n个对象的直系父族对象。
另外,对于上文第n个对象(比如,图2所示的视图组件5)来说,该第n个对象的所有直系父族对象均可以依据对象树中包括该第n个对象的路径进行确定,以使该第n个对象的所有直系父族对象包括每个路径中所有辈分高于该第n个对象的对象(比如,图2所示的视图组件1和视图组件2均是辈分高于视图组件5的视图组件)。
第一判断结果用于表示上文预设对象显示约束中是否包括第n个对象的显示调整标记或者该第n个对象的至少一个直系父族对象的显示调整标记。
步骤12:根据上文第一判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定步骤12的实施方式,例如,其具体可以包括下文步骤121-步骤123。
步骤121:若上文第一判断结果表示上文预设对象显示约束不包括第n个对象的显示调整标记以及该第n个对象的所有直系父族对象的显示调整标记,则将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
基于上文步骤121的相关内容可知,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定上文预设对象显示约束不包括该对象的显示调整标记时,可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象;但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则只有在确定出上文预设对象显示约束不包括该对象的显示调整标记以及该对象的所有直系父族对象的显示调整标记时,才能确定出无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象。
步骤122:若上文第一判断结果表示上文预设对象显示约束包括第n个对象的显示调整标记或者该第n个对象的至少一个直系父族对象的显示调整
标记,则判断该预设对象显示约束是否还包括该第n个对象的显示保持标记或者该第n个对象的至少一个直系父族对象的显示保持标记,得到第二判断结果。其中,n为正整数,n≤N。
其中,第二判断结果用于表示上文预设对象显示约束是否还包括第n个对象的显示保持标记或者第n个对象的至少一个直系父族对象的显示保持标记。
步骤123:根据上文第二判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定步骤123的实施方式,例如,其具体可以包括下文步骤1231-步骤1233。
步骤1231:若上文第二判断结果表示上文预设对象显示约束还包括该第n个对象的显示保持标记或者该第n个对象的至少一个直系父族对象的显示保持标记时,将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
本公开中,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定上文预设对象显示约束包括该对象的显示调整标记时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了进一步确认,可以继续判断该预设对象显示约束是否还包括该第n个对象的显示保持标记,以便在确定出该预设对象显示约束还包括该第n个对象的显示保持标记时,可以确定出无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象;
但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则在确定上文预设对象显示约束包括该对象的显示调整标记或者该对象的至少一个直系父族对象的显示调整标记时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了进一步确认,可以继续判断该预设对象显示约束是否还包括该对象的显示保持标记或者该对象的至少一个直系父族对象的显示保持标记,以便在确定出该预设对象显示约束还包括该对象的显示保持标记或者该对象的至少一个直系父族对象的显示保持标记时,可以确定出无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保
持对象。
步骤1232:若上文第二判断结果表示上文预设对象显示约束不包括第n个对象的显示保持标记以及该第n个对象的所有直系父族对象的显示保持标记,则判断该预设对象显示约束中是否存在该第n个对象的直系子族对象的显示保持标记,得到第三判断结果;该直系子族对象是依据上文对象树中包括该第n个对象的路径所确定的。其中,n为正整数,n≤N。
其中,第n个对象的直系子族对象是指上文目标页面中存在的、直系的、辈分低于该第n个对象的对象(比如,子对象、孙对象、曾孙对象、……等)。例如,当该第n个对象为图2所示的视图组件5时,因图2所示的视图组件7和视图组件8均为该视图组件5的子组件,则该视图组件7以及该视图组件8均是该第n个对象的直系子族对象。
另外,对于上文第n个对象(比如,图2所示的视图组件5)来说,该第n个对象的所有直系子族对象均可以依据对象树中包括该第n个对象的路径进行确定,以使该第n个对象的所有直系子族对象包括每个路径中所有辈分低于该第n个对象的对象。
第三判断结果用于表示上文预设对象显示约束中是否存在第n个对象的直系子族对象的显示保持标记。
步骤1233:根据上文第三判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定上文第三判断结果的使用过程,例如,其具体可以包括下文步骤12331-步骤12332。
步骤12331:若上文第三判断结果表示上文预设对象显示约束中存在第n个对象的至少一个直系子族对象的显示保持标记,则将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
步骤12332:若上文第三判断结果表示上文预设对象显示约束中不存在第n个对象的所有直系子族对象的显示保持标记,则将该第n个对象确定为待调整对象。其中,n为正整数,n≤N。
基于上文步骤1232与步骤1233的相关内容可知,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定出上文预设对象显示
约束包括该对象的显示调整标记,并且确定该预设对象显示约束不包括该对象的显示保持标记时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了更进一步确认,可以继续判断该预设对象显示约束中是否存在该对象的直系子族对象的显示保持标记,若存在一个或者多个直系子族对象的显示保持标记,则可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象,若不存在所有直系子族对象的显示保持标记,则可以确定需要将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待调整对象;
但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则在确定出上文预设对象显示约束包括该对象的显示调整标记或者该对象的至少一个直系父族对象的显示调整标记,并且确定出该预设对象显示约束不包括该对象的显示保持标记以及该对象的所有直系父族对象的显示保持标记时,若该目标页面的对象树中不存在该对象的直系子族对象(也就是,该对象是该对象树中叶子节点),则可以直接确定需要将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待调整对象;然而,若该目标页面的对象树中存在该对象的直系子族对象(也就是,该对象不是该对象树中叶子节点也不是根节点),则可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了更进一步确认,可以继续判断该预设对象显示约束中是否存在该对象的直系子族对象的显示保持标记,若存在一个或者多个直系子族对象的显示保持标记,则可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象,若不存在所有直系子族对象的显示保持标记,则可以确定需要将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待调整对象。
基于上文步骤11至步骤12的相关内容可知,对于目标页面中的任意一个对象来说,可以依据上文预设对象显示约束以及该对象的关联对象,推导出是否需要将该对象对应的显示信息按照预设显示信息进行调整处理(比如,图4所示的推导过程),并基于该推导结果,判断出该对象属于待保持对象或者待调整对象。
经研究发现,对于上文步骤11-步骤12所示的推导过程来说,因该推导过程涉及直系子族对象的查找以及判断过程,而且一个对象的直系子族对象往往比较多,如此可能会导致该推导过程的耗时有点长。
为了更好地降低推导耗时,本公开还提供了上文S2的另一种可能的实施方式,在该实施方式中,当上文预设对象显示约束包括第一参考对象的显示保持标记以及第二参考对象的显示调整标记时,该S2具体可以包括下文步骤21-步骤22。
步骤21:依据上文预设对象显示约束以及上文对象树,确定调整标记集、保持标记集以及保持参考集,该调整标记集包括第二参考对象;该保持标记集包括第一参考对象;该保持参考集包括该第一参考对象以及该第一参考对象的直系父族对象。
其中,调整标记集用于记录被预先添加了显示调整标记的对象。可见,当上文预设对象显示约束包括第二参考对象的显示调整标记时,该调整标记集可以包括该第二参考对象(比如,图2或者图3所示的视图组件1)。其中,该第二参考对象是指上文目标页面中存在的、被添加了该显示调整标记的对象;而且本公开不限定该第二参考对象的个数。
保持标记集用于记录被预先添加了显示保持标记的对象。可见,当上文预设对象显示约束包括第一参考对象的显示保持标记时,该保持标记集可以包括该第一参考对象(比如,图2或者图3所示的视图组件5)。其中,该第一参考对象的相关内容请参见上文。
保持参考集用于记录被预先添加了显示保持标记的对象及其直系父族对象。可见,当上文预设对象显示约束包括第一参考对象的显示保持标记时,该保持参考集可以包括该第一参考对象以及该第一参考对象的所有直系父族对象。其中,该直系父族对象是依据上文对象树中包括该第一参考对象的路径所确定的。需要说明的是,该第一参考对象的直系父族对象的确定过程类似于上文“第n个对象的直系父族对象”的确定过程。
基于上文步骤21的相关内容可知,在获取到上文目标页面的多个对象(比如,图3所示的视图组件1-视图组件8)之后,可以依据预设对象显示约束以及该目标页面的对象树(比如,图3所示的树结构),构建调整标记集(比如,图3所示的清单1)、保持标记集(比如,图3所示的清单2)以及
保持参考集(比如,图3所示的清单3),以使该调整标记集用于记录所有具有显示调整标记的对象(比如,图3所示的视图组件1),并使得该保持标记集用于记录所有具有显示保持标记的对象(比如,图3所示的视图组件5),还使得该保持参考集用于记录所有具有显示保持标记的对象及其直系父族对象(比如,图3所示的视图组件5、该视图组件5的父组件-视图组件2、以及该视图组件5的祖父组件-视图组件1),以便后续能够参考这三个集合推导出该目标页面中哪些对象对应的显示信息需要按照预设显示信息进行调整处理以及哪些对象对应的显示信息不需要按照预设显示信息进行调整处理。
步骤22:依据上文调整标记集、上文保持标记集以及上文保持参考集,从上文目标页面对应的多个对象中确定待调整对象和待保持对象。
需要说明的是,本公开不限定步骤22的实施方式,为了便于说明,下面结合示例进行说明。
作为示例,当上文“目标页面的多个对象”包括N个对象时,该步骤22具体可以包括下文步骤221-步骤222。
步骤221:判断上文调整标记集是否包括第n个对象或者该第n个对象的至少一个直系父族对象,得到第四判断结果。其中,n为正整数,n≤N。
其中,第四判断结果用于表示上文调整标记集是否包括第n个对象或者该第n个对象的至少一个直系父族对象。
步骤222:根据上文第四判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定上文步骤222的实施方式,例如,其具体可以包括下文步骤2221-步骤2223。
步骤2221:若上文第四判断结果表示上文调整标记集不包括第n个对象以及该第n个对象的所有直系父族对象,则将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
本公开中,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定该第n个对象不属于上文调整标记集时,可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定
为待保持对象;但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则只有在确定出该对象以及该对象的所有直系父族对象都不属于该调整标记集时,才能确定出无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象。
步骤2222:上文第四判断结果表示上文调整标记集包括该第n个对象或者该第n个对象的至少一个直系父族对象,则判断上文保持标记集是否包括该第n个对象或者该第n个对象的至少一个直系父族对象,得到第五判断结果。其中,n为正整数,n≤N。
其中,第五判断结果用于表示上文保持标记集是否包括第n个对象或者该第n个对象的至少一个直系父族对象。
步骤2223:根据上文第五判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定上文步骤222的实施方式,例如,其具体可以包括下文步骤22231-步骤22233。
步骤22231:若上文第五判断结果表示上文保持标记集包括第n个对象或者该第n个对象的至少一个直系父族对象,则将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
本公开中,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定出该对象属于上文调整标记集时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了进一步确认,可以继续判断该对象是否属于上文保持标记集,以便在确定该对象属于该保持标记集时,可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象;
但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则在确定出该对象属于该调整标记集或者该对象的至少一个直系父族对象属于该调整标记集时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了进一步确认,可以继续判断该对象或者该对象的至少一个直系父族对象是否属于上文
保持标记集,以便在确定出该对象属于该保持标记集或者该对象的至少一个直系父族对象属于该保持标记集时,可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象。
步骤22232:若上文第五判断结果表示上文保持标记集不包括第n个对象以及该第n个对象的所有直系父族对象,则判断该第n个对象是否属于保持参考集,得到第六判断结果。其中,n为正整数,n≤N。
其中,第六判断结果用于表示上文第n个对象是否属于保持参考集。
步骤22233:根据上文第六判断结果,确定第n个对象是否为待保持对象。其中,n为正整数,n≤N。
需要说明的是,本公开不限定上文第六判断结果的使用过程,例如,其具体可以包括下文步骤222331-步骤222332。
步骤222331:若上文第六判断结果表示第n个对象属于保持参考集,则将该第n个对象确定为待保持对象。其中,n为正整数,n≤N。
步骤222332:若上文第六判断结果表示第n个对象不属于保持参考集,则将该第n个对象确定为待调整对象。其中,n为正整数,n≤N。
基于上文步骤22232-步骤22233的相关内容可知,对于上文目标页面中的任意一个对象来说,如果该目标页面的对象树中不存在该对象的直系父族对象(也就是,该对象是该对象树中根节点),则在确定出该对象属于上文调整标记集,并且确定出该对象不属于上文保持标记集时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了进一步确认,可以继续判断该对象是否属于保持参考集,若该对象属于该保持参考集,则可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象,若该对象不属于该保持参考集,则可以确定需要将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待调整对象。
但是,如果该目标页面的对象树中存在该对象的直系父族对象(也就是,该对象不是该对象树中根节点),则在确定出该对象属于该调整标记集或者该对象的至少一个直系父族对象属于该调整标记集,并且确定出该对象以及该第n个对象的所有直系父族对象均不属于上文保持标记集时,可以确定有可能需要将该对象对应的显示信息按照预设显示信息进行调整处理,故为了
进一步确认,可以继续判断该对象是否属于保持参考集,若该对象属于该保持参考集,则可以确定无需将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待保持对象,若该对象不属于该保持参考集,则可以确定需要将该对象对应的显示信息按照预设显示信息进行调整处理,故可以将该对象确定为待调整对象。
基于上文步骤221至步骤222的相关内容可知,对于目标页面的多个对象来说,首先,可以依据上文预设对象显示约束以及该目标页面的对象树(比如,图3所示的对象树),构建调整标记集(比如,图3所示的清单1)、保持标记集(比如,图3所示的清单2)以及保持参考集(比如,图3所示的清单3);然后,对于该目标页面中任意一个对象来说,可以利用该调整标记集、该保持标记集以及该保持参考集,推导出是否需要将该对象对应的显示信息按照预设显示信息进行调整处理(比如,图5所示的推导过程),并基于该推导结果,判断出该对象属于待保持对象或者待调整对象。可见,因在这种推导方式中无需使用直系子族对象,以使这种推导方式能够有效地克服因执行直系子族对象的查找以及判断过程而导致的耗时问题,如此能够有效地降低推导耗时,从而有利于提高推导效率,进而有利于提高页面显示调整效率。
基于上文S2的相关内容可知,在获取到上文目标页面的多个对象(比如,图2所示的视图组件1-视图组件8)之后,可以依据预设对象显示约束,从这些对象中确定待调整对象和待保持对象,以使该待调整对象用于表示该目标页面中存在的、应该按照预设显示信息进行调整显示的对象(比如,图2所示的视图组件3、视图组件4以及视图组件6),并使得该待保持对象用于表示该目标页面中存在的、应该保持原始显示信息进行显示(也就是,无需按照预设显示信息进行调整显示)的对象(比如,图2所示的视图组件1、视图组件2、视图组件5、视图组件7以及视图组件8),以便后续能够基于该待调整对象和该待保持对象,完成针对该目标页面的页面显示调整处理。
S3:根据待保持对象、待调整对象以及该待调整对象对应的预设显示信息,显示目标页面。
其中,对于处于显示状态的目标页面来说,该目标页面中待调整对象对应的显示信息与上文预设显示信息一致,而且该目标页面中待保持对象对应
的显示信息与上文预设显示信息不一致(也就是,待保持对象对应的显示信息依旧是该待保持对象对应的原始显示信息)。比如,当该对象采用视图组件进行实施,而且该预设显示信息采用目标颜色进行实施时,该目标页面中待调整对象的显示区域内颜色被调整为目标颜色,而且该目标页面中待保持对象的显示区域内颜色保持原始颜色。
另外,本公开不限定上文处于显示状态的目标页面的实现方式,比如,当上文待调整对象包括视图组件区域时,在该处于显示状态的目标页面上视图组件区域上覆盖有滤镜(比如,置灰滤镜等),该滤镜是根据该预设显示信息确定的,以使添加有该滤镜的区域所呈现的显示信息与该预设显示信息一致。又如,当上文待调整对象包括视图组件时,在该处于显示状态的目标页面上视图组件的显示区域上覆盖有滤镜。
此外,本公开不限定上文S3的实施方式,为了便于理解,下面结合一些示例进行说明。
示例1,在一些情况下(比如,该目标页面中各个对象的颜色/纹理/形状从未被调整处理过),如果上文目标页面中各个对象对应的显示信息均为相应的原始显示信息,则上文S3具体可以为:按照上文预设显示信息,对该目标页面中待调整对象对应的显示信息进行调整处理,以使处理后的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该目标页面中除了该待调整对象以外的其他对象(也就是,上文待保持对象)对应的显示信息与该预设显示信息不一致(也就是,依据保持其相应的原始显示信息)。其中,该调整处理用于将一个对象对应的显示信息从该对象的原始显示信息调整为该预设显示信息;而且本公开不限定该调整处理,比如,其可以依据实际的应用场景进行设定。又如,在一些应用场景下,该调整处理可以通过添加该预设显示信息对应的滤镜(比如,图4以及图5所示的“添加置灰滤镜”)这一方式进行实施。
示例2,在一些情况下(比如,该目标页面中各个对象的颜色/纹理/形状均被调整处理过),如果上文目标页面中各个对象对应的显示信息均已被调整为预设显示信息,则上文S3具体可以为:将该目标页面中待保持对象进行还原处理,以使处理后的目标页面中待保持对象对应的显示信息从该预设显示信息还原至该待保持对象的原始显示信息,并使得该目标页面中除了该
待保持对象以外的其他对象(比如,待调整对象)对应的显示信息依旧为预设显示信息。其中,该还原处理是指上文调整处理的逆过程,以使该还原处理可以用于将一个对象对应的显示信息从该预设显示信息还原至该对象的原始显示信息;而且本公开不限定该还原处理,比如,其可以依据实际的应用场景进行设定。又如,在一些应用场景下,如果上文调整处理是通过添加该预设显示信息对应的滤镜这一方式进行实施的,则该还原处理可以采用撤除该预设显示信息对应的滤镜这一方式进行实施。
示例3,在一些情况下(比如,该目标页面中存在一个或者多个待保持对象的颜色/纹理/形状被调整处理过,而且该目标页面中也存在一个或者多个待调整对象的颜色/纹理/形状未被调整处理过),如果上文目标页面中待调整对象对应的显示信息与上文预设显示信息不一致,而且该目标页面中待保持对象对应的显示信息与该预设显示信息一致,则S3具体可以包括:按照预设显示信息对该目标页面中待调整对象对应的显示信息进行调整处理,并将该目标页面中待保持对象对应的显示信息进行还原处理,以使处理后的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该目标页面中待保持对象对应的显示信息还原至该待保持对象的原始显示信息(比如,原始颜色等)。
示例4,在一些情况下(比如,该目标页面中各个待调整对象的颜色/纹理/形状均被调整处理过,而且该目标页面中各个待保持对象的颜色/纹理/形状均未被调整处理过),如果上文目标页面中待调整对象对应的显示信息与上文预设显示信息一致,而且该目标页面中待保持对象对应的显示信息与该预设显示信息不一致(也就是,该待保持对象对应的显示信息为该待保持对象的原始显示信息),则上文S3具体可以为:无需针对目标页面进行任何处理,直接显示即可,以使处于显示状态的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该目标页面中待保持对象对应的显示信息还原至该待保持对象的原始显示信息(比如,原始颜色等)。
基于上述四个示例的相关内容可知,对于上文目标页面来说,如果该目标页面中存在待调整对象对应的显示信息依旧保持该待调整对象的原始显示信息,则可以按照上文预设显示信息对该待调整对象对应的显示信息进行调整处理(比如,添加该预设显示信息对应的滤镜等处理);但是,如果目标
页面中所有待调整对象的对应的显示信息均已被调整为该预设显示信息,则无需针对该目标页面中所有待调整对象进行任何处理;类似的,如果该目标页面中所有待保持对象对应的显示信息依旧保持其相应的原始显示信息,则无需针对该目标页面中所有待保持对象进行任何处理;但是,如果该目标页面中存在待保持对象对应的显示信息被调整为该预设显示信息,则可以对该待保持对象进行还原处理(比如,撤除该预设显示信息对应的滤镜等处理),如此能够实现针对该目标页面的显示处理过程,以使最终显示的目标页面中所有待调整对象对应的显示信息均与该预设显示信息一致,并使得最终显示的目标页面中所有待保持对象对应的显示信息均均其相应的原始显示信息,从而使得该目标页面符合当前应用场景下的页面显示调整需求。
基于上文S1至S3的相关内容可知,对于本公开实施例提供的页面显示方法来说,在获取到被用户请求的目标页面对应的多个对象(比如,视图组件或者视图组件区域)之后,先依据预设对象显示约束,从这些对象中确定待调整对象和待保持对象,以使该待调整对象用于表示该目标页面中存在的、应该按照预设显示信息(比如,灰色)进行显示的对象,并使得该待保持对象用于表示该目标页面中存在的、应该保持原始显示信息进行显示的对象;再根据该待调整对象、该待保持对象以及该预设显示信息,显示目标页面,以使处于显示状态的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该处于显示状态的目标页面中待保持对象对应的显示信息与该预设显示信息不一致(也就是,该处于显示状态的目标页面中待保持对象对应的显示信息依旧为原始的显示信息),如此能够实现将该目标页面中部分区域按照该预设显示信息进行调整显示的目的,从而能够更好地满足页面调整需求,进而有利于提高页面调整效果。
可见,因本公开是通过调整一个页面中部分对象的方式实现针对该页面中部分区域的显示调整处理(比如,置灰处理),如此能够有效地简化页面调整流程,从而能够有效地降低页面调整成本。
实际上,对于一个页面来说,因该页面的视图层级结构可能会发生变化,导致该页面的对象树不是一成不变的,例如,有时候可能会向该对象树中添加新的对象(比如,添加新的视图组件),有时候也可能从该对象树中删除某些已有的对象,有时候还可以调整该对象树中一些已有的对象之间的关联关
系。
基于上段内容可知,为了有效地避免因一个页面的视图层级结构发生变化而导致的问题,本公开还提供了上文页面显示方法的一种可能的实施方式,在该实施方式中,该页面显示方法可以包括下文步骤41-步骤44。
步骤41:获取目标页面的多个对象。
需要说明的是,步骤41的相关内容请参见上文S1,为了简要起见,在此不再赘述。
步骤42:依据预设对象显示约束,从上文目标页面的多个对象中确定待调整对象和待保持对象。
需要说明的是,步骤42的相关内容请参见上文S2,为了简要起见,在此不再赘述。
步骤43:根据上文待调整对象、上文待保持对象及该待调整对象对应的预设显示信息,显示目标页面。
需要说明的是,步骤43的相关内容请参见上文S3,为了简要起见,在此不再赘述。
步骤44:若检测到目标页面的对象树发生变化,则基于具有更新后的对象树的目标页面,重新执行上文步骤41及其后续步骤。
基于上文步骤41至步骤44的相关内容可知,在一些应用场景下,可以将本公开提供的显示信息调整逻辑(比如,上文S1-S3所示的逻辑以及步骤41-步骤43所示的逻辑)与页面的视图层级结构(比如,对象树)进行绑定,以便在检测到该页面的视图层级结构发生变化(比如,对象树发生变化)时,针对该视图层级结构变化后的页面自动地触发该显示信息调整逻辑,如此能够有效地确保针对该页面所设定的页面显示调整需求(比如,上文预设对象显示约束)在该页面的整个可用周期内处于生效状态,从而能够有效地避免因该页面的视图层级结构发生变化而导致的缺陷,进而能够有效地提高页面显示调整效果。
实际上,对于一个页面来说,该页面在不同场景下所呈现的显示信息是不同的,故为了更好地提高页面显示效果,本公开还提供了上文页面显示方法的一种可能的实施方式,在该实施方式中,该页面显示方法还包括下文步骤51。其中,该步骤51的执行时间晚于上文S3的执行时间或者上文步骤43
的执行时间。
步骤51:在检测到页面显示场景发生变化之后,将上文目标页面中待调整对象对应的显示信息进行还原处理。
其中,页面显示场景发生变化用于表示上文目标页面对应的页面显示场景从第一场景变更至第二场景。该第一场景是指需要按照上文预设对象显示约束以及上文预设显示信息进行页面显示的场景(比如,页面置灰场景等)。该第二场景是指无需按照上文预设对象显示约束以及上文预设显示信息进行页面显示的场景(比如,页面正常显示场景等)。
基于上文步骤51的相关内容可知,对于上文目标页面来说,当该目标页面中待调整对象对应的显示信息与该预设显示信息一致时,如果检测到页面显示场景发生变化,则可以确定需要将该待调整对象对应的显示信息按照其原始显示信息进行显示,故可以直接将该目标页面中待调整对象对应的显示信息进行还原处理,以使处理后的目标页面中待调整对象对应的显示信息与该待调整对象原始显示信息一致,如此能够满足页面还原需求,从而有利于提高页面显示灵活性。
另外,对于本公开实施例提供的页面显示方法来说,为了更好地提高页面显示效率,该页面显示方法可以应用于客户端,如此能够有效地避免因不同设备(比如,服务器+客户端)之间的数据传输而导致的时间耗时,从而有利于提高页面显示效率。
基于本公开实施例提供的页面显示方法,本公开实施例还提供了一种页面显示装置,下面结合图6进行解释和说明。其中,图6为本公开实施例提供的一种页面显示装置的结构示意图。需要说明的是,本公开实施例提供的页面显示装置的技术详情,请参照上文页面显示方法的相关内容。
如图6所示,本公开实施例提供的页面显示装置600,包括:
获取单元601,被配置为获取目标页面对应的多个对象;
确定单元602,被配置为依据预设对象显示约束,从多个对象中确定待调整对象和待保持对象;
显示单元603,被配置为根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示目标页面。
在一种可能的实施方式下,显示单元603,具体被配置为:若目标页面
中待调整对象对应的显示信息与预设显示信息不一致,则按照预设显示信息,对目标页面中待调整对象对应的显示信息进行调整处理。
在一种可能的实施方式下,显示单元603,具体被配置为:若目标页面中待保持对象对应的显示信息与预设显示信息一致,则将目标页面中待保持对象对应的显示信息进行还原处理。
在一种可能的实施方式下,确定单元602,具体被配置为:依据预设对象显示约束以及对象树,从多个对象中确定待调整对象和待保持对象;对象树用于描述多个对象中不同对象之间的父子关系。
在一种可能的实施方式下,若预设对象显示约束包括多个对象中第一参考对象的显示保持标记,则待保持对象是根据第一参考对象、以及第一参考对象的关联对象所确定的;关联对象是依据对象树中包括第一参考对象的路径所确定的。
在一种可能的实施方式下,待保持对象包括路径中的所有对象;待调整对象包括对象树中除了待保持对象以外的其他对象。
在一种可能的实施方式下,多个对象包括N个对象,N为正整数;
确定单元602,包括:
第一判断子单元,被配置为判断预设对象显示约束中是否包括第n个对象的显示调整标记或者第n个对象的至少一个直系父族对象的显示调整标记,得到第一判断结果;n为正整数,n≤N;直系父族对象是依据对象树中包括第n个对象的路径所确定的;
第一确定子单元,被配置为根据第一判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第一确定子单元,包括:
第二确定子单元,被配置为若第一判断结果表示预设对象显示约束不包括第n个对象的显示调整标记以及第n个对象的所有直系父族对象的显示调整标记,则将第n个对象确定为待保持对象;
第二判断子单元,被配置为若第一判断结果表示预设对象显示约束包括第n个对象的显示调整标记或者第n个对象的至少一个直系父族对象的显示调整标记,则判断预设对象显示约束是否还包括第n个对象的显示保持标记或者第n个对象的至少一个直系父族对象的显示保持标记,得到第二判断结
果;
第三确定子单元,被配置为根据第二判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第三确定子单元,包括:
第四确定子单元,被配置为若第二判断结果表示预设对象显示约束还包括第n个对象的显示保持标记或者第n个对象的至少一个直系父族对象的显示保持标记,则将第n个对象确定为待保持对象;
第三判断子单元,被配置为若第二判断结果表示预设对象显示约束不包括第n个对象的显示保持标记以及第n个对象的所有直系父族对象的显示保持标记,则判断预设对象显示约束中是否存在第n个对象的直系子族对象的显示保持标记,得到第三判断结果;直系子族对象是依据对象树中包括第n个对象的路径所确定的;
第五确定子单元,被配置为根据第三判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第五确定子单元,具体被配置为:若第三判断结果表示预设对象显示约束中存在第n个对象的至少一个直系子族对象的显示保持标记,则将第n个对象确定为待保持对象;若第三判断结果表示预设对象显示约束中不存在第n个对象的所有直系子族对象的显示保持标记,则将第n个对象确定为待调整对象。
在一种可能的实施方式下,预设对象显示约束包括多个对象中第一参考对象的显示保持标记以及第二参考对象的显示调整标记;
确定单元602,包括:
第六确定子单元,被配置为依据预设对象显示约束以及对象树,确定调整标记集、保持标记集以及保持参考集,调整标记集包括第二参考对象;保持标记集包括第一参考对象;保持参考集包括第一参考对象以及第一参考对象的直系父族对象;
第七确定子单元,被配置为依据调整标记集、保持标记集以及保持参考集,从多个对象中确定待调整对象和待保持对象。
在一种可能的实施方式下,多个对象包括N个对象,N为正整数;
第七确定子单元,包括:
第四判断子单元,被配置为判断调整标记集是否包括第n个对象或者第n个对象的至少一个直系父族对象,得到第四判断结果;n为正整数,n≤N;
第八确定子单元,被配置为根据第四判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第八确定子单元,包括:
第九确定子单元,被配置为若第四判断结果表示调整标记集不包括第n个对象以及第n个对象的所有直系父族对象,则将第n个对象确定为待保持对象;
第五判断子单元,被配置为若第四判断结果表示调整标记集包括第n个对象或者第n个对象的至少一个直系父族对象,则判断保持标记集是否包括第n个对象或者第n个对象的至少一个直系父族对象,得到第五判断结果;
第十确定子单元,被配置为根据第五判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第十确定子单元,包括:
第十一确定子单元,被配置为若第五判断结果表示保持标记集包括第n个对象或者第n个对象的至少一个直系父族对象,则将第n个对象确定为待保持对象;
第六判断子单元,被配置为若第五判断结果表示保持标记集不包括第n个对象以及第n个对象的所有直系父族对象,则判断第n个对象是否属于保持参考集,得到第六判断结果;
第十二确定子单元,被配置为根据第六判断结果,确定第n个对象是否为待保持对象。
在一种可能的实施方式下,第十二确定子单元,具体被配置为:若第六判断结果表示第n个对象属于保持参考集,则将第n个对象确定为待保持对象;若第六判断结果表示第n个对象不属于保持参考集,则将第n个对象确定为待调整对象。
在一种可能的实施方式下,待调整对象包括视图组件区域,在目标页面上视图组件区域上覆盖有滤镜,滤镜是根据预设显示信息确定的。
在一种可能的实施方式下,页面显示装置600还包括:
还原单元,被配置为在检测到页面显示场景发生变化之后,将目标页面
中待调整对象对应的显示信息进行还原处理。
在一种可能的实施方式下,对象为视图组件或者视图组件区域。
基于上述页面显示装置600的相关内容可知,对于本公开实施例提供的页面显示装置600来说,在获取到用户所请求的目标页面对应的多个对象(比如,视图组件或者视图组件区域)之后,先依据预设对象显示约束,从这些对象中确定待调整对象和待保持对象,以使该待调整对象用于表示该目标页面中存在的、应该按照预设显示信息(比如,灰色)进行显示的对象,并使得该待保持对象用于表示该目标页面中存在的、应该保持原始显示信息进行显示的对象;再根据该待调整对象、该待保持对象以及该预设显示信息,显示目标页面,以使处于显示状态的目标页面中待调整对象对应的显示信息与该预设显示信息一致,并使得该处于显示状态的目标页面中待保持对象对应的显示信息与该预设显示信息不一致(也就是,该处于显示状态的目标页面中待保持对象对应的显示信息依旧为原始的显示信息),如此能够实现将该目标页面中部分区域按照该预设显示信息进行调整显示的目的,从而能够更好地满足页面调整需求,进而有利于提高页面调整效果。
可见,因本公开是通过调整一个页面中部分对象的方式实现针对该页面中部分区域的显示调整处理(比如,置灰处理),如此能够有效地简化页面调整流程,从而能够有效地降低页面调整成本。
另外,本公开实施例还提供了一种电子设备,设备包括处理器以及存储器:存储器,用于存储指令或计算机程序;处理器,用于执行存储器中的指令或计算机程序,以使得电子设备执行本公开实施例提供的页面显示方法的任一实施方式。
参见图7,其示出了适于用来实现本公开实施例的电子设备700的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图7示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,电子设备700可以包括处理装置(例如中央处理器、图形处理器等)701,其可以根据存储在只读存储器(ROM)702中的程序或者从
存储装置708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM703中,还存储有电子设备700操作所需的各种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。
通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置706;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置708;以及通信装置709。通信装置709可以允许电子设备700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的电子设备700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置708被安装,或者从ROM702被安装。在该计算机程序被处理装置701执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施例提供的电子设备与上述实施例提供的方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。
本公开实施例还提供了一种计算机可读介质,所述计算机可读介质中存储有指令或计算机程序,当所述指令或计算机程序在设备上运行时,使得所述设备执行本公开实施例提供的页面显示方法的任一实施方式。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存
储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(Hyper Text Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备可以执行上述方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部
计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元/模块的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统或装置而言,由于其与实施例公开的
方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
应当理解,在本公开中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本公开。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
Claims (20)
- 一种页面显示方法,包括:获取目标页面对应的多个对象;依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象;根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面。
- 根据权利要求1所述的方法,其中,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面,包括:若所述目标页面中待调整对象对应的显示信息与所述预设显示信息不一致,则按照所述预设显示信息,对所述目标页面中待调整对象对应的显示信息进行调整处理。
- 根据权利要求1所述的方法,其中,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面,包括:若所述目标页面中待保持对象对应的显示信息与所述预设显示信息一致,则将所述目标页面中待保持对象对应的显示信息进行还原处理。
- 根据权利要求1所述的方法,其中,所述依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象,包括:依据所述预设对象显示约束以及对象树,从所述多个对象中确定所述待调整对象和所述待保持对象;其中,所述对象树用于描述所述多个对象中不同对象之间的父子关系。
- 根据权利要求4所述的方法,其中,若所述预设对象显示约束包括所述多个对象中第一参考对象的显示保持标记,则所述待保持对象是根据所述第一参考对象、以及所述第一参考对象的关联对象所确定的;其中,所述关联对象是依据所述对象树中包括所述第一参考对象的路径所确定的。
- 根据权利要求5所述的方法,其中,所述待保持对象包括所述路径中的所有对象;所述待调整对象包括所述对象树中除了所述待保持对象以外的其他对象。
- 根据权利要求4所述的方法,其中,所述多个对象包括N个对象,其中,N为正整数;所述依据所述预设对象显示约束以及对象树,从所述多个对象中确定待调整对象和待保持对象,包括:判断所述预设对象显示约束中是否包括第n个对象的显示调整标记或者所述第n个对象的至少一个直系父族对象的显示调整标记,得到第一判断结果;其中,n为正整数,n≤N;所述直系父族对象是依据所述对象树中包括所述第n个对象的路径所确定的;根据所述第一判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求7所述的方法,其中,所述根据所述第一判断结果,确定所述第n个对象是否为待保持对象,包括:若所述第一判断结果表示所述预设对象显示约束不包括第n个对象的显示调整标记以及所述第n个对象的所有直系父族对象的显示调整标记,则将所述第n个对象确定为所述待保持对象;若所述第一判断结果表示所述预设对象显示约束包括第n个对象的显示调整标记或者所述第n个对象的至少一个直系父族对象的显示调整标记,则判断所述预设对象显示约束是否还包括第n个对象的显示保持标记或者所述第n个对象的至少一个直系父族对象的显示保持标记,得到第二判断结果;根据所述第二判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求8所述的方法,其中,所述根据所述第二判断结果,确定所述第n个对象是否为待保持对象,包括:若所述第二判断结果表示所述预设对象显示约束还包括第n个对象的显示保持标记或者所述第n个对象的至少一个直系父族对象的显示保持标记,则将所述第n个对象确定为所述待保持对象;若所述第二判断结果表示所述预设对象显示约束不包括第n个对象的显示保持标记以及所述第n个对象的所有直系父族对象的显示保持标记,则判断所述预设对象显示约束中是否存在第n个对象的直系子族对象的显示保持标记,得到第三判断结果;其中,所述直系子族对象是依据所述对象树中包 括所述第n个对象的路径所确定的;根据所述第三判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求9所述的方法,其中,所述根据所述第三判断结果,确定所述第n个对象是否为待保持对象,包括:若所述第三判断结果表示所述预设对象显示约束中存在第n个对象的至少一个直系子族对象的显示保持标记,则将所述第n个对象确定为所述待保持对象;所述方法还包括:若所述第三判断结果表示所述预设对象显示约束中不存在第n个对象的所有直系子族对象的显示保持标记,则将所述第n个对象确定为所述待调整对象。
- 根据权利要求4所述的方法,其中,所述预设对象显示约束包括所述多个对象中第一参考对象的显示保持标记以及第二参考对象的显示调整标记;所述依据所述预设对象显示约束以及对象树,从所述多个对象中确定待调整对象和待保持对象,包括:依据所述预设对象显示约束以及对象树,确定调整标记集、保持标记集以及保持参考集,其中,所述调整标记集包括所述第二参考对象;所述保持标记集包括第一参考对象;所述保持参考集包括所述第一参考对象以及所述第一参考对象的直系父族对象;依据所述调整标记集、保持标记集以及保持参考集,从所述多个对象中确定待调整对象和待保持对象。
- 根据权利要求11所述的方法,其中,所述多个对象包括N个对象,其中,N为正整数;所述依据所述调整标记集、保持标记集以及保持参考集,从所述多个对象中确定待调整对象和待保持对象,包括:判断所述调整标记集是否包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,得到第四判断结果;其中,n为正整数,n≤N;根据所述第四判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求12所述的方法,其中,所述根据所述第四判断结果, 确定所述第n个对象是否为待保持对象,包括:若所述第四判断结果表示所述调整标记集不包括所述第n个对象以及所述第n个对象的所有直系父族对象,则将所述第n个对象确定为待保持对象;若所述第四判断结果表示所述调整标记集包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,则判断所述保持标记集是否包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,得到第五判断结果;根据所述第五判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求13所述的方法,其中,所述根据所述第五判断结果,确定所述第n个对象是否为待保持对象,包括:若所述第五判断结果表示所述保持标记集包括所述第n个对象或者所述第n个对象的至少一个直系父族对象,则将所述第n个对象确定为待保持对象;若所述第五判断结果表示所述保持标记集不包括所述第n个对象以及所述第n个对象的所有直系父族对象,则判断所述第n个对象是否属于所述保持参考集,得到第六判断结果;根据所述第六判断结果,确定所述第n个对象是否为待保持对象。
- 根据权利要求14所述的方法,其中,所述根据所述第六判断结果,确定所述第n个对象是否为待保持对象,包括:若所述第六判断结果表示所述第n个对象属于所述保持参考集,则将所述第n个对象确定为待保持对象;所述方法还包括:若所述第六判断结果表示所述第n个对象不属于所述保持参考集,则将所述第n个对象确定为待调整对象。
- 根据权利要求1所述的方法,其中,所述待调整对象包括视图组件区域,在所述目标页面上所述视图组件区域上覆盖有滤镜,所述滤镜是根据所述预设显示信息确定的。
- 根据权利要求1所述的方法,其中,所述根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面之后,所述方法还包括:在检测到页面显示场景发生变化之后,将所述目标页面中待调整对象对应的显示信息进行还原处理。
- 一种页面显示装置,包括:获取单元,被配置为获取目标页面对应的多个对象;确定单元,被配置为依据预设对象显示约束,从所述多个对象中确定待调整对象和待保持对象;以及显示单元,被配置为根据所述待保持对象、所述待调整对象以及所述待调整对象对应的预设显示信息,显示所述目标页面。
- 一种电子设备,包括:处理器和存储器;其中,所述存储器,被配置为存储指令或计算机程序;所述处理器,被配置为执行所述存储器中的所述指令或计算机程序,以使得所述电子设备执行权利要求1-17任一项所述的方法。
- 一种计算机可读介质,其中,所述计算机可读介质中存储有指令或计算机程序,当所述指令或计算机程序在设备上运行时,使得所述设备执行权利要求1-17任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310720889.X | 2023-06-16 | ||
| CN202310720889.XA CN119149849A (zh) | 2023-06-16 | 2023-06-16 | 一种页面显示方法、装置、电子设备、计算机可读介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024255903A1 true WO2024255903A1 (zh) | 2024-12-19 |
Family
ID=93802387
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/099573 Ceased WO2024255903A1 (zh) | 2023-06-16 | 2024-06-17 | 页面显示方法、装置、电子设备、计算机可读介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119149849A (zh) |
| WO (1) | WO2024255903A1 (zh) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130346725A1 (en) * | 2012-06-20 | 2013-12-26 | Microsoft Corporation | Structuring storage based on latch-free b-trees |
| CN107168969A (zh) * | 2016-03-07 | 2017-09-15 | 北京搜狗科技发展有限公司 | 一种页面元素控制方法、装置及电子设备 |
| US20180052808A1 (en) * | 2016-08-16 | 2018-02-22 | Adobe Systems Incorporated | Creation and display of a webpage with alternative layouts for different webpage widths |
| CN110597512A (zh) * | 2019-08-23 | 2019-12-20 | 华为技术有限公司 | 显示用户界面的方法及电子设备 |
| CN111177635A (zh) * | 2020-01-06 | 2020-05-19 | 北京字节跳动网络技术有限公司 | 网页显示高度确定方法、装置、存储介质及设备 |
| CN115033814A (zh) * | 2022-04-28 | 2022-09-09 | 掌阅科技股份有限公司 | 页面显示方法、电子设备及存储介质 |
-
2023
- 2023-06-16 CN CN202310720889.XA patent/CN119149849A/zh active Pending
-
2024
- 2024-06-17 WO PCT/CN2024/099573 patent/WO2024255903A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130346725A1 (en) * | 2012-06-20 | 2013-12-26 | Microsoft Corporation | Structuring storage based on latch-free b-trees |
| CN107168969A (zh) * | 2016-03-07 | 2017-09-15 | 北京搜狗科技发展有限公司 | 一种页面元素控制方法、装置及电子设备 |
| US20180052808A1 (en) * | 2016-08-16 | 2018-02-22 | Adobe Systems Incorporated | Creation and display of a webpage with alternative layouts for different webpage widths |
| CN110597512A (zh) * | 2019-08-23 | 2019-12-20 | 华为技术有限公司 | 显示用户界面的方法及电子设备 |
| CN111177635A (zh) * | 2020-01-06 | 2020-05-19 | 北京字节跳动网络技术有限公司 | 网页显示高度确定方法、装置、存储介质及设备 |
| CN115033814A (zh) * | 2022-04-28 | 2022-09-09 | 掌阅科技股份有限公司 | 页面显示方法、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119149849A (zh) | 2024-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4167102A1 (en) | Method and device for updating reference document, electronic device, and storage medium | |
| WO2022233311A1 (zh) | 展示方法、装置和电子设备 | |
| WO2023029850A1 (zh) | 一种数据处理方法、装置、电子设备和介质 | |
| CN112380819B (zh) | 文档编辑方法、装置和电子设备 | |
| CN118840453A (zh) | 文字颜色确定方法、装置、介质、电子设备及程序产品 | |
| CN114611483A (zh) | 核电dcs控制逻辑图和功能图关联自动升版的方法及装置 | |
| CN111241137A (zh) | 数据处理方法、装置、电子设备及存储介质 | |
| CN112256370B (zh) | 信息显示方法、装置和电子设备 | |
| CN111262907B (zh) | 服务实例访问方法、装置和电子设备 | |
| CN114125485B (zh) | 图像处理方法、装置、设备及介质 | |
| CN111680754A (zh) | 图像分类方法、装置、电子设备及计算机可读存储介质 | |
| CN110427584A (zh) | 页面生成方法、装置、电子设备及计算机可读存储介质 | |
| CN111338827B (zh) | 表格数据的粘贴方法、装置以及电子设备 | |
| CN114707470A (zh) | 一种文档编辑方法、装置、设备及存储介质 | |
| WO2022017458A1 (zh) | 同步数据方法、装置、电子设备和介质 | |
| CN113204557A (zh) | 电子表格导入方法、装置、设备及介质 | |
| WO2024255903A1 (zh) | 页面显示方法、装置、电子设备、计算机可读介质 | |
| WO2024212912A1 (zh) | 数据处理方法、装置和电子设备 | |
| CN114662463B (zh) | 数据处理方法、装置、电子设备和存储介质 | |
| WO2024078297A1 (zh) | 数据处理方法、装置、电子设备和存储介质 | |
| CN112445478B (zh) | 图形文件的处理方法、装置、设备及介质 | |
| CN113296771A (zh) | 页面显示方法、装置、设备和计算机可读介质 | |
| CN112100205A (zh) | 数据处理方法、装置、设备和计算机可读介质 | |
| CN115842819B (zh) | 自动驾驶系统测试数据下载方法、装置、设备 | |
| CN111240657A (zh) | 用于生成sdk的方法、装置和电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24822850 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |