Data updating method, device, terminal and storage medium
Accessing and modifying incremental page data through the management interface solves the problems of long and inefficient page development process, and realizes efficient data updates and convenient modification processes.
Patent Information
- Application Number
- CN202111050188.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2041-09-08
AI Technical Summary
In the existing technology, the page development process is long and the development efficiency is low. It requires manual modification of page data, which is a high communication cost.
Access incremental page data through the management interface, display incremental elements, and allow users to modify incremental elements directly on the interface to achieve update of incremental page data.
Improve development efficiency, save communication costs, and improve the convenience of data modification.
Smart Images

Figure CN115774822B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a data updating method, device, terminal, and storage medium. Background Art
[0002] During the page development process, the developed page needs to be reviewed by the reviewer. If the review fails, the developer will modify the page code according to the reviewer's review opinions to update the page. However, this method has a long development process and low development efficiency. Summary of the Invention
[0003] The embodiments of the present application provide a data update method, device, terminal, and storage medium that can improve development efficiency. The technical solution is as follows:
[0004] In one aspect, a development efficiency method is provided, the method comprising:
[0005] Based on the management interface, access incremental page data of the target page, wherein the incremental page data is used to incrementally update the original page data of the target page;
[0006] In the management interface, displaying the incremental elements corresponding to the incremental page data;
[0007] In response to a modification operation on the incremental element, the incremental page data is modified based on the modified incremental element.
[0008] In another aspect, a data updating device is provided, comprising:
[0009] An access module, configured to access incremental page data of a target page based on a management interface, wherein the incremental page data is used to incrementally update original page data of the target page;
[0010] A display module, configured to display the incremental elements corresponding to the incremental page data in the management interface;
[0011] The modification module is used to modify the incremental page data based on the modified incremental element in response to the modification operation on the incremental element.
[0012] In a possible implementation, the access module is configured to access the original page data and the incremental page data based on the management interface;
[0013] The display module is configured to display the target page after incremental update in the management interface based on the original page data and the incremental page data, wherein the target page includes at least the incremental element.
[0014] In another possible implementation, the display module includes:
[0015] A first display unit, configured to display the target page in the management interface based on the original page data;
[0016] An updating unit is configured to incrementally update the target page displayed in the management interface based on the incremental page data.
[0017] In another possible implementation, the incremental page data includes an element identifier and a corresponding incremental element storage address, and the incremental element storage address is used to store the incremental element corresponding to the element identifier; the update unit is used to determine the first element identifier associated with both the original page data and the incremental page data; based on the incremental page data, determine the first incremental element storage address corresponding to the first element identifier; and update the first element corresponding to the first element identifier in the target page to the first incremental element stored at the first incremental element storage address.
[0018] In another possible implementation, the original page data includes at least one element storage address, which is used to store elements and contains an element identifier of the corresponding element; the update unit is used to extract the element identifier from the element storage address contained in the original page data; and compare the extracted element identifier with the element identifier contained in the incremental page data to determine the first element identifier associated with both the original page data and the incremental page data.
[0019] In another possible implementation, the access module is used to access the original page data corresponding to the original data address and the incremental page data corresponding to the incremental data address based on the original data address and the incremental data address input in the management interface.
[0020] In another possible implementation, the management interface includes a first input area and a second input area; and the access module includes:
[0021] an acquiring unit, configured to acquire, based on the original data address input in the first input area, the original page data corresponding to the original data address;
[0022] a second display unit, configured to display at least one incremental data address associated with the original data address in the second input area, each of the incremental data addresses being used to store incremental page data of the target page;
[0023] The acquisition unit is further configured to, in response to a selection operation on any one of the at least one incremental data address, acquire the incremental page data corresponding to the selected incremental data address.
[0024] In another possible implementation, the modification module is used to display candidate elements in response to a replacement operation on the incremental element; replace the incremental element displayed in the management interface with the second element in response to a selection operation on a second element among the candidate elements; and modify the incremental page data based on the replaced second element.
[0025] In another possible implementation, the apparatus further includes:
[0026] A storage module, configured to store the second element at a second incremental element storage address;
[0027] The modification module is configured to update the incremental element storage address corresponding to the element identifier in the incremental page data to the second incremental element storage address based on the element identifier corresponding to the incremental element.
[0028] In another possible implementation, the apparatus further includes:
[0029] The display module is further configured to display the added target element in the management interface in response to an element adding operation in the management interface;
[0030] A storage module, configured to generate a target element identifier of the target element, and store the target element at a third incremental element storage address;
[0031] The storage module is used to store the target element identifier and the third incremental element storage address in the incremental page data accordingly.
[0032] In another possible implementation, the apparatus further includes:
[0033] a detection module, configured to detect whether a target plug-in is currently installed in response to a display instruction for the management interface, wherein the target plug-in is configured to provide a page data update function;
[0034] The display module is further configured to display the management interface via the target plug-in in response to detecting that the target plug-in is currently installed.
[0035] In another possible implementation, the display module is further configured to display a reminder interface in response to failure to detect the target plug-in being installed, wherein the reminder interface is configured to remind the user to install the target plug-in.
[0036] The display module is further configured to display the management interface through the target plug-in when the target plug-in is installed.
[0037] On the other hand, a terminal is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the data update method described in the above aspects.
[0038] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the data update method described in the above aspects.
[0039] On the other hand, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the operations performed in the data updating method as described in the above aspects are implemented.
[0040] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0041] The method, device, terminal and storage medium provided in the embodiments of the present application provide a way to modify incremental page data. Based on the management interface, the incremental page data of the page can be accessed, and the incremental elements corresponding to the incremental page data are displayed in the management interface so that the user can intuitively view the incremental elements corresponding to the incremental page data. The management interface also has the function of modifying the incremental elements. Based on the modification operation performed on the incremental elements in the management interface, the incremental page data can be directly modified. There is no need to notify the developer to manually modify the page data of the page after reviewing the incremental page data, which saves communication costs, thereby improving development efficiency and the convenience of data modification. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 This is a schematic diagram of the structure of an implementation environment provided by an embodiment of the present application;
[0044] Figure 2 This is a flow chart of a data updating method provided in an embodiment of the present application;
[0045] Figure 3This is a flow chart of a data updating method provided in an embodiment of the present application;
[0046] Figure 4 This is a schematic diagram of a reminder interface provided by an embodiment of the present application;
[0047] Figure 5 This is a flow chart of incrementally updating a target page provided by an embodiment of the present application;
[0048] Figure 6 This is a flow chart of updating incremental page data provided by an embodiment of the present application;
[0049] Figure 7 This is a schematic diagram of a management interface provided by an embodiment of the present application;
[0050] Figure 8 This is a flow chart of a target page pre-displayed based on a static resource management system provided by an embodiment of the present application;
[0051] Figure 9 This is a flow chart of updating a page online provided by an embodiment of the present application;
[0052] Figure 10 This is a flow chart of a data updating method provided in an embodiment of the present application;
[0053] Figure 11 This is a schematic diagram of a management interface provided by an embodiment of the present application;
[0054] Figure 12 This is a schematic diagram of a management interface provided by an embodiment of the present application;
[0055] Figure 13 This is a structural diagram of a data updating device provided in an embodiment of the present application;
[0056] Figure 14 This is a structural diagram of a data updating device provided in an embodiment of the present application;
[0057] Figure 15 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0058] Figure 16 This is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0060] As used herein, the terms "first," "second," "third," and the like may be used to describe various concepts herein, but unless otherwise specified, these concepts are not limited by these terms. These terms are used solely to distinguish one concept from another. For example, a first incremental element storage address may be referred to as a second incremental element storage address, and similarly, a second incremental element storage address may be referred to as a first incremental element storage address without departing from the scope of this application.
[0061] As used herein, the terms “at least one,” “a plurality,” “each,” and “any” include one, two, or more than two, a plurality includes two or more than two, each refers to each of the corresponding plurality, and any refers to any one of the plurality. For example, a plurality of element storage addresses includes three element storage addresses, and each refers to each of the three element storage addresses, and any refers to any one of the three element storage addresses, which may be the first element storage address, the second element storage address, or the third element storage address.
[0062] The data updating method provided in the embodiment of the present application is executed by a terminal. Optionally, the terminal is a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc., but is not limited thereto.
[0063] In one possible implementation, the original page data and incremental page data developed by the developer are stored on a single server, or on multiple servers located in a single location, or on multiple servers distributed across multiple locations and interconnected via a communication network. Multiple computer devices distributed across multiple locations and interconnected via a communication network can form a blockchain system. The terminal accesses the original page data or incremental page data by accessing the server.
[0064] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.
[0065] Server 102 is used to provide services for the management interface. Optionally, incremental page data of the page is stored in server 102, or incremental page data of the page is stored in other servers. Server 102 is connected to the other servers via a wireless or wired network. Through the network connection, server 102 can access the incremental page data stored in the other servers.
[0066] Terminal 101 accesses the server 102, can display the management interface, and based on the management interface can access the incremental page data of the target page in server 102, or, based on the management interface and the network connection between server 102 and other servers, access the incremental page data of the target page in other servers, and display the incremental elements corresponding to the incremental page data in the management interface. Terminal 101 can modify the displayed incremental elements based on the management interface, thereby modifying the incremental page data of the target page.
[0067] The method provided in the embodiments of the present application can be used in a variety of scenarios.
[0068] For example, in the page development scenario:
[0069] After a developer develops the original page data for a page and releases it online, the page may need to be updated later. Therefore, the developer develops incremental page data for that page so that the page can be incrementally updated based on the incremental page data. After the developer develops the incremental page data, the incremental page data is stored on the server corresponding to the management page. Auditors can access the server to review the incremental page data.
[0070] The auditor's terminal accesses the management page provided by the server and displays the management interface. Based on the management interface, the auditor can access the incremental page data stored in the server and display the incremental elements corresponding to the incremental page data in the management interface. Based on the management interface, the displayed incremental elements can be modified, thereby modifying the incremental page data. The modified incremental page data is the incremental page data approved by the auditor. In this process, the auditor's terminal can directly modify the incremental page data based on the management interface, and there is no need for the developer to manually modify the incremental page data, which saves communication costs and improves development efficiency. Afterwards, the administrator will put the incremental page data approved by the auditor online to incrementally update the online page. After that, when any user's terminal accesses the page, the incrementally updated page can be displayed.
[0071] The methods provided in the embodiments of the present application can also be applied to various scenarios such as cloud technology or smart transportation. For example, in a cloud technology scenario, cloud storage of the target page's page data can be implemented through a cloud server, and a solution for updating the stored page data can also be implemented. For another example, in a smart transportation scenario, when developing a smart transportation application, a solution for updating the page data of the pages in the smart transportation application can be implemented.
[0072] Figure 2 This is a flow chart of a data updating method provided in an embodiment of the present application, which is executed by a terminal, such as Figure 2 As shown, the method includes:
[0073] 201. The terminal accesses incremental page data of a target page based on a management interface. The incremental page data is used to incrementally update original page data of the target page.
[0074] The management interface has management authority over the target page, which can be any page, such as a web page or an interface within an application. The target page's original page data is used to render the original target page, and the incremental page data is used to render incremental elements within the target page, enabling incremental updates to the original page data. For example, the incremental page data is used to add, delete, or modify elements within the original page data.
[0075] 202. The terminal displays the incremental elements corresponding to the incremental page data in the management interface.
[0076] The incremental element is rendered based on the incremental page data, and the incremental element is any element, for example, an image, text, etc. In the management interface, the incremental element corresponding to the incremental page data can be displayed based on the accessed incremental page data, so that the user can view the incremental element corresponding to the incremental page data.
[0077] 203. In response to the modification operation on the incremental element, the terminal modifies the incremental page data based on the modified incremental element.
[0078] The modification operation on the incremental element refers to a replacement operation, an addition operation, or a deletion operation on the incremental element. When a user triggers a modification operation on the incremental element based on the terminal, the displayed incremental element is modified, and the incremental page data is adaptively modified according to the modified incremental element to ensure that the modified incremental page data matches the modified incremental element.
[0079] The method provided in the embodiment of the present application can be applied to various scenarios such as cloud technology or smart transportation, and provides a way to modify incremental page data. The incremental page data of the page can be accessed based on the management interface, and the incremental elements corresponding to the incremental page data are displayed in the management interface so that the user can intuitively view the incremental elements corresponding to the incremental page data. The management interface also has the function of modifying the incremental elements. Based on the modification operation performed on the incremental elements in the management interface, the incremental page data can be directly modified. There is no need to notify the developer to manually modify the page data of the page after reviewing the incremental page data, which saves communication costs, thereby improving development efficiency and the convenience of data modification.
[0080] exist Figure 2Based on the illustrated embodiment, the management interface is displayed by installing the target plug-in, and the target page is displayed based on the original page data and incremental page data of the target page. When the target page is displayed, the incremental page data is modified. The data modification process is detailed in the following embodiment.
[0081] Figure 3 This is a flow chart of a data updating method provided in an embodiment of the present application, which is executed by a terminal, such as Figure 3 As shown, the method includes:
[0082] 301. In response to an instruction to display a management interface, the terminal detects whether a target plug-in is currently installed.
[0083] The terminal includes, but is not limited to, a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, an in-vehicle terminal, etc. The target plug-in is used to provide a page data update function. For example, the target plug-in provides the ability to upload an image, store the replaced image in a fixed location, and generate the image's storage address. Because the target plug-in can provide a page data update function, upon receiving a display instruction for the management interface, it detects whether the target plug-in is currently installed so that the management interface with the page data update function can be subsequently displayed.
[0084] In one possible implementation, step 301 includes: in response to a confirmation operation on an access address of a management interface, detecting whether the target plug-in is currently installed, wherein the access address is used to access the management interface.
[0085] Optionally, the terminal interacts with the server corresponding to the management interface, and will only detect whether the target plug-in is installed when it receives an instruction sent by the server. That is, the terminal sends an access request to the server in response to the confirmation operation of the access address of the management interface. After receiving the access request, the server sends a detection notification to the terminal, which instructs the terminal to detect whether the target plug-in is currently installed. The terminal receives the detection notification and detects whether the target plug-in is currently installed.
[0086] The terminal interacts with the server corresponding to the management interface to detect whether the target plug-in is currently installed, so as to ensure that the management interface is displayed only when the target plug-in is installed, so as to ensure the normal display of the management interface.
[0087] Optionally, a browsing application is installed on the terminal, and the user can input the access address in the address input field of the browsing application. In response to a confirmation operation on the access address input in the address input field, it is detected whether the browsing application currently has the target plug-in installed.
[0088] The address input field is used to input an access address. In an embodiment of the present application, the browsing application may include a target plug-in or may not include a target plug-in. If the browsing application includes a target plug-in, it indicates that the target plug-in has been installed in the browsing application. If the browsing application does not include a target plug-in, it indicates that the target plug-in has not been installed in the browsing application.
[0089] 302. In response to detecting that the target plug-in is currently installed, the terminal displays a management interface through the target plug-in.
[0090] When it is detected that the target plug-in is currently installed, the management interface is displayed through the target plug-in so that the management interface has the function of displaying and modifying the incremental page data, which facilitates the subsequent display of incremental elements corresponding to the incremental page data based on the management interface.
[0091] In one possible implementation, the terminal displays the management interface by interacting with a server corresponding to the management interface. That is, in response to detecting a currently installed target plug-in, the terminal sends a first detection result to the server, and the first detection result indicates that the currently installed target plug-in is detected. The server receives the first detection result and sends interface data of the management interface to the terminal. The terminal receives the interface data of the management interface and displays the management interface based on the target plug-in and the interface data.
[0092] Since the server is used to provide services for the management interface, the server stores interface data of the management interface. The terminal displays the management interface by interacting with the server to ensure that the terminal can display the management interface normally when the target plug-in is installed.
[0093] It should be noted that the embodiment of the present application is described by taking the detection of an installed target plug-in as an example. In another embodiment, if the installed target plug-in is not detected, a reminder to install the target plug-in is given, and the management interface is displayed after the target plug-in is installed.
[0094] In a possible implementation, after step 301 , the method further includes: in response to not detecting the installed target plug-in, displaying a reminder interface, and in the case where the target plug-in is installed, displaying a management interface through the target plug-in.
[0095] Among them, the reminder interface is used to remind the user to install the target plug-in. Displaying the reminder interface can guide the user to install the target plug-in. Optionally, the reminder interface includes reminder information, which is the guidance information for installing the target plug-in. For example, the display style of the reminder interface is as follows: Figure 4As shown, the steps for installing the target plug-in are displayed in the reminder interface 401. The user can obtain instructions on how to install the target plug-in according to the reminder information displayed in the reminder interface, and complete the installation of the target plug-in according to the instructions of the reminder information. When it is detected that the target plug-in has been installed, the management interface is displayed through the target plug-in.
[0096] Optionally, the terminal displays the reminder interface and the management interface by interacting with the server corresponding to the management interface. That is, in response to not detecting the installed target plug-in, the terminal sends a second detection result to the server, and the second detection result indicates that the installed target plug-in is not detected. The server receives the second detection result, sends interface data of the reminder interface to the terminal, and the terminal receives the interface data of the reminder interface and displays the reminder interface. When it is detected that the target plug-in is currently installed, the terminal sends the first detection result to the server, the server receives the first detection result, sends interface data of the management interface to the terminal, and the terminal receives the interface data of the management interface, and displays the management interface based on the target plug-in and the interface data.
[0097] The terminal interacts with the server corresponding to the management interface multiple times. Only when the terminal has the target plug-in installed can the terminal display the management interface to ensure that the displayed management interface has the function of updating page data.
[0098] It should be noted that the embodiment of the present application detects whether the target plug-in is installed and displays the management interface through the target plug-in only when the target plug-in is installed. In another embodiment, there is no need to execute steps 301-302, and other methods can be used to display the management interface.
[0099] 303. Based on the original data address and incremental data address corresponding to the target page entered in the management interface, the terminal accesses the original page data corresponding to the original data address and the incremental page data corresponding to the incremental data address. The incremental page data is used to incrementally update the original page data of the target page.
[0100] The original data address is used to store the original page data of the target page, for example, the original data address is the access address of the target page. The incremental page data is used to store the incremental page data of the target page, for example, the incremental page data is the SRS JSON (a data storage file) of the target page, and the incremental page data includes the static resource information of the target page, such as the image ID and the storage address of the image in the target page.
[0101] In an embodiment of the present application, an address can be entered in the management interface, and the user can enter the original data address and the incremental data address in the management interface. The terminal can access the corresponding page data based on the address entered by the user in the management interface.
[0102] In one possible implementation, the management interface includes a first input area and a second input area, and step 303 includes:
[0103] Step 1: Based on the original data address input in the first input area, obtain the original page data corresponding to the original data address.
[0104] After obtaining the original data address input in the first input area, the original data address is accessed to obtain the original page data stored in the original data address.
[0105] Step 2: Display at least one incremental data address associated with the original data address in the second input area, each incremental data address is used to store incremental page data of the target page.
[0106] When an original data address is entered in the first input area, the second input area displays the incremental data addresses associated with the original data address. Each incremental data address is used to store the incremental page data of the target page. Different incremental data addresses may store different incremental page data, and different incremental page data are used to perform different incremental updates on the target page. The incremental page data corresponding to each incremental data address is equivalent to a branch of the target page. The incremental page data corresponding to any branch may be used to incrementally update only part of the target page, or may be used to incrementally update the entire target page.
[0107] In one possible implementation, step 2 includes: in response to a trigger operation on the second input area, displaying a drop-down menu of the second input area, where the drop-down menu includes at least one incremental data address associated with the original data address.
[0108] By displaying the incremental data address associated with the original data address in a drop-down menu style, the display samples are enriched and the display effect is guaranteed.
[0109] In one possible implementation, the server corresponding to the management interface stores the association relationship between the original data addresses and incremental data addresses corresponding to multiple pages. The management interface has management authority over the multiple pages. When the original data address is entered in the first input area, the terminal accesses the server corresponding to the management interface based on the management interface. The server obtains at least one incremental data address associated with the original data address based on the stored association relationship, returns the at least one incremental data address, and the terminal displays the at least one incremental data address in the second input area. The terminal accesses the server corresponding to the management interface based on the interface of the management interface.
[0110] In another possible implementation, there is an association relationship between the original data addresses and incremental data addresses corresponding to multiple pages in the version control server. When the original data address is entered in the first input area, the terminal sends an address acquisition request to the version control server based on the management interface. The address acquisition request carries the original data address. The version control server receives the address acquisition request and returns at least one incremental data address associated with the original data address. The terminal receives the at least one incremental data address and displays the at least one incremental data address in the second display area.
[0111] The version control server is used to manage page data of multiple pages, and stores the association between the original data address and the incremental data address corresponding to each page in the version control server. For example, the version control server is Git (distributed version control system).
[0112] Step 3: In response to a selection operation on any incremental data address among at least one incremental data address, obtain incremental page data corresponding to the selected incremental data address.
[0113] When at least one incremental data address is displayed in the second input area, any incremental data address can be selected therefrom, the selected incremental data address can be accessed, and the incremental page data stored under the selected incremental data address can be obtained.
[0114] In one possible implementation, step 3 includes: in response to a selection operation on any one of the at least one incremental data addresses, accessing the selected incremental data address through the target plug-in to obtain the incremental page data corresponding to the selected incremental data address. The target plug-in can pull the incremental page data so as to subsequently implement an incremental update of the target page.
[0115] In one possible implementation, the incremental data address includes multiple levels of directories, the second input area includes multiple sub-input areas, and different sub-input areas are used to input directories of different levels. In response to a trigger operation on the first-level sub-input area, multiple first-level directories associated with the original data address are displayed. In response to a selection operation on any first-level directory, the selected first-level directory is displayed in the first-level sub-input area. In response to a trigger operation on the second-level sub-input area, multiple second-level directories under the selected first-level directory are displayed. In response to a selection operation on any second-level directory, the selected second-level directory is displayed in the second-level sub-input area. The above steps are followed until the selected last-level directory is displayed in the last-level sub-input area. The selected multi-level directories constitute an incremental data address, and the incremental page data stored under the incremental data address is accessed.
[0116] It should be noted that the embodiment of the present application accesses the original page data and incremental page data based on the original data address and the incremental data address. In another embodiment, there is no need to execute step 303, and other methods can be adopted to access the original page data and incremental page data of the target page based on the management interface.
[0117] 304. The terminal displays the target page in the management interface based on the original page data.
[0118] After acquiring the original page data, the terminal renders a target page based on the original page data and presents the target page in the management interface.
[0119] 305. The terminal incrementally updates the target page displayed in the management interface based on the incremental page data.
[0120] The target page after the incremental update includes at least the incremental elements corresponding to the incremental page data. When the target page is already displayed in the management interface, the displayed target page data is incrementally updated based on the incremental page data, and the target page after the incremental update is displayed in the management interface. The target page after the incremental update includes the incremental elements corresponding to the incremental page data. In this way, before the incremental page data is put online, the target page after the incremental page data is put online can be pre-displayed in the management interface, achieving the effect of pre-displaying the target page.
[0121] In one possible implementation, the incremental page data includes deleted, added, and modified data from the original page data. Based on the incremental page data, the target page displayed in the management interface is incrementally updated so that the display style of the incrementally updated target page matches the incremental page data. For example, if the incremental page data includes elements that need to be deleted, the incrementally updated target page no longer displays the deleted elements; if the incremental page data includes newly added elements, the newly added elements are displayed in the incrementally updated target page; if the incremental page data includes modified elements, the modified elements are displayed in the incrementally updated target page.
[0122] In one possible implementation, step 305 includes incrementally updating the target page displayed in the management interface based on the incremental page data through the target plug-in. The incremental update of the target page is implemented through the target plug-in to ensure the accuracy of the target page after the incremental update.
[0123] In one possible implementation, the target page is incrementally updated based on the first element identifier associated with both the original page data and the incremental page data. That is, step 305 includes:
[0124] Step 1: Determine the first element identifier associated with both the original page data and the incremental page data.
[0125] In an embodiment of the present application, the incremental page data includes an element identifier and a corresponding incremental element storage address, and the incremental element storage address is used to store the incremental element corresponding to the element identifier. Optionally, the incremental page data includes an element identifier, description information and an incremental element storage address corresponding to the element identifier, and the description information is used to describe the corresponding incremental element. The original page data is used to render the original target page, and the elements displayed in the original target page have associated data in the original page data, and the elements displayed in the original target page have element identifiers. Based on the original page data and the incremental page data, it is possible to determine the first element identifier associated with both the original page data and the incremental page data, that is, the first element identifier is associated with data in the original page data, and the incremental page data includes the first element identifier.
[0126] In one possible implementation, the element storage address contained in the original page data includes an element identifier, and the first element identifier is determined by first extracting and then comparing. That is, step 1 includes: extracting the element identifier from the element storage address contained in the original page data, comparing the extracted element identifier with the element identifier contained in the incremental page data, and determining the first element identifier associated with both the original page data and the incremental page data.
[0127] In an embodiment of the present application, the original page data includes at least one element storage address, which is used to store an element and includes an element identifier for the corresponding element. Each element displayed in the target page rendered based on the original page data is obtained based on the element storage address. The element identifier is extracted from each element storage address to obtain the element identifier of each element displayed in the target page. The extracted element identifiers are then compared one-to-one with the element identifiers included in the incremental page data to determine the first element identifier that is identical between the incremental page data and the original page data.
[0128] Since the element storage address contains the element identifier of the corresponding element, the first element identifier is determined by first extracting and then comparing to ensure the accuracy of the determined first element identifier, thereby ensuring the accuracy of subsequent incremental updates to the target page.
[0129] Optionally, the element storage address further includes an indicator, and the process of extracting the element identifier from the element storage address includes: for any element storage address, determining the position of the indicator in the element storage address, and obtaining the element identifier following the indicator in the element storage address.
[0130] Among them, the indicator is used to identify the prefix of the element identifier in the element storage address. Based on the indicator, the element identifier contained in the element storage address can be identified. The indicator is also a file identification prefix. The target plug-in can identify the elements or data that the management interface can manage based on the indicator.
[0131] Optionally, the element storage address includes an indicator identifier, a second element identifier, and a third element identifier, wherein the second element identifier is a randomly generated identifier when generating the element storage address to avoid duplication of the element storage address, and the third element identifier is the element identifier corresponding to the element storage address. When extracting the element identifier from the element storage address, the position of the indicator identifier in the element storage address is determined, and the third element identifier following the indicator identifier is extracted from the element storage address.
[0132] For example, there is a separator between the indicator and the second element identifier, and there is a separator between the second element identifier and the third element identifier. When extracting the element identifier from the element storage address, determine the position of the indicator in the element storage address, and extract the third element identifier after the second separator after the indicator in the element storage address, which is the element identifier corresponding to the element storage address. For example, in the element storage address, the indicator, separator, second element identifier, separator and third element identifier are identified in the following form "srs_{md5_A}_{md5_B}", where "srs" is the indicator, "_" is the separator, "md5_A" is the second element identifier, and "md5_B" is the third element identifier. If any element storage address is
[0133] “https: / / wwcdn.***.com / images / srsimg_3652as154_36a64as154.png”, where “srs” is the indicator logo, “3652as154” is the second element logo, and “36a64as154” is the third element logo.
[0134] Step 2: Based on the incremental page data, determine the first incremental element storage address corresponding to the first element identifier.
[0135] Since the incremental page data includes an element identifier and a corresponding incremental element storage address, after determining the first element identifier, the first incremental element storage address corresponding to the first element identifier in the incremental page data can be determined.
[0136] Step 3: Update the first element corresponding to the first element identifier in the target page to the first incremental element stored at the first incremental element storage address.
[0137] In the target page displayed in the management interface, the first element corresponding to the first element identifier in the target page is updated to the first incremental element stored at the first incremental element storage address, that is, the first element is no longer displayed in the updated target page, and is replaced by the first incremental element.
[0138] The embodiment of the present application is only illustrated using a first element identifier as an example. In the case where both the original page data and the incremental page data are associated with multiple first element identifiers, the first element corresponding to each first element identifier is updated in accordance with the above method, so that the updated incremental element is displayed in the updated target page, thereby realizing an incremental update of the target page.
[0139] like Figure 5 As shown, through the target plug-in 501, the interface provided by the server 502 corresponding to the management interface is accessed, and the incremental page data is pulled based on the interface. The incremental page data includes a first element identifier and a corresponding first incremental element storage address. After determining the first element identifier associated with both the original page data and the incremental page data, the first element corresponding to the first element identifier in the target page 503 is replaced by the first incremental element stored at the first incremental element storage address through the target plug-in 501.
[0140] It should be noted that the embodiment of the present application first displays the target page based on the original page data, and then incrementally updates the displayed target page based on the incremental page data. In another embodiment, there is no need to execute steps 304-305, and other methods can be adopted to display the incrementally updated target page in the management interface based on the original page data and the incremental page data.
[0141] It should be noted that the embodiment of the present application displays the target page by accessing the original page data and incremental page data of the target page. In another embodiment, there is no need to execute steps 303-305, and other methods can be adopted to access the incremental page data of the target page based on the management interface, and display the incremental elements corresponding to the incremental page data in the management interface.
[0142] 306. The terminal displays candidate elements in response to the replacement operation on the incremental element.
[0143] In an embodiment of the present application, in the target page displayed after the incremental update, the incremental elements can be modified, while other elements cannot be modified. Candidate elements are locally stored elements or elements stored on the network. The incremental element and the candidate element are of the same type. For example, if the incremental element is an image, the candidate element is also an image. In response to the replacement operation on the incremental element, the candidate elements are displayed so that a candidate element can be selected from them to replace the incremental element.
[0144] In one possible implementation, step 306 includes: in response to a triggering operation on an incremental element in a displayed target page, displaying a pop-up window, wherein the pop-up window displays the candidate element.
[0145] In one possible implementation, the management interface includes a first display area and a second display area, the first display area is used to display the target page, and the second display area is used to display the incremental elements. Step 306 includes: displaying candidate elements in response to a replacement operation on the incremental elements in the target page displayed in the first display area; or, displaying candidate elements in response to a replacement operation on the incremental elements displayed in the second display area.
[0146] In an embodiment of the present application, the target page is displayed in the first display area in the management interface based on the original page data and the incremental page data, and the incremental elements of the displayed target page are displayed in the second display area. The modification operation of the incremental element can be triggered by the target page displayed in the first display area or the incremental elements displayed in the second display area, that is, the diversity of the modification operation can be triggered in multiple ways, thereby ensuring the convenience of triggering the modification operation.
[0147] Optionally, at least one incremental element and a modification option corresponding to each incremental element are displayed in the second display area, and candidate elements are displayed in response to a triggering operation on the modification option corresponding to any incremental element, wherein the modification option corresponding to each incremental element is used to trigger a modification operation on the incremental element.
[0148] Optionally, when the target page after the incremental update is displayed in the management interface, in response to selecting any incremental element, prompt information of the incremental element is displayed in the target page to prompt that the incremental element can be modified.
[0149] For example, after the target page after the incremental update is displayed in the management interface, move the mouse. If the mouse focus is on any incremental element, it means that the incremental element is selected and the word "Editable" is displayed on the incremental element. If the mouse focus is on any other element, the target page remains unchanged.
[0150] 307. In response to the selection operation on the second element among the candidate elements, the terminal replaces the incremental element displayed in the management interface with the second element.
[0151] In response to the selection operation of the second element among the candidate elements, the incremental element displayed in the management interface is replaced with the second element. The second element is the modified incremental element. The second element is displayed in the target page after replacement, and the incremental element is no longer displayed, thereby realizing the modification of the incremental element in the displayed target page.
[0152] In one possible implementation, the method further includes: in response to a selection operation on a second element among the candidate elements, generating a second incremental element storage address, storing the second element at the second incremental element storage address, and replacing the incremental element displayed in the management interface with the second element based on the second element stored at the second incremental element storage address.
[0153] The second incremental element storage address is an address in a target storage area. For example, the target storage area is a CDN (Content Delivery Network), which is used to store static resources of a page.
[0154] Optionally, the process of replacing the incremental element with the second element includes: in response to a selection operation on the second element among the candidate elements, generating a second incremental element storage address through the target plug-in, storing the second element under the second incremental element storage address, and replacing the incremental element displayed in the management interface with the second element.
[0155] In an embodiment of the present application, the server corresponding to the management interface provides the target plug-in with element uploading capability through an interface. In the process of uploading the second element, the target plug-in can generate a second incremental element storage address and store the second element under the second incremental element storage address.
[0156] Optionally, the second incremental element storage address includes the element identifier of the incremental element. In an embodiment of the present application, when modifying the incremental element in the target page, the element identifier of the incremental element before modification and the element identifier of the incremental element after modification remain unchanged, so that the incremental page data can be modified accordingly later.
[0157] For example, the second incremental element storage address includes an indication identifier, a second element identifier, and a third element identifier. The second element identifier is a randomly generated identifier for generating the second incremental element storage address, and the third element identifier is the element identifier of the incremental element.
[0158] 308. The terminal modifies the incremental page data based on the replaced second element.
[0159] Based on the replaced second element, the incremental page data is modified to make the modified incremental page data consistent with the modified target page, so that the second element is displayed in the target page that is subsequently incrementally updated based on the incremental page data.
[0160] In one possible implementation, when the second element is stored at the second incremental element storage address, step 308 includes: based on the element identifier corresponding to the incremental element, updating the incremental element storage address corresponding to the element identifier in the incremental page data to the second incremental element storage address.
[0161] In an embodiment of the present application, the incremental page data includes an element identifier and a corresponding incremental element storage address. The incremental element storage address is used to store the incremental element corresponding to the element identifier. When updating the incremental page data, the incremental element storage address corresponding to the element identifier in the incremental page data is updated to a second incremental element storage address, so that when the target page is subsequently updated based on the incremental page data, the second element can be displayed in the displayed target page based on the incremental page data.
[0162] Optionally, the terminal modifies the incremental page data by interacting with the server corresponding to the management interface, that is, the terminal sends a data modification request to the server, which carries the element identifier corresponding to the incremental element and the second incremental element storage address. The server receives the data modification request and, based on the element identifier, updates the incremental element storage address corresponding to the element identifier in the incremental page data to the second incremental element storage address.
[0163] like Figure 6 As shown, when the terminal performs a modification operation on the incremental element, it obtains the element identifier in the incremental element storage address corresponding to the incremental element through the target plug-in 601. When uploading the second element, the target plug-in 601 can generate a second incremental element storage address. The second incremental element storage address includes the element identifier, and the second element is stored under the second incremental element storage address. The incremental element displayed in the management interface is replaced with the second element. The terminal sends a data modification request to the server 602 corresponding to the management interface. The data modification request carries the element identifier and the second incremental element storage address. The server 602 receives the data modification request, reads the element storage address corresponding to the element identifier in the incremental page data, replaces the element storage address corresponding to the element identifier in the incremental page data with the second incremental element storage address, and saves the modified incremental page data. That is, in the modified incremental page data, the element identifier corresponds to the second incremental element storage address.
[0164] In one possible implementation, step 308 includes: in response to a confirmation operation on the modified target page, modifying the incremental page data based on the replaced second element.
[0165] After modifying the incremental element in the target page, the modified incremental element is displayed in the target page. Only when a confirmation operation on the modified target page is detected, it indicates that the corresponding incremental page data needs to be modified according to the current modified target page. Therefore, the incremental page data is modified based on the replaced second element to ensure that the modified incremental page data matches the modified target page.
[0166] It should be noted that this application only uses the modification of a single incremental element as an example. In another embodiment, multiple incremental elements can be modified according to steps 306-307. Then, in response to a confirmation operation on the modified target page, the incremental page data is modified based on the replaced second elements. In other words, in this way, batch modification of multiple incremental elements corresponding to the incremental page data can be implemented, thereby improving development efficiency.
[0167] It should be noted that the embodiment of the present application replaces the incremental element based on the selected element, and then updates the incremental page data based on the replaced element. In another embodiment, there is no need to execute steps 306-308, and other methods can be adopted to modify the incremental page data based on the modified incremental element in response to the modification operation on the incremental element.
[0168] In one possible implementation, after step 305, the method further includes: in response to an element adding operation in the management interface, displaying the added target element in the management interface, generating a target element identifier of the target element, storing the target element at a third incremental element storage address, and storing the target element identifier and the third incremental element storage address correspondingly in the incremental page data.
[0169] By displaying the added target element in the management interface based on the management interface, and storing the element identifier of the target element and the third incremental element storage address in the incremental page data, the process of updating the incremental page data is realized.
[0170] Optionally, the management interface includes an add option, and in response to a trigger operation on the add option, candidate elements are displayed in the management interface, and in response to a selection operation on a target element among the candidate elements, an element identifier of the target element is generated, the target element and the target element identifier are displayed in the management interface, the target element is stored in a third incremental element storage address, and the incremental page data is updated to achieve an update of the incremental page data.
[0171] An embodiment of the present application provides a static resource management system, wherein the management interface is an interface provided by the static resource management system, and the target plug-in is a plug-in provided by the static resource management system. Based on the static resource management system, the incremental page data of the page can be managed.
[0172] Among them, the incremental page data includes the static resources of the page, such as pictures, texts, etc. in the page. For example, the static resource management system is SRS. In an embodiment of the present application, in the process of developing any page, multiple branches may be developed for the page at the same time, and different branches correspond to an incremental page data. The incremental page data corresponding to each branch is equivalent to a version of the page, and the incremental page data of multiple versions of the page are managed by Git. The static resource management system can connect the resource relationship between the page and Git in series. Based on the static resource management system, the page can be rendered and the incremental page data in Git can be modified. For example, the static resource management system can manage the incremental page data corresponding to different pages by being connected to Git.
[0173] The method provided in the embodiment of the present application can be applied to various scenarios such as cloud technology or smart transportation, and provides a way to modify incremental page data. The incremental page data of the page can be accessed based on the management interface, and the incremental elements corresponding to the incremental page data are displayed in the management interface so that the user can intuitively view the incremental elements corresponding to the incremental page data. The management interface also has the function of modifying the incremental elements. Based on the modification operation performed on the incremental elements in the management interface, the incremental page data can be directly modified. There is no need to notify the developer to manually modify the page data of the page after reviewing the incremental page data, which saves communication costs, thereby improving development efficiency and the convenience of data modification.
[0174] In addition, an embodiment of the present application provides a static resource management system, through which incremental page data can be quickly updated, reducing the complex process of multi-role review required in the traditional development process, reducing communication costs, and ensuring development efficiency and development security.
[0175] In addition, the management interface can be used to modify large quantities of elements and modify incremental page data accordingly, eliminating the need for manual modification of page data, thereby improving development efficiency.
[0176] Based on the above Figure 3 The embodiment shown provides a schematic diagram of a management interface, which includes a first display area and a second display area. Figure 7 As shown, the target page is displayed in the first display area 701, and the incremental elements and corresponding modification options and the submit save option are displayed in the second display area 702. The corresponding incremental elements can be modified through the modification option. After modifying the incremental elements, click the save option to display Figure 7The interface shown in the middle right figure only displays the modified incremental elements in the second display area 702 to enhance the reminder effect. The second display area 702 also displays an undo option and a confirm option for the incremental elements. In response to clicking the undo option, the image 1 is restored to the image before the modification. In response to clicking the confirm option, the incremental page data is modified based on the modified incremental elements.
[0177] Based on the above Figure 3 In the embodiment shown, the present application provides a process for pre-displaying a target page based on a static resource management system, such as Figure 8 As shown, the process includes:
[0178] 801. The developer's terminal is based on the management interface provided by the static resource management system, and can add or modify the incremental page data of the target page, that is, through the static resource management system, upload the original image, store the original image in the CDN, and modify the incremental page data based on the storage address of the original image in the CDN.
[0179] 802. The product personnel's terminal uploads a replacement image through the target plug-in using the management interface provided by the static resource management system. The target plug-in then modifies the target page so that the replacement image is displayed on the modified target page. When the replacement image is uploaded through the target plug-in, the replacement image is stored in the CDN, the storage address of the replacement image in the CDN is obtained, and the storage address is sent to the server corresponding to the management interface. The server then modifies the incremental page data based on the storage address.
[0180] Based on the above Figure 3 In the embodiment shown, this application provides a process for updating a page online, such as Figure 9 As shown, the process includes:
[0181] 901. The product personnel searches for the target page based on the management interface in the terminal, and pre-displays the target page in the management interface based on the original page data and incremental page data of the target page.
[0182] 902. If the incremental elements in the target page need to be modified, the designer shall design new incremental elements, and the product personnel shall modify the incremental elements of the displayed target page based on the management interface in the terminal and use the new incremental elements, and modify the incremental page data based on the modified incremental elements. The modified incremental page data is the incremental page data approved by the product personnel.
[0183] 903. After the review is passed, the tester will test the modified incremental page data in the test environment. After the test is passed, the incremental page data will be put online to achieve the update of the target page.
[0184] In the process of online page update provided by this application, after the developer completes the development of the incremental page data, the product personnel can use the static resource management system to directly update the incremental page data during the review of the incremental page data, without the need for the developer to manually modify the page data, thereby improving development efficiency.
[0185] exist Figure 2 On the basis of the illustrated embodiment, incremental page data is accessed based on the incremental data address, and the incremental page data is modified based on the management interface. The data modification process is detailed in the following embodiment.
[0186] Figure 10 This is a flow chart of a data updating method provided in an embodiment of the present application, which is executed by a terminal, such as Figure 10 As shown, the method includes:
[0187] 1001. The terminal performs incremental update on original page data of a target page based on the incremental data address and the incremental page data corresponding to the incremental data address input in the management interface.
[0188] This step is similar to the above step 303 and will not be described again here.
[0189] 1002. The terminal displays the incremental elements corresponding to the incremental page data in the management interface.
[0190] In one possible implementation, the incremental page data includes an element identifier and a corresponding incremental element storage address, then step 1002 includes: the terminal accesses the incremental element stored in the incremental element storage address based on the management interface, and displays the incremental element and corresponding element identifier corresponding to the incremental page data in the management interface.
[0191] This step is similar to the above step 202 and will not be described again here.
[0192] 1003. The terminal displays candidate elements in response to the replacement operation on the incremental element.
[0193] 1004. In response to a selection operation on a second element among the candidate elements, the terminal replaces the incremental element displayed in the management interface with the second element.
[0194] 1005. The terminal modifies the incremental page data based on the replaced second element.
[0195] Steps 1003-1005 are similar to the above steps 306-308 and will not be repeated here.
[0196] In one possible implementation, after step 1002, the method further includes: in response to an element addition operation in the management interface, displaying the added target element in the management interface, generating a target element identifier of the target element, storing the target element at a third incremental element storage address, and storing the target element identifier and the third incremental element storage address correspondingly in the incremental page data.
[0197] Optionally, the management interface includes an add option, and in response to a trigger operation on the add option, candidate elements are displayed in the management interface, and in response to a selection operation on a target element among the candidate elements, an element identifier of the target element is generated, the target element and the target element identifier are displayed in the management interface, the target element is stored in a third incremental element storage address, and the incremental page data is updated to achieve an update of the incremental page data.
[0198] Based on the above Figure 3 The embodiment shown provides a schematic diagram of a management interface, such as Figure 11 As shown, the management interface includes an input area 1101 for the incremental data address. The input area includes multiple sub-input areas. The first sub-input area is used to input the first-level directory corresponding to the target page, and the second sub-input area is used to input the second-level directory. Figure 11 The "Directory 1" and "Directory 2" in the input constitute the incremental data address based on the input first-level directory and second-level directory. In an embodiment of the present application, each page corresponds to different incremental page data, and different incremental page data are stored in different directories. Based on the incremental data address entered in the input area, the incremental page data corresponding to the incremental data address is accessed, and the incremental elements corresponding to the incremental page data are displayed in the management interface. Afterwards, based on the incremental elements displayed in the management interface, the incremental elements can be modified based on the management interface, such as Figure 12 As shown, the element identifier of the modified incremental element remains unchanged, or, based on the management interface, a new incremental element can be added, and a different indicator identifier 1201 is displayed in the management interface to indicate that the corresponding incremental element is modified or added.
[0199] It should be noted that the above Figure 3 The management interface in the embodiment shown is similar to Figure 10 The management interface in the embodiment shown may be different. Figure 3 The management interface in the illustrated embodiment is a management interface provided for product personnel, and the product personnel's terminal can display pages in the management interface based on the management interface. Figure 10 The management interface in the illustrated embodiment is a management interface provided for developers, through which developers can quickly update incremental page data.
[0200] The method provided in the embodiment of the present application provides a way to modify incremental page data. Based on the management interface, the incremental page data of the page can be accessed, and the incremental elements corresponding to the incremental page data are displayed in the management interface so that the user can intuitively view the incremental elements corresponding to the incremental page data. The management interface also has the function of modifying the incremental elements. Based on the modification operation performed on the incremental elements in the management interface, the incremental page data can be directly modified. There is no need to notify the developer to manually modify the page data of the page after reviewing the incremental page data, which saves communication costs, thereby improving development efficiency and the convenience of data modification.
[0201] Figure 13 This is a structural diagram of a data updating device provided in an embodiment of the present application. Figure 13 As shown, the device includes:
[0202] An access module 1301 is configured to access incremental page data of a target page based on a management interface, where the incremental page data is used to incrementally update the original page data of the target page.
[0203] Display module 1302, used to display the incremental elements corresponding to the incremental page data in the management interface;
[0204] The modification module 1303 is configured to modify the incremental page data based on the modified incremental element in response to the modification operation on the incremental element.
[0205] In one possible implementation, the access module 1301 is configured to access the original page data and the incremental page data based on the management interface;
[0206] The display module 1302 is configured to display the incrementally updated target page in the management interface based on the original page data and the incremental page data, where the target page at least includes incremental elements.
[0207] In another possible implementation, Figure 14 As shown, the display module 1302 includes:
[0208] The first display unit 1321 is configured to display the target page in the management interface based on the original page data;
[0209] The updating unit 1322 is configured to incrementally update the target page displayed in the management interface based on the incremental page data.
[0210] In another possible implementation, the incremental page data includes an element identifier and a corresponding incremental element storage address, and the incremental element storage address is used to store the incremental element corresponding to the element identifier; the update unit 1322 is used to determine the first element identifier associated with both the original page data and the incremental page data; based on the incremental page data, determine the first incremental element storage address corresponding to the first element identifier; and update the first element corresponding to the first element identifier in the target page to the first incremental element stored at the first incremental element storage address.
[0211] In another possible implementation, the original page data includes at least one element storage address, which is used to store elements, and the element storage address contains the element identifier of the corresponding element; the update unit 1322 is used to extract the element identifier from the element storage address contained in the original page data; and compare the extracted element identifier with the element identifier contained in the incremental page data to determine the first element identifier associated with both the original page data and the incremental page data.
[0212] In another possible implementation, the access module 1301 is configured to access the original page data corresponding to the original data address and the incremental page data corresponding to the incremental data address based on the original data address and the incremental data address input in the management interface.
[0213] In another possible implementation, the management interface includes a first input area and a second input area; Figure 14 As shown, the access module 1301 includes:
[0214] An acquiring unit 1311 is configured to acquire original page data corresponding to an original data address input in the first input area.
[0215] A second display unit 1312 is configured to display at least one incremental data address associated with the original data address in the second input area, each incremental data address being used to store incremental page data of a target page;
[0216] The acquiring unit 1311 is further configured to, in response to a selection operation on any one of the at least one incremental data address, acquire incremental page data corresponding to the selected incremental data address.
[0217] In another possible implementation, the modification module 1303 is used to display candidate elements in response to a replacement operation on the incremental element; replace the incremental element displayed in the management interface with the second element in response to a selection operation on a second element among the candidate elements; and modify the incremental page data based on the replaced second element.
[0218] In another possible implementation, Figure 14 As shown, the device also includes:
[0219] The storage module 1304 is configured to store the second element at the second incremental element storage address;
[0220] The modification module 1303 is configured to update the incremental element storage address corresponding to the element identifier in the incremental page data to a second incremental element storage address based on the element identifier corresponding to the incremental element.
[0221] In another possible implementation, the apparatus further includes:
[0222] The display module 1302 is further configured to display the added target element in the management interface in response to an element adding operation in the management interface;
[0223] The storage module 1304 is configured to generate a target element identifier of a target element and store the target element at a third incremental element storage address;
[0224] The storage module 1304 is configured to store the target element identifier and the third incremental element storage address in the incremental page data in correspondence.
[0225] In another possible implementation, the apparatus further includes:
[0226] A detection module 1305 is configured to detect whether a target plug-in is currently installed in response to a display instruction for the management interface, where the target plug-in is configured to provide a page data update function;
[0227] The display module 1302 is further configured to display a management interface through the target plug-in in response to detecting that the target plug-in is currently installed.
[0228] In another possible implementation, the display module 1302 is further configured to display a reminder interface in response to failure to detect the installed target plug-in, where the reminder interface is configured to remind the user to install the target plug-in.
[0229] The display module 1302 is further configured to display a management interface through the target plug-in when the target plug-in is installed.
[0230] It should be noted that the data update device provided in the above embodiment is merely an example of the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the data update device provided in the above embodiment and the data update method embodiment are based on the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0231] An embodiment of the present application further provides a computer device, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the data update method of the above embodiment.
[0232] Optionally, the computer device is provided as a terminal. Figure 15 The following is a block diagram of a terminal 1500 according to an exemplary embodiment of the present application. Terminal 1500 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Terminal 1500 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.
[0233] The terminal 1500 includes a processor 1501 and a memory 1502 .
[0234] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0235] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one computer program, which is executed by processor 1501 to implement the data update method provided in the method embodiment of the present application.
[0236] In some embodiments, terminal 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1509.
[0237] The peripheral device interface 1503 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0238] RF circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1504 may optionally include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1504 may communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1504 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.
[0239] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch screen display, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input as a control signal to the processor 1501 for processing. In this case, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1505, which is set on the front panel of the terminal 1500; in other embodiments, there can be at least two display screens 1505, which are respectively set on different surfaces of the terminal 1500 or in a folding design; in other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1500. Even more, the display screen 1505 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0240] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0241] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1501 for processing, or input into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1500. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0242] Power supply 1509 is used to power various components in terminal 1500. Power supply 1509 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1509 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.
[0243] In some embodiments, the terminal 1500 further includes one or more sensors 1510 , including but not limited to: an acceleration sensor 1511 , a gyroscope sensor 1512 , a pressure sensor 1513 , an optical sensor 1515 , and a proximity sensor 1516 .
[0244] The accelerometer 1511 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1500. For example, the accelerometer 1511 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1501 can control the display screen 1505 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1511. The accelerometer 1511 can also be used to collect game or user motion data.
[0245] The gyroscope sensor 1512 can detect the orientation and rotation angle of the terminal 1500. It can work in conjunction with the accelerometer 1511 to collect the user's 3D movements on the terminal 1500. Based on the data collected by the gyroscope sensor 1512, the processor 1501 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0246] The pressure sensor 1513 can be set on the side frame of the terminal 1500 and / or the lower layer of the display screen 1505. When the pressure sensor 1513 is set on the side frame of the terminal 1500, it can detect the user's grip signal of the terminal 1500, and the processor 1501 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 1513. When the pressure sensor 1513 is set on the lower layer of the display screen 1505, the processor 1501 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1505. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0247] Optical sensor 1515 is used to detect ambient light intensity. In one embodiment, processor 1501 can control the display brightness of display screen 1505 based on the ambient light intensity detected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of display screen 1505 is increased; when the ambient light intensity is low, the display brightness of display screen 1505 is decreased. In another embodiment, processor 1501 can also dynamically adjust the shooting parameters of camera assembly 1506 based on the ambient light intensity detected by optical sensor 1515.
[0248] Proximity sensor 1516, also known as a distance sensor, is provided on the front panel of terminal 1500. Proximity sensor 1516 is used to detect the distance between the user and the front of terminal 1500. In one embodiment, when proximity sensor 1516 detects that the distance between the user and the front of terminal 1500 is gradually decreasing, processor 1501 controls display screen 1505 to switch from the screen-on state to the screen-off state. When proximity sensor 1516 detects that the distance between the user and the front of terminal 1500 is gradually increasing, processor 1501 controls display screen 1505 to switch from the screen-off state to the screen-on state.
[0249] Those skilled in the art will understand that Figure 15 The structure shown in the figure does not constitute a limitation on the terminal 1500, and the terminal 1500 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0250] Optionally, the computer device is provided as a server. Figure 16 1 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1600 may vary significantly due to different configurations or performances, and may include one or more processors (Central Processing Units, CPUs) 1601 and one or more memories 1602. The memories 1602 store at least one computer program, which is loaded and executed by the processor 1601 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be described in detail here.
[0251] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed in the data updating method of the above embodiment.
[0252] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the operations performed in the data updating method of the above embodiment.
[0253] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0254] The above description is merely an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included in the scope of protection of the present application.
Claims
1. A data updating method, characterized in that: The method comprises: Based on the management interface, access the original page data and incremental page data of the target page, wherein the original page data is used to render the original target page, and the incremental page data is used to render the incremental elements in the target page, thereby implementing an incremental update of the original page data of the target page, wherein the incremental page data includes deleted data, added data, and modified data in the original page data; Based on the original page data, displaying the target page in the management interface; In a case where the target page is already displayed in the management interface, incrementally updating the target page displayed in the management interface based on the incremental page data, and displaying the incrementally updated target page, wherein the incrementally updated target page includes at least incremental elements corresponding to the incremental page data; In response to a modification operation on the incremental element, the incremental page data is modified based on the modified incremental element.
2. The method according to claim 1, characterized in that The incremental page data includes an element identifier and a corresponding incremental element storage address, and the incremental element storage address is used to store the incremental element corresponding to the element identifier; The incrementally updating the target page displayed in the management interface based on the incremental page data includes: Determine a first element identifier associated with both the original page data and the incremental page data; Determining, based on the incremental page data, a first incremental element storage address corresponding to the first element identifier; The first element corresponding to the first element identifier in the target page is updated to the first incremental element stored at the first incremental element storage address.
3. The method according to claim 2, characterized in that The original page data includes at least one element storage address, the element storage address is used to store an element, and the element storage address includes an element identifier of a corresponding element; and determining a first element identifier associated with both the original page data and the incremental page data includes: Extracting an element identifier from an element storage address included in the original page data; The extracted element identifier is compared with the element identifier included in the incremental page data to determine the first element identifier associated with both the original page data and the incremental page data.
4. The method according to claim 1, wherein The accessing of the original page data and incremental page data of the target page based on the management interface includes: Based on the original data address and the incremental data address input in the management interface, the original page data corresponding to the original data address and the incremental page data corresponding to the incremental data address are accessed.
5. The method according to claim 4, characterized in that The management interface includes a first input area and a second input area; and accessing the original page data corresponding to the original data address and the incremental data address corresponding to the incremental data address based on the original data address and the incremental data address input in the management interface includes: Based on the original data address input in the first input area, acquiring the original page data corresponding to the original data address; Displaying at least one incremental data address associated with the original data address in the second input area, each of the incremental data addresses being used to store incremental page data of the target page; In response to a selection operation on any one of the at least one incremental data address, the incremental page data corresponding to the selected incremental data address is acquired.
6. The method according to any one of claims 1 to 5, characterized in that The step of modifying the incremental page data based on the modified incremental element in response to the modification operation on the incremental element includes: In response to the replacement operation on the incremental element, displaying candidate elements; In response to a selection operation on a second element among the candidate elements, replacing the incremental element displayed in the management interface with the second element; Based on the replaced second element, the incremental page data is modified.
7. The method according to claim 6, characterized in that The method further comprises: storing the second element at the second increment element storage address; The modifying the incremental page data based on the replaced second element includes: Based on the element identifier corresponding to the incremental element, the incremental element storage address corresponding to the element identifier in the incremental page data is updated to the second incremental element storage address.
8. The method according to any one of claims 1 to 5, characterized in that After displaying the incrementally updated target page, the method further includes: In response to an element adding operation in the management interface, displaying the added target element in the management interface; Generate a target element identifier of the target element, and store the target element at a third incremental element storage address; The target element identifier and the third incremental element storage address are correspondingly stored in the incremental page data.
9. The method according to any one of claims 1 to 5, characterized in that Before accessing the incremental page data of the target page based on the management interface, the method further includes: In response to a display instruction for the management interface, detecting whether a target plug-in is currently installed, the target plug-in being used to provide a page data update function; In response to detecting that the target plug-in is currently installed, the management interface is displayed through the target plug-in.
10. The method according to claim 9, characterized in that After detecting whether the target plug-in is currently installed in response to the instruction to display the management interface, the method further includes: In response to not detecting the target plug-in to be installed, displaying a reminder interface, the reminder interface being used to remind the user to install the target plug-in; When the target plug-in is installed, the management interface is displayed through the target plug-in.
11. A data updating device, characterized in that: The device comprises: An access module, configured to access the original page data and incremental page data of a target page based on a management interface, wherein the original page data is used to render the original target page, and the incremental page data is used to render incremental elements in the target page, thereby implementing incremental updates to the original page data of the target page, wherein the incremental page data includes deleted data, added data, and modified data in the original page data; The display module includes a first display unit and an update unit; The first display unit is configured to display the target page in the management interface based on the original page data; The updating unit is configured to, when the target page is already displayed in the management interface, incrementally update the target page displayed in the management interface based on the incremental page data, and display the incrementally updated target page, wherein the incrementally updated target page includes at least incremental elements corresponding to the incremental page data; The modification module is used to modify the incremental page data based on the modified incremental element in response to the modification operation on the incremental element.
12. The device according to claim 11, characterized in that The incremental page data includes an element identifier and a corresponding incremental element storage address, where the incremental element storage address is used to store the incremental element corresponding to the element identifier; the updating unit is used to: Determine a first element identifier associated with both the original page data and the incremental page data; Determining, based on the incremental page data, a first incremental element storage address corresponding to the first element identifier; The first element corresponding to the first element identifier in the target page is updated to the first incremental element stored at the first incremental element storage address.
13. The device according to claim 12, characterized in that The original page data includes at least one element storage address, where the element storage address is used to store an element and includes an element identifier of the corresponding element; and the updating unit is configured to: Extracting an element identifier from an element storage address included in the original page data; The extracted element identifier is compared with the element identifier included in the incremental page data to determine the first element identifier associated with both the original page data and the incremental page data.
14. The device according to claim 11, characterized in that The access module is used to: Based on the original data address and the incremental data address input in the management interface, the original page data corresponding to the original data address and the incremental page data corresponding to the incremental data address are accessed.
15. The device according to claim 14, characterized in that The management interface includes a first input area and a second input area; the access module includes: an acquiring unit, configured to acquire, based on the original data address input in the first input area, the original page data corresponding to the original data address; a second display unit, configured to display at least one incremental data address associated with the original data address in the second input area, each of the incremental data addresses being used to store incremental page data of the target page; The acquisition unit is further configured to, in response to a selection operation on any one of the at least one incremental data address, acquire the incremental page data corresponding to the selected incremental data address.
16. The device according to any one of claims 11 to 15, characterized in that The modification module is used to: In response to the replacement operation on the incremental element, displaying candidate elements; In response to a selection operation on a second element among the candidate elements, replacing the incremental element displayed in the management interface with the second element; Based on the replaced second element, the incremental page data is modified.
17. The device according to claim 16, characterized in that The device further comprises: A storage module, configured to store the second element at a second incremental element storage address; The modification module is configured to update the incremental element storage address corresponding to the element identifier in the incremental page data to the second incremental element storage address based on the element identifier corresponding to the incremental element.
18. The device according to any one of claims 11 to 15, characterized in that The device further comprises: The display module is further configured to display the added target element in the management interface in response to an element adding operation in the management interface; A storage module, configured to generate a target element identifier of the target element, and store the target element at a third incremental element storage address; The storage module is used to store the target element identifier and the third incremental element storage address in the incremental page data accordingly.
19. The device according to any one of claims 11 to 15, characterized in that The device further comprises: a detection module, configured to detect whether a target plug-in is currently installed in response to a display instruction for the management interface, wherein the target plug-in is configured to provide a page data update function; The display module is further configured to display the management interface via the target plug-in in response to detecting that the target plug-in is currently installed.
20. The device according to claim 19, characterized in that The display module is further used for: In response to not detecting the target plug-in to be installed, displaying a reminder interface, wherein the reminder interface is used to remind the user to install the target plug-in; When the target plug-in is installed, the management interface is displayed through the target plug-in.
21. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the data updating method according to any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the operations performed in the data updating method according to any one of claims 1 to 10.
23. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the operations performed in the data updating method according to any one of claims 1 to 10 are realized.
Citation Information
Patent Citations
UI debugging method and device of application program, computer device and storage medium
CN110119352A