A page update method, apparatus, device, and storage medium
By receiving the configuration file generated by the server, the client parses and updates the page structure, component attributes, and layout rules, solving the problem of low page update efficiency in existing technologies and achieving flexible, real-time page updates and adaptation to different terminal devices.
Patent Information
- Application Number
- CN202611249248.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-10
AI Technical Summary
In existing technologies, page updates require developers to intervene and modify code, resulting in a large amount of repetitive work, which cannot meet the real-time requirements and only supports the replacement of static resources, making it impossible to flexibly adjust the page.
By receiving a configuration file generated by the server, which contains page structure, component properties, and layout rules, the client parses and updates the page structure, component properties, and layout rules, enabling flexible updates.
It enables dynamic configuration of page structure, component attributes, and layout rules without modifying the code, improving page update efficiency, supporting real-time dynamic adjustments, adapting to different terminal devices, and reducing operational risks.
Smart Images

Figure CN123067896A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page update method, apparatus, device and storage medium. Background Technology
[0002] In current mobile internet application development, page layouts are typically hard-coded into the application code, with page structure, component attributes, and layout rules fixed upon application release. When a page needs updating, the entire process of "developers modifying code → repackaging the application → submitting to the app store for review → users downloading the new version" must be followed. From the time a page update is requested to its effect on the client side, it takes several days to weeks, failing to meet the real-time requirements of marketing campaigns, emergency fixes, and other scenarios. Users may not see the latest pages due to delayed app updates, impacting user experience. Furthermore, each page update requires developer intervention to modify code, resulting in a large amount of repetitive work and low development and maintenance efficiency.
[0003] Existing technologies that update pages through hot updates or resource package downloads typically only support the replacement of static resources such as text and images, and cannot flexibly adjust the page.
[0004] Therefore, this application proposes a page update method to achieve flexible page updates. Summary of the Invention
[0005] This invention provides a page updating method, apparatus, device, and storage medium to enable flexible page updates and improve page updating efficiency.
[0006] In a first aspect, embodiments of the present invention provide a page update method, including: Receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure, component attributes and layout rules; The client's current page is updated based on the parsed content obtained from the configuration file, thus obtaining the target page.
[0007] The technical solution of this invention provides a page update method, comprising: receiving a configuration file sent by a server, wherein the configuration file is generated according to configuration instructions input by an administrator, and the configuration file includes at least one of page structure, component attributes, and layout rules; updating the current page of the client according to the parsed content obtained by parsing the configuration file, thereby obtaining a target page. In this technical solution, after the server generates the configuration file according to the administrator's operation, it sends the configuration file to the client. The client receives the configuration file sent by the server, thereby obtaining the configuration file required for page updates. The client parses the parsed content of the configuration file and updates at least one of the corresponding page structure, component attributes, and layout rules in the client's current page according to the parsed content, thereby achieving flexible updates of the current page, obtaining the target page, and improving page update efficiency.
[0008] Furthermore, it also includes: When the client starts running, it sends a device model and version comparison request to the server, so that the server determines the corresponding comparison result based on the device model and version comparison request. If the comparison result is determined to be inconsistent, the server sends the page configuration file to the client, wherein the device model is the model of the device on which the client is installed. The page is rendered based on the page configuration file to obtain the initial page.
[0009] Furthermore, the process by which the server determines the corresponding comparison result based on the device model and the version comparison request includes: Determine the latest page version corresponding to the device model; determine the comparison result by comparing the current page version included in the version comparison request with the latest page version.
[0010] Furthermore, the layout rules include device layout rules and real-time layout rules, wherein the device layout rules are pre-rendered by the server based on the device model.
[0011] Furthermore, the process by which the server generates the configuration file based on the configuration instructions input by the administrator includes: The instruction triggered by the administrator editing the design page is identified as the configuration instruction, and the configuration instruction is mapped to at least one of the corresponding page structure, component attributes, and layout rules; according to a preset file format, at least one of the page structure, component attributes, and layout rules mapped by the configuration instruction is converted into the configuration file of the corresponding format.
[0012] Furthermore, the page structure includes at least page identifier and page sorting information, the component attributes include at least component identifier, component type and component style parameters, and the layout rules include at least layout mode, component hierarchy and position constraint parameters.
[0013] Furthermore, the client's current page is updated based on the parsed content obtained from parsing the configuration file to obtain the target page, including: The configuration file is parsed to obtain the parsed content, wherein the parsed content includes at least one of page structure update information, component attribute update information, and layout rule update information; based on at least one of the page structure update information, component attribute update information, and layout rule update information, at least one of the corresponding page structure, component attributes, and layout rules in the current page of the client is updated to obtain the target page.
[0014] Secondly, embodiments of the present invention also provide a page updating apparatus, comprising: The receiving module is used to receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure information, component attribute information and layout rule information; The execution module is used to update the current page of the client based on the parsed content obtained from parsing the configuration file, and obtain the target page.
[0015] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform a page update method as described in any of the first aspects.
[0016] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the page update method as described in any of the first aspects.
[0017] Fifthly, this application provides a computer program product including computer instructions that, when executed on a computer, cause the computer to perform the page update method as provided in the first aspect.
[0018] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the page update device, or it may be packaged separately from the processor of the page update device; this application does not impose any limitations on this.
[0019] The descriptions of the second, third, fourth, and fifth aspects in this application can be referred to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, and fifth aspects can be referred to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0020] In this application, the name of the aforementioned page updating device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.
[0021] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart of a page update method provided in an embodiment of the present invention; Figure 2 A flowchart of another page update method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a page updating device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0024] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0025] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0026] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0027] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0028] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc. Moreover, embodiments and features in the embodiments of the present invention can be combined with each other without conflict.
[0029] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0030] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0031] Figure 1 This is a flowchart illustrating a page update method provided in an embodiment of the present invention. This embodiment is applicable to situations requiring flexible page updates. The method can be executed by a page update device, such as... Figure 1 As shown, the specific steps include the following: Step 110: Receive the configuration file sent by the server.
[0032] The configuration file is generated based on the configuration instructions entered by the administrator, and the configuration file includes at least one of page structure, component attributes, and layout rules.
[0033] Administrators can perform drag-and-drop operations and form entry on the design page using the management terminal. The management terminal can generate corresponding configuration commands based on the administrator's operations and send the configuration commands to the server.
[0034] Specifically, after receiving the configuration command, the server first performs parameter validation, including basic non-empty validation, component whitelist validation, attribute type validation, and nesting depth validation. Once all parameter validations pass, the server performs business layout rule validation, including layout rule validation, grid rule validation, and component nesting constraint validation. After all business layout rule validations pass, the server performs permission validation to check if the current administrator has editing permissions for the page. After passing permission validation, the server performs data normalization and completion processing on the configuration command. This results in a configuration file containing at least one of the following: page structure, component attributes, and layout rules. The configuration file can be in Extensible Markup Language (Extreme Markup Language) or JSON Schema format and includes at least one of the following: page structure, component attributes, and layout rules.
[0035] The server and client interact with each other via the HTTP protocol. After determining the configuration file, the server can further distribute the configuration file to the client. The client can receive the configuration file distributed by the server and update the page based on the configuration file.
[0036] In this embodiment of the invention, after the server generates a configuration file based on the administrator's operation, it sends the configuration file to the client. The client receives the configuration file sent by the server and obtains the configuration file required for page updates.
[0037] Step 120: Update the current page of the client according to the parsed content obtained from parsing the configuration file to obtain the target page.
[0038] Specifically, after receiving the configuration file sent by the server, the client can parse the configuration file to obtain the parsed content contained in the configuration file. The configuration file includes at least one of page structure, component attributes, and layout rules. The parsed content includes update content for at least one of the page structure, component attributes, and layout rules. Then, based on the parsed content, at least one of the corresponding page structure, component attributes, and layout rules in the client's current page can be updated to obtain the target page.
[0039] In this embodiment of the invention, updating at least one of the page structure, component attributes, and layout rules corresponding to the current page of the client can be achieved by updating the current page according to the parsed content obtained from the parsed configuration file, thereby obtaining the target page.
[0040] The page update method provided in this invention includes: receiving a configuration file sent by a server, wherein the configuration file is generated according to configuration instructions input by an administrator, and the configuration file includes at least one of page structure, component attributes, and layout rules; updating the current page of the client according to the parsed content obtained by parsing the configuration file to obtain a target page. In this technical solution, after the server generates the configuration file according to the administrator's operation, it sends the configuration file to the client. The client receives the configuration file sent by the server, thereby obtaining the configuration file required for page updates. The client parses the parsed content of the configuration file and updates at least one of the corresponding page structure, component attributes, and layout rules in the client's current page according to the parsed content, achieving flexible updates of the current page to obtain the target page and improving page update efficiency.
[0041] Figure 2 This is a flowchart illustrating another page update method provided in an embodiment of the present invention. This embodiment is a specific modification based on the above embodiments. Figure 2 As shown, in this embodiment, the method may further include: Step 210: When the client starts running, it sends a device model and version comparison request to the server, so that the server determines the corresponding comparison result based on the device model and version comparison request, and sends the page configuration file to the client when it determines that the comparison result is inconsistent.
[0042] The device model refers to the model of the device on which the client is installed, and the page configuration file can be in JSON Schema format.
[0043] In one implementation, the process by which the server determines the corresponding comparison result based on the device model and the version comparison request includes: Determine the latest page version corresponding to the device model; determine the comparison result by comparing the current page version included in the version comparison request with the latest page version.
[0044] Each time the client starts up, it needs to load the page. If the page hasn't been updated, it directly displays the current version of the page stored on the client without re-rendering. If the page has been updated, it needs to retrieve the page configuration file again and re-render the page. Therefore, each time the client starts up, it needs to determine if the page has been updated. This can be done by sending the current page version stored on the client to the server and comparing it with the latest page version stored on the server.
[0045] Specifically, when the client starts up, it can send a device model and version comparison request to the server. The device model can be understood as the model of the device on which the client is installed, and the version comparison request can include the client's current page version. After receiving the device model and version comparison request, the server first determines the latest page version corresponding to the device model, and then compares the current page version included in the version comparison request with the latest page version to determine whether the comparison result is the same or different. When the server determines that the comparison result is the same, it means that the client does not need to re-render the page. When the server determines that the comparison result is different, it means that the client needs to re-render the page. In this case, the server can send the page configuration file to the client so that the client can re-render the page based on the page configuration file.
[0046] In this embodiment of the invention, when the client starts running, it sends a device model and version comparison request to the server. When the server determines that the comparison results of the current page version and the latest page version contained in the version comparison request are inconsistent, it sends the page configuration file to the client, thereby realizing the distribution of the latest page configuration file to the client.
[0047] Step 220: Render the page based on the page configuration file to obtain the initial page.
[0048] Specifically, after receiving the page configuration file from the server, the client can render the page based on it. First, the client parses the JSON Schema format page configuration file to fully read the page structure, component attributes, and layout rules, serving as the basic data source for page rendering. Then, it performs validity checks and filtering optimizations on the original configuration, verifying configuration completeness and field validity, filtering disabled and client-incompatible floors, resetting the floor display order according to sorting rules, removing invalid component references, supplementing missing default layout parameters, and generating a clean and usable rendering data source to avoid rendering anomalies caused by illegal data. Furthermore, based on the preprocessed flattened configuration, an independent virtual component tree can be built in the client's memory, forming a hierarchical structure of "root node - floor node - component node." Through the component ID associated with each floor, the business attributes and original layout rules of the corresponding component are mapped and bound. Only memory logical nodes are generated, without generating a real Document Object Model (DOM), providing unified structural support for subsequent layout calculations and recursive rendering. The virtual tree nodes are recursively traversed according to the priority of "component layout rules first, then floor layout rules, and finally global layout rules." By combining the page grid system and the actual width of the containers, the system automatically calculates the actual size of components, margins, alignment, and hierarchy weights, generating standardized style parameters that can be directly used for DOM rendering and attaching them to each virtual node. Relying on the client's component registry, a mapping relationship between component types and business components is established. The virtual component tree is recursively traversed, rendering floor containers and business components layer by layer. The parsed component business attributes and calculated layout styles are injected into the components, dynamically generating the actual DOM structure of the page and outputting the complete initial page.
[0049] In this embodiment of the invention, the client renders the initial page according to the page configuration file sent by the server, thereby rendering the initial page after the client starts running.
[0050] Step 230: Receive the configuration file sent by the server.
[0051] The configuration file is generated based on the configuration instructions input by the administrator. The configuration file includes at least one of page structure, component attributes, and layout rules. The page structure includes at least page identifier and page sorting information. The component attributes include at least component identifier, component type, and component style parameters. The layout rules include device layout rules and real-time layout rules. The device layout rules are pre-rendered by the server according to the device model. The layout rules include at least layout mode, component hierarchy, and position constraint parameters.
[0052] In one implementation, the process by which the server generates the configuration file based on the configuration instructions input by the administrator includes: The instruction triggered by the administrator editing the design page is identified as the configuration instruction, and the configuration instruction is mapped to at least one of the corresponding page structure, component attributes, and layout rules; according to a preset file format, at least one of the page structure, component attributes, and layout rules mapped by the configuration instruction is converted into the configuration file of the corresponding format.
[0053] The default file format can be JSON Schema.
[0054] Specifically, administrators can edit the design page using the management terminal, performing operations such as drag-and-drop and form entry. The management terminal can send the corresponding commands to the server. The server can identify the commands triggered by the operations as configuration commands and map them to at least one of the corresponding page structure, component attributes, and layout rules. This ensures that the configuration command updates at least one of the page structure, component attributes, and layout rules. The server can also convert at least one of the page structure, component attributes, and layout rules mapped to the configuration command into a corresponding configuration file format according to a preset file format, thus generating the configuration file.
[0055] Of course, after the server determines the configuration file, it can further distribute the configuration file to the client. The client can receive the configuration file distributed by the server and update the page based on the configuration file.
[0056] In this embodiment of the invention, after the server determines the configuration file, it sends the configuration file to the client. The client receives the configuration file sent by the server and obtains the configuration file required for page updates.
[0057] Step 240: Update the current page of the client according to the parsed content obtained from parsing the configuration file to obtain the target page.
[0058] In one implementation, step 240 may specifically include: The configuration file is parsed to obtain the parsed content, wherein the parsed content includes at least one of page structure update information, component attribute update information, and layout rule update information; based on at least one of the page structure update information, component attribute update information, and layout rule update information, at least one of the corresponding page structure, component attributes, and layout rules in the current page of the client is updated to obtain the target page.
[0059] Specifically, after receiving the configuration file sent by the server, the client can parse the configuration file to obtain the parsed content contained in the configuration file. The configuration file includes at least one of page structure, component attributes, and layout rules. The parsed content includes at least one of page structure update information, component attribute update information, and layout rule update information. Then, based on at least one of the page structure update information, component attribute update information, and layout rule update information, the client can update at least one of the corresponding page structure, component attributes, and layout rules in the current page to obtain the target page.
[0060] In this embodiment of the invention, updating at least one of the page structure, component attributes, and layout rules corresponding to the current page of the client can be achieved by updating the current page according to the parsed content obtained from the parsed configuration file, thereby obtaining the target page.
[0061] The page update method provided in this embodiment of the invention includes: sending a device model and version comparison request to the server when the client starts running, so that the server determines the corresponding comparison result based on the device model and version comparison request; when it is determined that the comparison result is inconsistent, sending a page request to the server so that the server sends a page configuration file to the client; rendering the page based on the page configuration file to obtain an initial page; receiving the configuration file sent by the server; and updating the current page of the client according to the parsed content obtained by parsing the configuration file to obtain a target page. The above technical solution involves the client sending a device model and version comparison request to the server upon startup. If the server determines that the current page version and the latest page version in the version comparison request are inconsistent, it sends the page configuration file to the client, ensuring the latest configuration file is delivered. The client then renders the initial page based on the configuration file from the server, enabling the rendering of the initial page after the client starts running. The client also receives a configuration file generated by the administrator based on server instructions, allowing it to obtain the necessary configuration files for page updates. The client parses the configuration file content and updates at least one of the page structure, component attributes, and layout rules corresponding to the current page, enabling flexible page updates to obtain the target page and improving page update efficiency.
[0062] By decoupling the page layout logic from the client-side code, the page can be dynamically adjusted in real time using configuration files and a dynamic rendering engine. This allows for comprehensive dynamic configuration of page structure, component attributes, and layout rules without modifying code or updating the application version. It breaks through the limitation of traditional hot updates that only support static resource replacement and solves version dependency issues, significantly improving page update efficiency and flexibility.
[0063] Furthermore, by matching the corresponding page configuration file to the device model and based on responsive layout rules, it automatically adapts to different terminal devices, improving compatibility and avoiding page inconsistencies caused by different terminal devices. This ensures that users always see the latest and most suitable page layout. The page configuration file supports version management and allows for quick rollback to historical versions, reducing update risks and improving operational efficiency.
[0064] Figure 3 This is a schematic diagram of a page updating device provided in an embodiment of the present invention. This device is applicable to situations requiring flexible page updates, improving page updating efficiency. The device can be implemented through software and / or hardware and is generally integrated into electronic devices, such as computer devices.
[0065] like Figure 3 As shown, the device includes: The receiving module 310 is used to receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure information, component attribute information and layout rule information; The execution module 320 is used to update the current page of the client according to the parsed content obtained by parsing the configuration file, so as to obtain the target page.
[0066] The page update device provided in this embodiment receives a configuration file sent by a server. The configuration file is generated based on configuration instructions input by an administrator and includes at least one of page structure, component attributes, and layout rules. The device updates the client's current page based on the parsed content obtained from parsing the configuration file, thus obtaining the target page. In this technical solution, after the server generates the configuration file according to the administrator's operation, it sends the configuration file to the client. The client receives the configuration file from the server, thereby obtaining the configuration file required for page updates. The client parses the parsed content of the configuration file and updates at least one of the corresponding page structure, component attributes, and layout rules on the client's current page based on the parsed content, achieving flexible updates of the current page to obtain the target page and improving page update efficiency.
[0067] Based on the above embodiments, the device further includes: The runtime module is used to send a device model and version comparison request to the server when the client starts running, so that the server determines the corresponding comparison result based on the device model and version comparison request, and when it is determined that the comparison result is inconsistent, it sends the page configuration file to the client, wherein the device model is the model of the device on which the client is installed; and performs page rendering based on the page configuration file to obtain the initial page.
[0068] In one implementation, the process by which the server determines the corresponding comparison result based on the device model and the version comparison request includes: Determine the latest page version corresponding to the device model; determine the comparison result by comparing the current page version included in the version comparison request with the latest page version.
[0069] In one implementation, the layout rules include device layout rules and real-time layout rules, wherein the device layout rules are pre-rendered by the server based on the device model.
[0070] In one implementation, the process by which the server generates the configuration file based on the configuration instructions input by the administrator includes: The instruction triggered by the administrator editing the design page is identified as the configuration instruction, and the configuration instruction is mapped to at least one of the corresponding page structure, component attributes, and layout rules; according to a preset file format, at least one of the page structure, component attributes, and layout rules mapped by the configuration instruction is converted into the configuration file of the corresponding format.
[0071] In one embodiment, the page structure includes at least a page identifier and page sorting information, the component attributes include at least a component identifier, a component type, and component style parameters, and the layout rules include at least a layout mode, a component hierarchy, and position constraint parameters.
[0072] Based on the above embodiments, the execution module 320 is specifically used for: The configuration file is parsed to obtain the parsed content, wherein the parsed content includes at least one of page structure update information, component attribute update information, and layout rule update information; based on at least one of the page structure update information, component attribute update information, and layout rule update information, at least one of the corresponding page structure, component attributes, and layout rules in the current page of the client is updated to obtain the target page.
[0073] The page update apparatus provided in this embodiment of the invention can execute the page update method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the page update method.
[0074] It is worth noting that in the embodiments of the above-mentioned page update device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0075] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 4 A block diagram of an exemplary electronic device 4 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 4 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0076] like Figure 4 As shown, electronic device 4 is represented in the form of a general-purpose computing electronic device. The components of electronic device 4 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0077] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0078] Electronic device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 4, including volatile and non-volatile media, removable and non-removable media.
[0079] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 4 Not shown; usually referred to as a "hard drive"). Although Figure 4 As not shown, disk drives for reading and writing to removable non-volatile disks (e.g., "floppy disks") and optical disc drives for reading and writing to removable non-volatile optical discs (e.g., CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0080] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0081] Electronic device 4 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 4, and / or with any device that enables electronic device 4 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 22. Furthermore, electronic device 4 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. Figure 4 As shown, network adapter 20 communicates with other modules of electronic device 4 via bus 18. It should be understood that, although... Figure 4 Not shown, it can be combined with electronic device 4 to use other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0082] Processing unit 16 executes various functional applications and page displays by running programs stored in system memory 28, such as implementing the page update method provided in this embodiment of the invention, which includes: Receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure, component attributes and layout rules; The client's current page is updated based on the parsed content obtained from the configuration file, thus obtaining the target page.
[0083] Of course, those skilled in the art will understand that the processor can also implement the technical solutions of the page update method provided in any embodiment of the present invention.
[0084] This invention provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements, for example, the page update method provided in this invention, which includes: Receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure, component attributes and layout rules; The client's current page is updated based on the parsed content obtained from the configuration file, thus obtaining the target page.
[0085] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0086] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0087] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0088] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0089] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0090] Furthermore, the acquisition, storage, use, and processing of data in the technical solution of this invention all comply with relevant laws and regulations.
[0091] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A page update method, characterized in that, include: Receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure, component attributes and layout rules; The client's current page is updated based on the parsed content obtained from the configuration file, thus obtaining the target page.
2. The page update method according to claim 1, characterized in that, Also includes: When the client starts running, it sends a device model and version comparison request to the server, so that the server determines the corresponding comparison result based on the device model and version comparison request. If the comparison result is determined to be inconsistent, the server sends the page configuration file to the client, wherein the device model is the model of the device on which the client is installed. The page is rendered based on the page configuration file to obtain the initial page.
3. The page update method according to claim 2, characterized in that, The process by which the server determines the corresponding comparison result based on the device model and the version comparison request includes: Determine the latest page version corresponding to the device model; The comparison result is determined by comparing the current page version included in the version comparison request with the latest page version.
4. The page update method according to claim 2, characterized in that, The layout rules include device layout rules and real-time layout rules. The device layout rules are pre-rendered by the server based on the device model.
5. The page update method according to claim 1, characterized in that, The process by which the server generates the configuration file based on the configuration instructions input by the administrator includes: The instruction triggered by the administrator editing the design page is identified as the configuration instruction, and the configuration instruction is mapped to at least one of the corresponding page structure, component attributes, and layout rules; According to a preset file format, at least one of the page structure, component attributes, and layout rules mapped by the configuration instructions is converted into the configuration file of the corresponding format.
6. The page update method according to claim 1, characterized in that, The page structure includes at least page identifier and page sorting information, the component attributes include at least component identifier, component type and component style parameters, and the layout rules include at least layout mode, component hierarchy and position constraint parameters.
7. The page update method according to claim 1, characterized in that, The client's current page is updated based on the parsed content obtained from the configuration file, resulting in the target page, including: The parsed content is obtained by parsing the configuration file, wherein the parsed content includes at least one of page structure update information, component attribute update information, and layout rule update information; The target page is obtained by updating at least one of the page structure update information, component attribute update information, and layout rule update information in the current page of the client.
8. A page updating device, characterized in that, include: The receiving module is used to receive a configuration file sent by the server, wherein the configuration file is generated according to the configuration instructions input by the administrator, and the configuration file includes at least one of page structure information, component attribute information and layout rule information; The execution module is used to update the current page of the client based on the parsed content obtained from parsing the configuration file, and obtain the target page.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the page update method as described in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the page update method as described in any one of claims 1-7.
