CN112286545B - Data updating method, device, equipment and storage medium - Google Patents

Data updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN112286545B
CN112286545B CN202010995793.0A CN202010995793A CN112286545B CN 112286545 B CN112286545 B CN 112286545B CN 202010995793 A CN202010995793 A CN 202010995793A CN 112286545 B CN112286545 B CN 112286545B
Authority
CN
China
Prior art keywords
page
association
association relation
resource
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010995793.0A
Other languages
Chinese (zh)
Other versions
CN112286545A (en
Inventor
贾磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202010995793.0A priority Critical patent/CN112286545B/en
Publication of CN112286545A publication Critical patent/CN112286545A/en
Application granted granted Critical
Publication of CN112286545B publication Critical patent/CN112286545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a data updating method, a device, equipment and a storage medium, wherein the method comprises the following steps: the development device may generate updated page resources of the target page and determine a first association between the target page and the updated page resources. Then, a second association relationship between the target page locally stored by the page using device and the page resource before updating is acquired. The development equipment directly replaces a second association relationship locally stored by the page user with the first association relationship, so that the page user equipment obtains updated page resources in the target page according to the replaced first association relationship, and automatic update of the page resources is realized. In the method, the association relation between the page and the page resource stored in the page using equipment can be automatically replaced, further, the page resource can be automatically updated, manual operation is not needed in the whole updating process, and updating errors are avoided while updating efficiency is improved.

Description

Data updating method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a data updating method, apparatus, device, and storage medium.
Background
The process of developing the website to online mainly comprises the following steps: and firstly, developing each page in the website on a development platform by a developer, then synchronizing each page obtained by initial development to a test platform for testing, and modifying the page with a problem according to a test result. In practice, the modification to the page is usually the update to the static resources in the page, and the modified static resources also need to synchronize the test platform to perform the secondary test. After the pages to be modified pass the test of the test platform, the website can be just on line.
However, due to different rights and job division, manual operations are often required in the process of updating the static resources. However, the manual intervention not only makes the updating efficiency low, but also can possibly generate updating errors, thereby affecting the normal test of the page and leading to the online.
Therefore, how to improve the update efficiency and accuracy is a urgent problem.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a data updating method, apparatus, device and storage medium for improving the efficiency and accuracy of data updating.
In a first aspect, an embodiment of the present invention provides a data updating method, including:
generating updated page resources of the target page;
determining a first association relationship between the target page and the updated page resource;
acquiring a second association relationship between the target page stored by the page using equipment and page resources before updating of the target page;
and replacing the second association relation by the first association relation so that the page using equipment updates the page resource of the target page according to the first association relation.
In a second aspect, an embodiment of the present invention provides a data updating apparatus, including:
the generation module is used for generating updated page resources of the target page;
the determining module is used for determining a first association relation between the target page and the updated page resource;
the acquisition module is used for acquiring a second association relationship between the target page stored by the page using equipment and page resources before updating of the target page;
and the replacing module is used for replacing the second association relation by utilizing the first association relation so as to enable the page using equipment to update the page resource of the target page according to the first association relation.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory is configured to store one or more computer instructions, and the one or more computer instructions implement the data updating method in the first aspect when executed by the processor. The electronic device may also include a communication interface for communicating with other devices or communication networks.
In a fourth aspect, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement a data updating method as described in the first aspect.
In a fifth aspect, an embodiment of the present invention provides a data updating method, including:
updating the text;
determining a first association relationship between an updated text and each word in the updated text;
acquiring a second association relationship between a pre-update text stored by a second device and each word in the pre-update file;
and replacing the second association relation by the first association relation so that the second equipment updates the locally stored pre-update text according to the first association relation.
In a sixth aspect, an embodiment of the present invention provides a data updating apparatus, including:
the updating module is used for updating the text;
the determining module is used for determining a first association relation between the updated text and each word in the updated text;
the acquisition module is used for acquiring a second association relation between the pre-update text stored by the second equipment and each word in the pre-update file;
and the replacing module is used for replacing the second association relation by the first association relation so that the second equipment updates the locally stored pre-update text according to the first association relation.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory is configured to store one or more computer instructions, and the one or more computer instructions implement the data updating method in the fifth aspect when executed by the processor. The electronic device may also include a communication interface for communicating with other devices or communication networks.
In an eighth aspect, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement a data updating method as described in the fifth aspect.
According to the data updating method provided by the embodiment of the invention, in response to the operation of a developer, the development equipment generates updated page resources of the target page, and determines a first association relationship between the target page and the updated page resources. Then, a second association relation between the target page locally stored by the page using device and the page resource before updating is obtained, and the developing device can replace the second association relation with the first association relation, so that the page using device obtains and updates the page resource according to the first association relation obtained by the replacement processing, and automatic updating of the page resource in the target page is realized.
According to the updating method, the development equipment can be utilized to realize automatic replacement of the association relationship between the page and the page resource stored in the page using equipment. Furthermore, the page resource of the page can be automatically updated by means of the updating of the association relation, manual operation is not needed in the whole updating process, and updating errors are avoided while updating efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data updating method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an alternative association relationship method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another data updating method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data updating device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device corresponding to the data updating apparatus provided in the embodiment shown in fig. 4;
FIG. 6 is a schematic diagram of another data updating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the data updating apparatus provided in the embodiment shown in fig. 6.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to an identification", depending on the context. Similarly, the phrase "if determined" or "if identified (stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when identified (stated condition or event)" or "in response to an identification (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and features in the embodiments may be combined with each other. In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
Fig. 1 is a flowchart of a data updating method according to an embodiment of the present invention. The data updating method provided by the embodiment of the invention can be executed by the development equipment. It will be appreciated that the page development device may be implemented as software, or a combination of software and hardware, and in particular may be a terminal device with a development environment for use by a developer. As shown in fig. 1, the method comprises the steps of:
s101, generating updated page resources of the target page.
Taking a page development scenario in a website as an example, for any page of multiple pages included in the website, i.e., a target page, a developer may modify any page resource of the target page.
In practical applications, the target page is embodied as an html file, which can be considered as a page template, and the types of page elements in the target page are usually recorded. Page resources are typically static resources and typically include a number of categories of js files, css files, pictures, video, audio, and the like. And for page resources before and after updating, the types of the page resources before and after updating are kept unchanged.
Wherein the target page includes a page frame and page elements, and the target page references page resources. This reference relationship can be considered as: the target page obtains page elements through page resources. For example, if the page element is a picture, the page resource corresponding to the picture may be a link for obtaining the picture. After each page element in the target page is obtained through the reference relation, the page element is displayed, namely the target page display is realized.
Based on the above description, for example, the developer may trigger a modification operation on the page resource a according to the actual requirement, so as to modify the page resource a into the page resource B. Taking the picture as an example, the page resource a may be a link of the picture a, and the page resource B may be a link of the picture B, so that the above-mentioned modification operation is implemented to update the picture a in the target page to the picture B.
For clarity of the following description, page resource a may be referred to as a pre-update page resource. In response to the modification operation, modified page resource B may be referred to as an updated page resource.
S102, determining a first association relationship between the target page and the updated page resources.
After the developer finishes modifying the page resource, the development device can establish a first association relationship between the target page and the updated page resource. Optionally, the first established association relationship is specifically an association relationship between the identification information of the target page and the identification information of the updated page resource. Such an association relationship can be regarded as a reference relationship in the above-described step.
Wherein, optionally, the identification information of the target page may include a page name. For example, the page name may be expressed as: home and index, which are used to represent the top page and search page in the website, respectively. Alternatively, the updated identification information of the page resource may include a name, a type, and a version number of the page resource. For example, the updated page resource is a css file, which can be expressed as: main.2134564.Css. Where "main" is the name of the page resource, "2134564" is the version number of the page resource, and "css" is the type of the page resource. The version number of the page resource can be generated in a random mode according to the modification date or by hash calculation. Therefore, the first association relationship established above actually includes an association relationship between the name of the target page and the name, type and version number of the updated page resource. The first association relationship of the target page may be expressed as: home- - -main.2134564.Css.
S103, acquiring a second association relationship between the target page stored by the page using device and the page resource before updating of the target page.
The development device may send a request to the page-using device to obtain a second association between the target page locally stored by the page-using device and the pre-update page resource. The page using device can be a test platform for website testers, and can also be terminal devices of ordinary website users.
Alternatively, the development device may acquire the association library stored in the page usage device by requesting. The association relation between each page in the website and the page resource of the website can be stored in the relation library. The association relationship stored in the association relationship library may be, for example: home- - -main.1354847.Css, index- - -vendor.1268415.Js, etc.
Continuing with the example in step 102, assume that the first association relationship corresponding to the page home established by the development device may be expressed as: the development device may query in the association library according to the page name "home" and the page resource type "css" included in the first association, so as to query the association having the same page name and page resource type, that is, query the second association of the page home. The second association of home pages stored in the association database may be expressed as: home- - -main.1354847.Css.
In practical application, in order to ensure that the queried second association relationship is more accurate, optionally, the name of the page resource can also be introduced. According to the page name 'home', the name 'main' of the page resource and the type 'css' included in the first association, inquiring is carried out in the association library so as to inquire the association which has the same page name, the name of the page resource and the type as the first association, namely home— main.1354847.Css.
S104, replacing the second association relation with the first association relation so that the page user can update the page resource of the target page according to the first association relation.
Finally, the development device can replace the second association relationship in the association relationship library by the first association relationship, which is equivalent to updating the association relationship library, and feeds back the updated association relationship library to the page using device. When the page using device needs to open the target page, a first association relation of the target page can be found from the updated association relation library, and updated page resources are obtained according to the first association relation, so that page elements in the target page are displayed according to the updated page resources.
In this embodiment, in response to an operation of a developer, the development device generates an updated page resource of the target page, and determines a first association relationship between the target page and the updated page resource. Then, a second association relation between the target page locally stored by the page using device and the page resource before updating is obtained, and the developing device can replace the second association relation with the first association relation, so that the page using device obtains and updates the page resource according to the first association relation obtained by the replacement processing, and automatic updating of the page resource in the target page is realized.
According to the updating method, the development equipment can be utilized to realize automatic replacement of the association relationship between the page and the page resource stored in the page using equipment. Furthermore, the page resource of the page can be automatically updated by means of the updating of the association relation, manual operation is not needed in the whole updating process, and updating errors are avoided while updating efficiency is improved.
In practical application, the updated association relationship may be returned to the page usage device. The page using device may have the following usage scenario based on the updated association relation:
the tester can trigger testing operation through the testing platform so as to open the target page for testing. For this scenario, since the developer has the operation authority of the development device, and the tester has the operation authority of the test platform, the two authorities are different, so after the developer updates the page resource in the target page, the developer cannot directly update the page resource on the test platform synchronously. At this time, one of the most commonly used ways is that a developer may inform a tester of the identification information of the updated page resource, and the tester manually updates the identification information of the page resource on the test platform. After manual updating, the test platform can acquire updated page resources according to the updated identification information, and further test the target page.
However, the manual modification method is not only inefficient, but also is easy to update. The method shown in fig. 1 can then be used to overcome the above-mentioned drawbacks.
In addition to the test scenarios described above, the following usage scenarios may also exist: the common website user can browse the target pages in the web pages through the terminal equipment.
In this scenario, since the normal user has accessed the target page multiple times, the terminal device can locally cache the pre-update page resources in this target page. After the page resource is updated, the local association relationship of the terminal device used by the user can be updated by the embodiment shown in fig. 1. The terminal equipment can acquire updated page resources according to the updated association relation and display page elements corresponding to the updated page resources on the target page. And the updated page resource also replaces the page resource before update locally cached by the terminal equipment.
In addition, in the above embodiment, the association relationship is replaced entirely, but it can be known from the above description that, for the first association relationship and the second association relationship of the same page resource in the target page, the difference between the two relationship is only the version number of the page resource. And when the number of updated page resources is excessive, the whole replacement mode can cause the processing pressure of the development equipment to be larger.
Thus, in order to relieve the processing pressure of the development device, an alternative way of associating relationships may be as shown in fig. 2, and specifically may include the following steps:
s201, extracting a first version number of the updated page resource from the first association relation.
S202, extracting a second version number of the page resource before updating from the second association relation.
The association shown in the embodiment shown in fig. 1 is actually an association between the identification information of the page and the identification information of the page resource. And the name, type and version number of the page resource included in the identification information of the page resource can be expressed in the form of a regular expression. The regular expression format of the identification information of the page resource may be main. main.2134564.Css; the identification information of the page resource before update can be expressed as: main.1354847.Css.
Based on the format of the regular expression, the first version number of the page resource after being updated, namely '2134564', can be extracted from the first association relation in a character matching mode, and the second version number of the page resource before being updated, namely '1354847', can be extracted from the second association relation.
S203, replacing the first version number with the second version number so that the page using device updates the association relation library.
Finally, the replacement of the association relation is actually the replacement of the version number in the identification information, namely, only the extracted version number is replaced, so that the replacement pressure of the development equipment is relieved. Meanwhile, the development equipment feeds back the updated relation library to the page using equipment.
The embodiments described above are applicable to a page development scenario, i.e. the page resource is automatically updated from a first device (i.e. the page development device described above) to a second device (i.e. the page usage device described above), i.e. the synchronous update of the page resource between different devices is achieved.
The essence of the scheme is that the data can be automatically updated synchronously among a plurality of devices, so that the method can be further expanded into a text scene for use. For example, a certain text may be stored in both the first device and the second device, and the user often has only the right to modify the text on the first device. At this time, after the user triggers the text modification operation on the first device, the updated content may be synchronously updated to the second device by using the following method.
Fig. 3 is a flowchart of another data updating method according to an embodiment of the present invention. The data updating method provided by the embodiment of the invention can be executed by the first equipment. It will be appreciated that the first device may be implemented as software, or a combination of software and hardware, in particular as a terminal device for use by a user. As shown in fig. 3, the method may include the steps of:
s301, updating the text.
S302, determining a first association relation between the updated text and each word in the updated text.
The first device and the second device both have text a stored thereon, at which time the user may trigger a modification operation on the text a on the first device. The first device updates the text a in response to this operation to obtain updated text. Alternatively, the user-triggered modification operation may be to update word 1 in text a to word 2. The first device and the second device in this embodiment may be common terminal devices, such as a notebook computer, a mobile phone, and so on.
The first device may then establish a first association between the updated text and the terms in the text. For example, the updated text includes the word 2, the word 3 and the word 4, and the first association relationship is the association relationship between the updated text and the words 2 to 4, respectively.
S303, acquiring a second association relation between the text before updating and each word in the file before updating, which are stored by the second equipment.
At this time, the first device may obtain, by sending a request, a second association relationship between the pre-update text stored in the second device and each term in the pre-update text. For example, the pre-update text includes the word 1, the word 3 and the word 4, and the second association is the association between the pre-update text and the word 1, the word 3 and the word 4, respectively.
S304, replacing the second association relation by the first association relation so that the second equipment updates the locally stored pre-update text according to the first association relation.
Alternatively, the first device may directly completely replace the two association relationships.
Alternatively, the first device may further compare the two associations to obtain a difference therebetween, that is, the first association includes an association between the text and the word 2, and the second association includes an association between the text and the word 1. At this time, the first device only needs to replace the association relationship between the text and the word 1 with the association relationship between the text and the word 2, so that the processing pressure of the first device is reduced. Finally, the second device can update the text stored locally and currently according to the first association relation. The above alternatives can also be understood in connection with the relevant description in the embodiment shown in fig. 2.
In addition, other parts not described in detail in this embodiment may also be combined with the related descriptions in the embodiment shown in fig. 1 to 2, which are not described in detail herein.
In this embodiment, the first device updates the text in response to a modification operation of the user, and obtains a first association relationship between the updated text and each word in the updated text. And then, acquiring a second association relation between the pre-update text locally stored by the second device and each word in the pre-update text. The first equipment replaces the second association relation with the first association relation, so that the second equipment can automatically update the text according to the first association relation obtained by the replacement processing, and the user can see the updated text on the second equipment without modification permission.
A data updating apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these data updating means may be configured by the steps taught by the present scheme using commercially available hardware components.
Fig. 4 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present invention, as shown in fig. 4, where the apparatus includes:
the generating module 11 is configured to generate updated page resources of the target page.
And the determining module 12 is configured to determine a first association relationship between the target page and the updated page resource.
And the acquisition module 13 is used for acquiring a second association relationship between the target page stored by the page using equipment and the page resource before updating of the target page.
And a replacing module 14, configured to replace the second association relationship with the first association relationship, so that the page using device updates the page resource of the target page according to the first association relationship.
Optionally, the determining module 12 is specifically configured to: and determining a first association relation between the identification information of the target page and the identification information of the updated page resource.
The identification information of the page comprises a page name; the identification information of the page resource comprises: the name, type, and version number of the page resource.
The first association relation comprises association relations between the page name of the target page and the name, type and version number of the updated page resource respectively.
Optionally, the acquiring module 13 is specifically configured to: acquiring an association relation library stored by the page using equipment, wherein the association relation library comprises association relations between a plurality of pages and respective page resources before updating; and
and in the association relation library, determining the second association relation according to the first association relation, wherein the updated page resource and the page resource before updating are page resources with the same name and type in the target page.
Optionally, the replacing module 14 specifically includes:
the extracting unit 141 is configured to extract a first version number of the page resource after updating from the first association relationship and extract a second version number of the page resource before updating from the second association relationship.
And a replacing unit 142, configured to replace the first version number with the second version number, so that the page usage device updates the association library.
Optionally, the identification information of the page resource is a regular expression.
The extracting unit 141 specifically is configured to: and extracting the first version number from the first association relation and the second version number from the second association relation in a character matching mode according to the format of the regular expression.
The apparatus shown in fig. 4 may perform the method of the embodiment shown in fig. 1 to 2, and reference is made to the relevant description of the embodiment shown in fig. 1 to 2 for parts of this embodiment not described in detail. The implementation process and technical effects of this technical solution are described in the embodiments shown in fig. 1 to 2, and are not described herein.
The internal functions and structures of the data updating apparatus are described above, and in one possible design, the structure of the data updating apparatus may be implemented as an electronic device, as shown in fig. 5, which may include: a processor 21 and a memory 22. Wherein the memory 22 is for storing a program for supporting the electronic device to perform the data updating method provided in the embodiments shown in fig. 1 to 2 described above, and the processor 21 is configured for executing the program stored in the memory 22.
The program comprises one or more computer instructions which, when executed by the processor 21, are capable of carrying out the steps of:
generating updated page resources of the target page;
determining a first association relationship between the target page and the updated page resource;
acquiring a second association relationship between the target page stored by the page using equipment and page resources before updating of the target page;
and replacing the second association relation by the first association relation so that the page using equipment updates the page resource of the target page according to the first association relation.
Optionally, the processor 31 is further configured to perform all or part of the steps in the embodiments shown in fig. 1 to 2.
The structure of the electronic device may further include a communication interface 23, for the electronic device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the above-described electronic device, which includes a program for executing the data updating method according to the embodiment of the method shown in fig. 1 to 2.
Fig. 6 is a schematic structural diagram of another data updating apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
an updating module 31 for updating the text.
A determining module 32, configured to determine a first association relationship between the updated text and each word in the updated text.
The obtaining module 33 is configured to obtain a second association relationship between the pre-update text stored in the second device and each term in the pre-update file.
And a replacing module 34, configured to replace the second association relationship with the first association relationship, so that the second device updates the locally stored pre-update text according to the first association relationship.
The apparatus shown in fig. 6 may perform the method of the embodiment shown in fig. 3, and reference is made to the relevant description of the embodiment shown in fig. 3 for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiment shown in fig. 3, and are not described herein.
The internal functions and structures of the data updating apparatus are described above, and in one possible design, the structure of the data updating apparatus may be implemented as an electronic device, as shown in fig. 7, which may include: a processor 41 and a memory 42. Wherein the memory 42 is for storing a program for supporting the electronic device to perform the data updating method provided in the embodiment shown in fig. 3 described above, and the processor 41 is configured for executing the program stored in the memory 42.
The program comprises one or more computer instructions which, when executed by the processor 41, are capable of carrying out the steps of:
updating the text;
determining a first association relationship between an updated text and each word in the updated text;
acquiring a second association relationship between a pre-update text stored by a second device and each word in the pre-update file;
and replacing the second association relation by the first association relation so that the second equipment updates the locally stored pre-update text according to the first association relation.
Optionally, the processor 41 is further configured to perform all or part of the steps in the embodiment shown in fig. 3.
The electronic device may further include a communication interface 43 for the electronic device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the above-described electronic device, where the computer storage medium includes a program for executing the data updating method according to the embodiment of the method shown in fig. 3.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A data updating method, characterized by being applied to a page development device, comprising:
generating updated page resources of the target page;
determining a first association relationship between the target page and the updated page resource;
acquiring a second association relationship between the target page stored by the page using equipment and page resources before updating of the target page;
replacing the second association relation by the first association relation so that the page using equipment updates the page resource of the target page according to the first association relation;
the obtaining the second association relationship between the target page and the page resource before updating, which is stored by the page using device, includes:
acquiring an association relation library stored by the page using equipment, wherein the association relation library comprises association relations between a plurality of pages and respective page resources before updating;
and in the association relation library, determining the second association relation according to the first association relation, wherein the updated page resource and the page resource before updating are page resources with the same name and type in the target page.
2. The method of claim 1, wherein the determining a first association between the target page and the updated page resource comprises:
and determining a first association relation between the identification information of the target page and the identification information of the updated page resource.
3. The method of claim 2, wherein the identification information of the page includes a page name; the identification information of the page resource comprises: name, type and version number of the page resource;
the first association relation comprises association relations between the page name of the target page and the name, type and version number of the updated page resource respectively.
4. The method of claim 1, wherein replacing the second association with the first association comprises:
extracting a first version number of the updated page resource from the first association relation;
extracting a second version number of the page resource before updating from the second association relation;
and replacing the first version number with the second version number so that the page using device updates the association relation library.
5. The method of claim 4, wherein the identification information of the page resource is a regular expression; the method further comprises the steps of:
and extracting the first version number from the first association relation and the second version number from the second association relation in a character matching mode according to the format of the regular expression.
6. A data updating apparatus, comprising:
the generation module is used for generating updated page resources of the target page;
the determining module is used for determining a first association relation between the target page and the updated page resource;
the acquisition module is used for acquiring a second association relationship between the target page stored by the page using equipment and page resources before updating of the target page; the obtaining the second association relationship between the target page and the page resource before updating, which is stored by the page using device, includes: acquiring an association relation library stored by the page using equipment, wherein the association relation library comprises association relations between a plurality of pages and respective page resources before updating; in the association relation library, determining the second association relation according to the first association relation, wherein the updated page resource and the page resource before updating are page resources with the same name and type in the target page;
and the replacing module is used for replacing the second association relation by utilizing the first association relation so as to enable the page using equipment to update the page resource of the target page according to the first association relation.
7. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the data updating method of any of claims 1 to 5.
8. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the data updating method of any of claims 1 to 5.
CN202010995793.0A 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium Active CN112286545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010995793.0A CN112286545B (en) 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010995793.0A CN112286545B (en) 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112286545A CN112286545A (en) 2021-01-29
CN112286545B true CN112286545B (en) 2023-05-05

Family

ID=74420641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010995793.0A Active CN112286545B (en) 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112286545B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775830A (en) * 2016-11-25 2017-05-31 魏熙柠 A kind of web application page script resource automatic update method and system
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN107391507A (en) * 2016-05-16 2017-11-24 阿里巴巴集团控股有限公司 The update method and device of the mobile terminal page
CN107678776A (en) * 2017-08-09 2018-02-09 上海壹账通金融科技有限公司 Multimode version dependence construction method, device, server and storage medium
CN109445813A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 A kind of file quoting method and device
CN110245156A (en) * 2019-05-29 2019-09-17 吉旗(成都)科技有限公司 Caching data processing method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895223B2 (en) * 2005-11-29 2011-02-22 Cisco Technology, Inc. Generating search results based on determined relationships between data objects and user connections to identified destinations
US7877343B2 (en) * 2007-04-02 2011-01-25 University Of Washington Through Its Center For Commercialization Open information extraction from the Web
CN104735112B (en) * 2013-12-23 2018-08-03 阿里巴巴集团控股有限公司 Send method, the method and apparatus of cache resource file of resource file
CN107092652B (en) * 2017-03-14 2021-06-29 口碑控股有限公司 Navigation method and device for target page
EP3672199B1 (en) * 2017-09-19 2022-06-22 Huawei Technologies Co., Ltd. Application deployment method, apparatus and system
JP7043783B2 (en) * 2017-10-20 2022-03-30 富士フイルムビジネスイノベーション株式会社 Software management equipment, software management systems and programs
CN108932332A (en) * 2018-07-05 2018-12-04 麒麟合盛网络技术股份有限公司 The loading method and device of static resource
CN109344348B (en) * 2018-09-20 2021-12-21 创新先进技术有限公司 Resource updating method and device
CN111125586B (en) * 2019-12-27 2023-09-05 北京奇艺世纪科技有限公司 Page updating method and device
CN111240767A (en) * 2020-02-04 2020-06-05 北京字节跳动网络技术有限公司 Component and page loading method and device, electronic equipment and storage medium
CN111475757B (en) * 2020-03-03 2023-04-07 百度在线网络技术(北京)有限公司 Page updating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391507A (en) * 2016-05-16 2017-11-24 阿里巴巴集团控股有限公司 The update method and device of the mobile terminal page
CN106775830A (en) * 2016-11-25 2017-05-31 魏熙柠 A kind of web application page script resource automatic update method and system
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN107678776A (en) * 2017-08-09 2018-02-09 上海壹账通金融科技有限公司 Multimode version dependence construction method, device, server and storage medium
CN109445813A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 A kind of file quoting method and device
CN110245156A (en) * 2019-05-29 2019-09-17 吉旗(成都)科技有限公司 Caching data processing method and device

Also Published As

Publication number Publication date
CN112286545A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN110851209B (en) Data processing method and device, electronic equipment and storage medium
US20140075301A1 (en) Information processing apparatus, control method, and recording medium
US20090006471A1 (en) Exposing Specific Metadata in Digital Images
CN108776592B (en) Page construction method, device, equipment and storage medium
CN106257418B (en) Techniques for evaluating an application by using an auxiliary application
CN110555015A (en) Database entity management method and device, electronic equipment and storage medium
CN112100152A (en) Service data processing method, system, server and readable storage medium
CN114780615A (en) Error code management method and device thereof
CN107229655B (en) Updating method, device and system of page static file
CN112286545B (en) Data updating method, device, equipment and storage medium
CN111367606A (en) Application page display method, device, terminal and medium
CN108196921B (en) Document development method and device, computer equipment and storage medium
CN110704041A (en) Software development method and device
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium
US10482101B1 (en) Method and system for optimizing data replication for large scale archives
US9936015B2 (en) Method for building up a content management system
CN110879835B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN106156235B (en) Picture downloading method and system based on Android platform
CN109325057B (en) Middleware management method, device, computer equipment and storage medium
CN114035841A (en) Interface configuration information updating method, system, computer device and storage medium
CN113157722A (en) Data processing method, device, server, system and storage medium
KR20120034525A (en) Apparatus and method for recommanding contents
CN111580997A (en) Method, system, equipment and storage medium for synchronizing contents of application and website
CN105610908B (en) A kind of samba service implementing method and system based on Android device
CN112632294B (en) Method and system for synchronizing Neo4j data to search server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant