Page rendering method and device, storage medium and electronic equipment
The method and device enhance page rendering efficiency and accuracy by using a rendering manager to adjust page objects based on server strategies and verification conditions, addressing inefficiencies and inaccuracies in current technologies.
Patent Information
- Application Number
- CN202411087703.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-03
AI Technical Summary
Current page rendering technologies suffer from low efficiency and inaccurate rendering, particularly in the absence of targeted processing for specific modules, requiring additional processing and cooperation from other departments.
A method and device that utilize a rendering manager to obtain a page rendering strategy from a server, generate instructions based on this strategy, and adjust the rendering style of page objects within modules based on verification conditions, enhancing efficiency and accuracy by matching rendering levels and updating parameters.
Improves the efficiency and accuracy of page rendering by enabling targeted adjustments based on verification conditions, reducing resource requests and enhancing user experience through precise style changes.
Smart Images

Figure CN119066283A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image display, and in particular to a page rendering method and device, a storage medium, and an electronic device. Background Art
[0002] For special times, mainstream apps will remove the corresponding bright colors from some pages in the app to pay tribute to and remember the special contributors. Most apps produce the corresponding pictures on the backend and then put them on the frontend to achieve the corresponding effects, or use specially processed H5 pages to replace the homepage content to achieve the same purpose, or use a gray skin solution and send the corresponding gray skin configuration, but such processing requires cooperation from other departments or additional processing by the corresponding operation and maintenance personnel;
[0003] That is, the efficiency of page rendering processing in the current related technologies is low, and it is also impossible to perform targeted rendering processing on specific modules. Therefore, the current related technologies have technical problems such as low efficiency of page rendering methods and inaccurate rendering.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a page rendering method and device, a storage medium, and an electronic device to at least solve the technical problems of low efficiency and inaccurate rendering of page rendering methods in the current related technologies.
[0006] According to one aspect of an embodiment of the present application, a page rendering method is provided, including: obtaining a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server, and generate a page rendering instruction based on the page rendering strategy; when the current page object is a page object included in a current page module, forwarding the page rendering instruction to the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects; when the current page module determines that the page rendering instruction meets a target verification condition based on pre-saved verification parameters, obtaining a target rendering instruction returned by the current page module; and determining to adjust the rendering style of the current page object from a first style to a second style based on the target rendering instruction.
[0007] According to another aspect of an embodiment of the present application, a page rendering device is also provided, including: an acquisition unit, which acquires a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to acquire a page rendering strategy issued from a server, and generate a page rendering instruction based on the page rendering strategy; a forwarding unit, which forwards the page rendering instruction to the current page module when the current page object is a page object included in the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects; a determination unit, which acquires a target rendering instruction returned by the current page module when the current page module determines that the page rendering instruction meets a target verification condition based on pre-saved verification parameters; an adjustment unit, which determines to adjust the rendering style of the current page object from a first style to a second style based on the target rendering instruction.
[0008] Optionally, the forwarding unit includes: a first acquisition module, used to acquire the first counting parameter included in the above-mentioned page rendering instruction through the above-mentioned current page module, wherein the above-mentioned first counting parameter is used to indicate the release round corresponding to the above-mentioned page rendering instruction; when the second counting parameter pre-stored in the above-mentioned current page module matches the above-mentioned first counting parameter, determining that the above-mentioned page rendering instruction meets the above-mentioned target verification condition, wherein the above-mentioned verification parameter includes the above-mentioned second counting parameter; when the second counting parameter pre-stored in the above-mentioned current page module does not match the above-mentioned first counting parameter, acquiring rendering verification information matching the above-mentioned page rendering instruction; determining that the above-mentioned page rendering instruction meets the above-mentioned target verification condition according to the above-mentioned rendering verification information.
[0009] Optionally, the first acquisition unit includes: a first determination module, used to determine that the page rendering instruction meets the target verification condition when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level; determine that the page rendering instruction meets the target verification condition when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level; obtain the module identifier carried in the rendering verification information when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level; determine that the page rendering instruction meets the target verification condition when the module identifier matches the target identifier of the current page module; determine that the page rendering instruction does not meet the target verification condition when the module identifier does not match the target identifier of the current page module.
[0010] Optionally, the first acquisition unit includes: a first module, used to update the second counting parameter according to the first counting parameter when the rendering status parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style, and the page rendering instruction satisfies the target verification condition, and send the target rendering instruction to the current page object through the current page module; when the rendering status parameter carried in the page rendering instruction indicates that the first style is maintained, update the second counting parameter according to the first counting parameter.
[0011] Optionally, the first acquisition unit further includes an updating unit, which is used to: when it is determined that the page rendering instruction does not meet the target verification condition, update the second counting parameter according to the first counting parameter.
[0012] Optionally, the acquisition unit also includes: a second adjustment module, which is used to use the page rendering instruction as the target rendering instruction when the current page object is not the page object included in any of the page modules; and determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
[0013] Optionally, the device further includes: a third adjustment module, configured to adjust the rendering style of the current page object from a regular style to a grayscale style; and to adjust the rendering style of the current page object from the grayscale style to a regular style.
[0014] Optionally, the third adjustment module also includes: a fourth adjustment module, which is used to obtain a reference image object obtained through grayscale conversion when the current page object is a picture object; adjust the rendering style of the current page object from a regular style to a grayscale style according to the reference image object; when the current page object is a URL page object, adjust the rendering style of the current page object from a regular style to a grayscale style by adjusting the filter configuration parameters; when the current page object is a rich text object, adjust the rendering style of the current page object from a regular style to a grayscale style according to the gray color block.
[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned page rendering method when running.
[0016] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above page rendering method.
[0017] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the page rendering method through the computer program.
[0018] In an embodiment of the present application, a page rendering instruction sent by a rendering manager is obtained through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server, and generate a page rendering instruction based on the page rendering strategy; when the current page object is a page object included in a current page module, the page rendering instruction is forwarded to the current page module, and further, when the current page module determines that the page rendering instruction meets a target verification condition based on pre-saved verification parameters, the target rendering instruction returned by the current page module is obtained, thereby achieving the purpose of adjusting the rendering style of the current page object from a first style to a second style according to the target rendering instruction, thereby solving the technical problems of low efficiency and inaccurate rendering of page rendering methods in the current related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 is a schematic diagram of an application environment of an optional page rendering method according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of an optional page rendering method according to an embodiment of the present application;
[0022] Figure 3 is a flowchart of another optional page rendering method according to an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of an optional page rendering method according to an embodiment of the present application;
[0024] Figure 5 is a flowchart of another optional page rendering method according to an embodiment of the present application;
[0025] Figure 6 is a schematic structural diagram of an optional page rendering device according to an embodiment of the present application;
[0026] Figure 7 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to one aspect of an embodiment of the present application, a page rendering method is provided. Optionally, as an optional implementation, the page rendering method can be but is not limited to being applied to Figure 1 in the environment shown.
[0030] The server executes S102-S108, and obtains the page rendering instruction sent by the rendering manager through the current page object in the target application, wherein the rendering manager is used to obtain the page rendering strategy issued from the server, and generate the page rendering instruction based on the page rendering strategy; when the current page object is a page object included in the current page module, the page rendering instruction is forwarded to the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects; when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, the target rendering instruction returned by the current page module is obtained; according to the target rendering instruction, it is determined to adjust the rendering style of the current page object from the first style to the second style; the server 112 includes a database 114 and a processing engine 116, and the user device 102 includes a display 108, a processor 106 and a memory 104;
[0031] Then the user device executes S110 to display the target page according to the second style;
[0032] Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not impose any limitation on this.
[0033] Optionally, as an optional implementation, as Figure 2 As shown, the above page rendering method includes:
[0034] S202, obtaining a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server and generate a page rendering instruction based on the page rendering strategy;
[0035] S204, forwarding the page rendering instruction to the current page module when the current page object is a page object included in the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects;
[0036] S206, when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, obtaining the target rendering instruction returned by the current page module;
[0037] S208: Determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
[0038] In an optional implementation, in step S202, the page rendering instruction sent by the rendering manager is obtained through the current page object in the target application. It should be noted that the rendering manager is used to obtain the page rendering strategy issued from the server and generate the page rendering instruction based on the page rendering strategy;
[0039] It is understandable that the target application may be a video application, a game application, a music player application, etc., and the page object may be, but is not limited to, the entire page, or elements, controls, and other objects in the page; the page rendering instructions include, but are not limited to, instructions for rendering the entire application, a specified page in the application, or a portion of a module in the page, and the rendering instructions include decoloring, adjusting fonts, style spacing, etc.;
[0040] Further, in step S204, when the current page object is a page object included in the current page module, the page rendering instruction is forwarded to the current page module. It should be noted that the target application includes at least one page module, and each page module includes multiple page objects;
[0041] As an optional implementation, the page rendering instruction indicates to render the page object A or an element in the page object A. When the page object A exists in the current page module 1, the page rendering instruction is forwarded to the module 1. This is only an example and is not specifically limited.
[0042] In the above step S206, when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameter, the target rendering instruction returned by the current page module is obtained; specifically, the above verification parameter can be a counting tag for determining the rendering round information, for example, when the rendering strategy corresponding to the page rendering instruction matches the strategy corresponding to the verification parameter pre-saved by the current page module, the target rendering instruction returned by the current page module is obtained;
[0043] Optionally, the verification condition may also be a condition such as whether the element indicated by the page rendering instruction exists; the target rendering instruction may be a page rendering instruction corresponding to the matching rendering round after the verification is successful, or may be a preset target rendering instruction triggered after matching the specified rendering round, which is not limited here;
[0044] In an optional implementation, the above step S208, determining to adjust the rendering style of the current page object from the first style to the second style according to the target rendering instruction, may be performed by, but not limited to, graying out the color of the current page object, restoring the color of the current page object, modifying the font style of the current page object, etc.;
[0045] Through the above-mentioned implementation mode of the present application, the page rendering instruction sent by the rendering manager is obtained through the current page object in the target application, wherein the rendering manager is used to obtain the page rendering strategy issued from the server, and generate the page rendering instruction based on the page rendering strategy; when the current page object is a page object included in the current page module, the page rendering instruction is forwarded to the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects; when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, the target rendering instruction returned by the current page module is obtained; according to the target rendering instruction, it is determined to adjust the rendering style of the current page object from the first style to the second style, so as to improve the efficiency of the page rendering method and the rendering accuracy.
[0046] In an optional implementation, when the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes:
[0047] S1, obtaining a first counting parameter included in a page rendering instruction through a current page module, wherein the first counting parameter is used to indicate a publishing round corresponding to the page rendering instruction;
[0048] S2, when a second counting parameter pre-stored in the current page module matches the first counting parameter, determining that the page rendering instruction meets the target verification condition, wherein the verification parameter includes the second counting parameter;
[0049] S3, when the second counting parameter pre-stored in the current page module does not match the first counting parameter, obtaining rendering verification information matching the page rendering instruction;
[0050] S4, determining whether the page rendering instruction meets the target verification condition according to the rendering verification information.
[0051] Optionally, in step S1, the first counting parameter included in the page rendering instruction is obtained through the current page module. It should be noted that the first counting parameter is used to indicate the publishing round corresponding to the page rendering instruction; the above publishing round corresponds to matching a rendering strategy; the module obtains the first counting parameter in a manner that after the page element subscribing to the rendering instruction receives the rendering strategy, it sends the first counting parameter corresponding to the rendering strategy to the corresponding module;
[0052] Then, in step S2, when the second counting parameter pre-stored in the current page module matches the first counting parameter, it is determined that the page rendering instruction meets the target verification condition. It should be noted that the verification parameter includes the second counting parameter;
[0053] As an optional implementation, for example, the first counting parameter in the page rendering instruction is 1, indicating that the current rendering strategy is the rendering strategy of the first round, the second counting parameter stored in the current page module A is 1, and the second counting parameter matches the first counting parameter, thereby determining that the page rendering instruction meets the target verification condition;
[0054] In the above steps S3-S4, when the second counting parameter pre-stored in the current page module does not match the first counting parameter, the rendering verification information matching the page rendering instruction is obtained; and it is determined that the page rendering instruction meets the target verification condition according to the rendering verification information; it should be noted that the above rendering verification information can be obtained by obtaining the corresponding verification information stored in the page rendering instruction in each round of rendering processing, or when it is determined that the second counting parameter does not match the first counting parameter, the corresponding verification information is further generated according to the corresponding rendering strategy, for example, when the rendering object is a picture, the verification information is the pixel information of the picture, and no specific limitation is made to the method of generating the verification information;
[0055] As an optional implementation, if the first counting parameter in the page rendering instruction is 2, indicating that the current rendering strategy is the rendering strategy of the second round, and the second counting parameter stored in the current page module A is 1, then the second counting parameter does not match the first counting parameter, and then it is necessary to obtain rendering verification information that matches the page rendering instruction. For example, the obtained verification information is to determine whether the difference between the above-mentioned first counting parameter and the above-mentioned second counting parameter is greater than a preset threshold. If it is greater than the preset threshold, it means that the rendering strategies are quite different and it is necessary to re-match the rendering strategies. If it is not greater than the preset threshold, it means that the two strategies may be similar, the strategy error is small, and the target verification condition is met. This is only an example.
[0056] Through the above-mentioned implementation mode of the present application, the first counting parameter included in the page rendering instruction is obtained through the current page module; and then, when the second counting parameter pre-stored in the current page module matches the first counting parameter, it is determined that the page rendering instruction meets the target verification condition, wherein the verification parameter includes the second counting parameter; or when the second counting parameter pre-stored in the current page module does not match the first counting parameter, rendering verification information matching the page rendering instruction is obtained; and it is determined that the page rendering instruction meets the target verification condition according to the rendering verification information, and the accuracy of page rendering is improved by adding the verification condition.
[0057] In an optional implementation, when the second counting parameter pre-stored in the current page module does not match the first counting parameter, after obtaining the rendering verification information matching the page rendering instruction, the method further includes:
[0058] S1, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level, determining that the page rendering instruction meets the target verification condition;
[0059] S2, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level, determining that the page rendering instruction meets the target verification condition;
[0060] S3, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level, obtain the module identifier carried in the rendering verification information; when the module identifier matches the target identifier of the current page module, determine that the page rendering instruction meets the target verification condition; when the module identifier does not match the target identifier of the current page module, determine that the page rendering instruction does not meet the target verification condition.
[0061] In an optional implementation, in steps S1-S2, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level, it is determined that the page rendering instruction meets the target verification condition; when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level, it is determined that the page rendering instruction meets the target verification condition;
[0062] Specifically, the application-level rendering strategy can be understood as rendering all elements in the entire APP, and the page-level rendering strategy can be understood as rendering all elements in a specified page;
[0063] In step S3, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level, the module identifier carried in the rendering verification information is obtained; when the module identifier matches the target identifier of the current page module, it is determined that the page rendering instruction meets the target verification condition; when the module identifier does not match the target identifier of the current page module, it is determined that the page rendering instruction does not meet the target verification condition; it can be understood that the above-mentioned target identifier can specifically be a module ID, a module label, etc.;
[0064] For example, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level, the module identifier carried in the rendering verification information is obtained as module 1, the target identifier of the current page module is module 1, and it is determined that the module identifier matches the target identifier of the current page module, and the target verification condition is met;
[0065] When the module identifier carried in the acquired rendering verification information is module 1 and the target identifier of the current page module is module 2, it is determined that the module identifier does not match the target identifier of the current page module and does not meet the target verification condition;
[0066] A specific implementation is described below. Figure 3 The following takes module 1 as an example, and "module" is used as a synonym:
[0067] S302, determine whether the grayManager (gray removal policy manager) policy == APP level?
[0068] If it is at the APP level, execute S304 to set the grayState (strategy state) of the module to 1; that is, the module executes the gray removal strategy;
[0069] If it is not at the APP level, the page level decolorization strategy is entered, and S306 is executed to determine whether the strategy indicates that the page where the module is located should be decolorized.
[0070] If decolorization is not indicated, S308 is executed, and the grayState (strategy state) of the module = 0; that is, the module does not execute the decolorization strategy;
[0071] If decolorization is indicated, S310 is executed to determine whether the decolorization module is turned on.
[0072] If the module decolorization is not enabled, S304 is executed, and the grayState (strategy state) of the module is 1; that is, the module executes the decolorization strategy; it can be understood that, since the module is in the page, at the page strategy level, when the page indicates decolorization, all elements in the page need to execute the page decolorization strategy;
[0073] If module decolorization is turned on, that is, the module-level decolorization strategy is entered, then it is determined in S312 whether the module ID corresponding to the module is included?
[0074] If the module ID corresponding to the module is included, S304 is executed, and the grayState (strategy state) of the module is 1; that is, the module executes the gray removal strategy;
[0075] If the module ID corresponding to the module is not included, S308 is executed, and the grayState (strategy state) of the module = 0; that is, the module does not execute the gray removal strategy.
[0076] Through the above-mentioned implementation mode of the present application, when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level, it is determined that the page rendering instruction meets the target verification condition; when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level, it is determined that the page rendering instruction meets the target verification condition; when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level, the module identifier carried in the rendering verification information is obtained; when the module identifier matches the target identifier of the current page module, it is determined that the page rendering instruction meets the target verification condition; when the module identifier does not match the target identifier of the current page module, it is determined that the page rendering instruction does not meet the target verification condition. By performing hierarchical processing on the rendering and corresponding to different processing methods, the rendering efficiency is improved.
[0077] In an optional implementation, when the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes:
[0078] S1, when the rendering state parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style, and the page rendering instruction meets the target verification condition, the second counting parameter is updated according to the first counting parameter, and the target rendering instruction is sent to the current page object through the current page module;
[0079] S2: When the rendering state parameter carried in the page rendering instruction indicates to keep the first style, update the second counting parameter according to the first counting parameter.
[0080] It can be understood that in step S1, when the rendering state parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style, and the page rendering instruction meets the target verification condition, the second counting parameter is updated according to the first counting parameter, and the target rendering instruction is sent to the current page object through the current page module; the above rendering state parameter may include but is not limited to the rendering style and color of the rendering object;
[0081] Further, in step S2, when the rendering state parameter carried in the page rendering instruction indicates to keep the first style, the second count parameter is updated according to the first count parameter; specifically, for example, the rendering state parameter indicates to keep the original style unchanged, and the element is not rendered based on the updated count;
[0082] It is understandable that, when the previous round rendering strategy is the same as the current round rendering strategy, the counting parameter is not updated, the rendering instruction is not sent, the first counting parameter and the second counting parameter are not updated, and the rendering operation is not performed;
[0083] Through the above-mentioned implementation mode of the present application, when the rendering state parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style, and the page rendering instruction meets the target verification condition, the second counting parameter is updated according to the first counting parameter, and the target rendering instruction is sent to the current page object through the current page module; when the rendering state parameter carried in the page rendering instruction indicates that the first style is maintained, the second counting parameter is updated according to the first counting parameter, and the accuracy of page rendering is improved by updating and matching the counting parameters.
[0084] In an optional implementation, when the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes:
[0085] S1, when it is determined that the page rendering instruction does not meet the target verification condition, update the second counting parameter according to the first counting parameter.
[0086] As an optional implementation, in the above step S1, when it is determined that the page rendering instruction does not meet the target verification condition, the second counting parameter is updated according to the first counting parameter;
[0087] It can be understood that, for example, the page rendering instruction indicates that the first count parameter is 2, and instructs to render module A, and the current page module B receives an abnormal rendering instruction (such as repeated update), that is, the second count parameter is abnormally updated, so it is determined that the page rendering instruction does not meet the target verification condition, then the second count parameter corresponding to module B is updated to 2 according to the first count parameter, and no rendering instruction is sent to module B, and the rendering state of module B can be set to 0, indicating that no rendering operation is performed. This is only an example;
[0088] In an optional implementation, after obtaining the page rendering instruction sent by the rendering manager through the current page object in the target application, the method further includes:
[0089] S1, when the current page object is not a page object included in any page module, taking the page rendering instruction as the target rendering instruction;
[0090] S2: According to the target rendering instruction, determine to adjust the rendering style of the current page object from the first style to the second style.
[0091] In the above step S1, when the current page object is not a page object included in any page module, the page rendering instruction is used as the target rendering instruction; for example, page 1 includes module 1, module 2, element 1, and element 2. When the page object is element 3, it is determined to render all elements in page 1;
[0092] Further, in step S2, it is determined that the rendering style of the current page object is adjusted from the first style to the second style according to the target rendering instruction;
[0093] As an optional implementation, for example, the first style is a color style, and the target rendering instruction is grayscale processing, so the first style is adjusted to a second style with a grayscale of 60%, which is only an example and is not specifically limited;
[0094] Through the above-mentioned implementation mode of the present application, when the current page object is not a page object included in any page module, the page rendering instruction is used as the target rendering instruction; according to the target rendering instruction, it is determined to adjust the rendering style of the current page object from the first style to the second style, and the style is adjusted directly according to the instruction, thereby reducing resource requests and achieving the technical problem of improving rendering efficiency.
[0095] In an optional implementation, determining to adjust the rendering style of the current page object from the first style to the second style according to the target rendering instruction includes one of the following:
[0096] Method 1: Change the rendering style of the current page object from normal style to grayscale style;
[0097] Method 2: Adjust the rendering style of the current page object from grayscale style to regular style.
[0098] As an optional implementation, in step S1, the rendering style of the current page object is adjusted from a normal style to a grayscale style;
[0099] For example, for images, a gray filter can be used to generate the corresponding image and the address corresponding to the image can be used as the key to store it in the cache to reduce the processing frequency. For the colors involved, the neutralization method can be used to remove the bright colors in the color; for rich text, gray coverage can be used to achieve the purpose of decolorization; H5 pages can configure filters and add user scripts to filter out bright colors in the page to achieve decolorization of page content;
[0100] As another optional implementation, in step S2, the rendering style of the current page object is adjusted from the grayscale style to the normal style;
[0101] Through the above implementation of the present application, page objects can be processed in a variety of rendering styles, thereby enhancing the user's visual experience and increasing user interest;
[0102] In an optional implementation, adjusting the rendering style of the current page object from a normal style to a grayscale style includes:
[0103] S1, when the current page object is a picture object, obtaining a reference picture object obtained through grayscale conversion; adjusting the rendering style of the current page object from a normal style to a grayscale style according to the reference picture object;
[0104] S2, when the current page object is a URL page object, adjusting the rendering style of the current page object from a normal style to a grayscale style by adjusting the filter configuration parameters;
[0105] S3: When the current page object is a rich text object, the rendering style of the current page object is adjusted from a normal style to a grayscale style according to the gray color block.
[0106] As an optional implementation, in step S1, when the current page object is a picture object, a reference picture object obtained by grayscale conversion is obtained; and the rendering style of the current page object is adjusted from a regular style to a grayscale style according to the reference picture object; it can be understood that the grayscale processing includes but is not limited to desaturation or processing by a gray filter;
[0107] In step S2, when the current page object is a URL page object, the rendering style of the current page object is adjusted from a normal style to a grayscale style by adjusting the filter configuration parameters; for example, by adding CSS filters to the elements in the page, the color and transparency are changed, thereby achieving a decolorization effect of the page content;
[0108] In step S3, when the current page object is a rich text object, the rendering style of the current page object is adjusted from a normal style to a grayscale style according to the gray color block;
[0109] Through the above-mentioned implementation mode of the present application, different rendering modes are matched according to different attribute characteristics of rendering elements, thereby improving the efficiency of page rendering.
[0110] A specific implementation is described below:
[0111] First, render the page. You can first define the content ID and page ID to which the module belongs. The content ID is the unique identifier corresponding to the content (may be repeated), and the page ID is the page corresponding to the module content. The page ID is unique. Add a new View category to add a decolorization method (View is the UI display container in iOS and the basic successor of all UIs). YES means decolorization is required, and the default return is no processing is required;
[0112] If the module level needs to be supported, all containers in the module that need to support the graying strategy need to be synchronously bound to a common holder (themeOwner, generally the module where the container is located). All containers that support the decolorization scheme will subscribe to the decolorization strategy message and return whether the current module needs decolorization processing according to the corresponding conditions of the server;
[0113] It is understandable that the decolorization scheme is defined to correspond to elements such as pictures, text, rich text, H5 pages, etc. For pictures, a gray filter can be used to generate the corresponding picture and the address corresponding to the picture can be used as the key to store it in the cache to reduce the processing frequency. For the colors involved, the neutralization method is used to remove the bright colors in the color. For rich text, gray coverage is used to achieve the purpose of decolorization. H5 pages can configure filters and add user scripts to filter out bright colors in the page to achieve page content decolorization;
[0114] Furthermore, during the execution of the rendering strategy, an in-application graying manager (grayManager) can be created to manage the graying strategy issued by the current server and assign priorities. For example, the App level (P0) is for the entire app to be grayed out, the page level (P1) is for partial graying of the entire page, and the module level (P2) is for the module graying corresponding to some pages. If it is a P2-level strategy, the server needs to configure different module IDs. For example, the content module can be the identifier corresponding to the module content (content ID, media ID, module ID generated by the backend, etc.), or special agreed values such as top navigation (TopTab), bottom navigation (BottomTab), etc.
[0115] After the grayManager decolorizes the strategy, it is parsed into the corresponding priority (such as P0, P1, P2), and the counting tag of the current round is generated incrementally (the counting tag records the current round of the decolorization strategy, the value is 1 when it changes for the first time, and it increases in sequence afterwards), and the message is sent synchronously. If the container that subscribes to the strategy has a holder (themeOwner), it generally refers to a module. A module will have multiple containers. If the server sends a module that needs to be decolorized, all containers in the entire module need to be decolorized. The relationship diagram is as follows Figure 4As shown, the page includes module 1, module 2, and module 3. Each module contains multiple containers. Each container can contain pictures, text 1, and text 2. If module 1 needs to be decolored, the pictures and texts in module 1 are all decolored. This is just an example.
[0116] Then notify the holder to update its own decolorization state and synchronize the current count tag with grayManager. It should be noted that multiple containers will correspond to the same holder, and there is no mutual dependence between containers. All containers will ask the holder whether the latest decolorization strategy has been synchronized. If it is not equal to the graymanager count tag, the holder (module) needs to calculate and store the state (grayState) corresponding to the module decolorization and synchronize the count tag of grayManager. If the count tags are the same, directly read the holder (module) decolorization state value. If the state value changes, traverse all the elements that need to be decolorized in the container, and implement the specific decolorization effect according to the corresponding decolorization scheme;
[0117] Specifically, the flowchart Figure 5 As shown:
[0118] S502, grayManager initiates a request; S504, backend decolorization configuration server; after decolorization strategy is configured, grayManager is returned;
[0119] S506, grayManager processes the data and obtains the current decolorization level (P0, P1, P2); and executes S508 to send a message; specifically, the picture, text tag, H5 container and other tags subscribe to the message notification sent to obtain the strategy;
[0120] Further judgment S510: does an owner exist?
[0121] If it exists, execute S512, themeOwner updates the count and updates grayState; specifically, the counting round of the update module matches the round corresponding to the graymanager counting tag;
[0122] If not, execute S514 to determine whether grayState==1?
[0123] If grayState==1, execute S518 to perform a decolorization / colorization operation; that is, the decolorization state value is 1 to determine the execution of the strategy; specifically, the decolorization process may be performed on images, texts, H5 containers, and other elements, or colorization may be performed according to the colorization strategy, which is not limited here;
[0124] If grayState is not 1, S516 is executed to perform a restoration operation, specifically, the image, text, H5 container and other elements may be restored.
[0125] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0126] According to another aspect of the embodiment of the present application, a page rendering device for implementing the above-mentioned page rendering method is also provided. Figure 6 As shown, the device comprises:
[0127] The acquisition unit 602 acquires the page rendering instruction sent by the rendering manager through the current page object in the target application, wherein the rendering manager is used to acquire the page rendering strategy issued from the server and generate the page rendering instruction based on the page rendering strategy;
[0128] The forwarding unit 604 forwards the page rendering instruction to the current page module when the current page object is a page object included in the current page module, wherein the target application includes at least one page module, and each page module includes a plurality of page objects;
[0129] The determination unit 606 obtains the target rendering instruction returned by the current page module when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters;
[0130] The adjusting unit 608 determines to adjust the rendering style of the current page object from the first style to the second style according to the target rendering instruction.
[0131] Optionally, the page rendering device further includes: a third acquisition unit, used to acquire the current playback progress of the target media resource in real time; updating the target style switching node according to the style switching node that is located before the current playback progress and closest to the current playback progress; acquiring the updated page element according to the node identifier of the updated style switching node; and displaying the resource playback page of the target media resource according to the updated page element.
[0132] Optionally, the forwarding unit includes: a first acquisition module, used to acquire the first counting parameter included in the above-mentioned page rendering instruction through the above-mentioned current page module, wherein the above-mentioned first counting parameter is used to indicate the release round corresponding to the above-mentioned page rendering instruction; when the second counting parameter pre-stored in the above-mentioned current page module matches the above-mentioned first counting parameter, determining that the above-mentioned page rendering instruction meets the above-mentioned target verification condition, wherein the above-mentioned verification parameter includes the above-mentioned second counting parameter; when the second counting parameter pre-stored in the above-mentioned current page module does not match the above-mentioned first counting parameter, acquiring rendering verification information matching the above-mentioned page rendering instruction; determining that the above-mentioned page rendering instruction meets the above-mentioned target verification condition according to the above-mentioned rendering verification information.
[0133] Optionally, the first acquisition unit includes: a first determination module, used to determine that the page rendering instruction meets the target verification condition when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level; determine that the page rendering instruction meets the target verification condition when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level; obtain the module identifier carried in the rendering verification information when the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level; determine that the page rendering instruction meets the target verification condition when the module identifier matches the target identifier of the current page module; determine that the page rendering instruction does not meet the target verification condition when the module identifier does not match the target identifier of the current page module.
[0134] Optionally, the first acquisition unit includes: a first module, used to update the second counting parameter according to the first counting parameter when the rendering status parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style, and the page rendering instruction satisfies the target verification condition, and send the target rendering instruction to the current page object through the current page module; when the rendering status parameter carried in the page rendering instruction indicates that the first style is maintained, update the second counting parameter according to the first counting parameter.
[0135] Optionally, the first acquisition unit further includes an updating unit, which is used to: when it is determined that the page rendering instruction does not meet the target verification condition, update the second counting parameter according to the first counting parameter.
[0136] Optionally, the acquisition unit also includes: a second adjustment module, which is used to use the page rendering instruction as the target rendering instruction when the current page object is not the page object included in any of the page modules; and determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
[0137] Optionally, the device further includes: a third adjustment module, configured to adjust the rendering style of the current page object from a regular style to a grayscale style; and to adjust the rendering style of the current page object from the grayscale style to a regular style.
[0138] Optionally, the third adjustment module also includes: a fourth adjustment module, which is used to obtain a reference image object obtained through grayscale conversion when the current page object is a picture object; adjust the rendering style of the current page object from a regular style to a grayscale style according to the reference image object; when the current page object is a URL page object, adjust the rendering style of the current page object from a regular style to a grayscale style by adjusting the filter configuration parameters; when the current page object is a rich text object, adjust the rendering style of the current page object from a regular style to a grayscale style according to the gray color block.
[0139] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned page rendering method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a mobile phone or a computer as an example. Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.
[0140] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0141] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0142] S1, obtaining a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server and generate a page rendering instruction based on the page rendering strategy;
[0143] S2, when the current page object is a page object included in the current page module, forwarding the page rendering instruction to the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects;
[0144] S3, when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, obtaining the target rendering instruction returned by the current page module;
[0145] S4: Determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
[0146] Alternatively, a person skilled in the art may understand that: Figure 7 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations shown.
[0147] Among them, the memory 702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the page rendering method and device in the embodiment of the present application. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizing the above-mentioned page rendering method. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include a memory remotely located relative to the processor 704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 702 can be specifically, but not limited to, used to store information such as page elements and page styles. As an example, such as Figure 7 As shown, the memory 702 may include but is not limited to the acquisition unit 602, forwarding unit 604, determination unit 606 and adjustment unit 608 in the page rendering device. In addition, it may also include but is not limited to other module units in the page rendering device, which will not be repeated in this example.
[0148] Optionally, the transmission device 706 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0149] In addition, the electronic device further includes: a display 708 for displaying the target page; and a connection bus 710 for connecting various module components in the electronic device.
[0150] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a point-to-point network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the point-to-point network.
[0151] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the above various optional implementations;
[0152] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0153] S1, obtaining a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server and generate a page rendering instruction based on the page rendering strategy;
[0154] S2, when the current page object is a page object included in the current page module, forwarding the page rendering instruction to the current page module, wherein the target application includes at least one page module, and each page module includes multiple page objects;
[0155] S3, when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, obtaining the target rendering instruction returned by the current page module;
[0156] S4: Determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
[0157] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0158] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0159] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0160] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0161] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0164] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A page rendering method, characterized in that: include: Obtaining a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to obtain a page rendering strategy issued from a server and generate the page rendering instruction based on the page rendering strategy; In the case where the current page object is a page object included in a current page module, forwarding the page rendering instruction to the current page module, wherein the target application includes at least one page module, and each of the page modules includes a plurality of page objects; When the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, obtaining the target rendering instruction returned by the current page module; Determine, according to the target rendering instruction, to adjust the rendering style of the current page object from a first style to a second style.
2. The method according to claim 1, characterized in that In the case where the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes: Acquire, through the current page module, a first counting parameter included in the page rendering instruction, wherein the first counting parameter is used to indicate a publishing round corresponding to the page rendering instruction; In a case where a second counting parameter pre-stored in the current page module matches the first counting parameter, determining that the page rendering instruction satisfies the target verification condition, wherein the verification parameter includes the second counting parameter; When a second counting parameter pre-stored in the current page module does not match the first counting parameter, acquiring rendering verification information matching the page rendering instruction; Determine, according to the rendering verification information, that the page rendering instruction satisfies the target verification condition.
3. The method according to claim 2, characterized in that In the case where the second counting parameter pre-stored in the current page module does not match the first counting parameter, after acquiring rendering verification information matching the page rendering instruction, the method further includes: When the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the application level, determining that the page rendering instruction satisfies the target verification condition; When the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the page level, determining that the page rendering instruction satisfies the target verification condition; When the rendering verification information indicates that the rendering level corresponding to the page rendering instruction is the module level, obtain the module identifier carried in the rendering verification information; when the module identifier matches the target identifier of the current page module, determine that the page rendering instruction meets the target verification condition; when the module identifier does not match the target identifier of the current page module, determine that the page rendering instruction does not meet the target verification condition.
4. The method according to claim 2, characterized in that: In the case where the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes: When the rendering state parameter carried in the page rendering instruction indicates that the first style is adjusted to the second style and the page rendering instruction satisfies the target verification condition, the second counting parameter is updated according to the first counting parameter, and the target rendering instruction is sent to the current page object through the current page module; When the rendering state parameter carried in the page rendering instruction indicates to keep the first style, the second counting parameter is updated according to the first counting parameter.
5. The method according to claim 2, characterized in that: In the case where the current page object is a page object included in the current page module, after forwarding the page rendering instruction to the current page module, the method further includes: When it is determined that the page rendering instruction does not satisfy the target verification condition, the second counting parameter is updated according to the first counting parameter.
6. The method according to claim 1, characterized in that After obtaining the page rendering instruction sent by the rendering manager through the current page object in the target application, the method further includes: In a case where the current page object is not the page object included in any of the page modules, using the page rendering instruction as the target rendering instruction; Determine, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style.
7. The method according to any one of claims 1 or 6, characterized in that The step of determining, according to the target rendering instruction, to adjust the rendering style of the current page object from the first style to the second style comprises one of the following: Adjust the rendering style of the current page object from a normal style to a grayscale style; The rendering style of the current page object is adjusted from the grayscale style to a normal style.
8. The method according to claim 7, characterized in that The step of adjusting the rendering style of the current page object from a normal style to a grayscale style includes: In the case where the current page object is a picture object, obtaining a reference picture object obtained through grayscale conversion; adjusting the rendering style of the current page object from a normal style to a grayscale style according to the reference picture object; In the case where the current page object is a website page object, adjusting the rendering style of the current page object from a normal style to a grayscale style by adjusting the filter configuration parameters; In the case that the current page object is a rich text object, the rendering style of the current page object is adjusted from a normal style to a grayscale style according to the gray color block.
9. A page rendering device, characterized in that: include: An acquisition unit, which acquires a page rendering instruction sent by a rendering manager through a current page object in a target application, wherein the rendering manager is used to acquire a page rendering strategy issued from a server and generate the page rendering instruction based on the page rendering strategy; a forwarding unit, which forwards the page rendering instruction to the current page module when the current page object is a page object included in the current page module, wherein the target application includes at least one page module, and each of the page modules includes a plurality of page objects; A determination unit, when the current page module determines that the page rendering instruction meets the target verification condition according to the pre-saved verification parameters, obtains the target rendering instruction returned by the current page module; The adjusting unit determines, according to the target rendering instruction, to adjust the rendering style of the current page object from a first style to a second style.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 8.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.
Citation Information
Patent Citations
Page generation method and apparatus, and user terminal
CN108280119A
Page processing method and device, terminal equipment, server and storage medium
CN110825479A
Component rendering method and device, readable medium and electronic equipment
CN112558933A
Application program interface color adjusting method and device and electronic equipment
CN117407105A
Method of identifying a target object on a web page
US20170242830A1
