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

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

Info

Publication number
CN112286545A
CN112286545A CN202010995793.0A CN202010995793A CN112286545A CN 112286545 A CN112286545 A CN 112286545A CN 202010995793 A CN202010995793 A CN 202010995793A CN 112286545 A CN112286545 A CN 112286545A
Authority
CN
China
Prior art keywords
page
updated
incidence relation
association
resource
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.)
Pending
Application number
CN202010995793.0A
Other languages
Chinese (zh)
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/CN112286545A/en
Publication of CN112286545A publication Critical patent/CN112286545A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration 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 equipment can generate updated page resources of the target page and determine 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. The development equipment directly replaces the second incidence relation locally stored by the page user with the first incidence relation, so that the page user equipment obtains updated page resources in the target page according to the first incidence relation obtained after replacement, and automatic updating of the page resources is achieved. In the method, the incidence relation between the page and the page resource stored in the page using equipment can realize automatic replacement, further, the page resource can be automatically updated, the whole updating process does not need manual operation, the updating efficiency is improved, and meanwhile, the updating error is avoided.

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 from development to online of the website mainly comprises the following steps: the method comprises the steps that a developer firstly develops each page in a website on a development platform, then synchronizes each page obtained by initial development to a test platform for testing, and modifies the page with problems according to a test result. In practice, the modification to the page is usually an update to the static resource in the page, and the modified static resource also needs to synchronize the test platform for the secondary test. After the modified pages pass the test of the test platform, the website can be just on-line.
However, due to different authorities and different work division, manual operation is often required in the process of updating the static resources. However, the manual intervention not only makes the updating efficiency low, but also may cause the updating error, thereby affecting the normal test and online of the page.
Therefore, how to improve the updating efficiency and accuracy becomes a problem to be solved urgently.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a data updating method, apparatus, device and storage medium, so as to improve 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 incidence relation between the target page and the updated page resource;
acquiring a second association relation between the target page stored by the page use equipment and the page resource before the target page is updated;
and replacing the second incidence relation with the first incidence relation so that the page using equipment updates the page resource of the target page according to the first incidence relation.
In a second aspect, an embodiment of the present invention provides a data updating apparatus, including:
the generating module is used for generating updated page resources of the target page;
the determining module is used for determining a first incidence relation between the target page and the updated page resource;
the acquisition module is used for acquiring a second association relation between the target page stored by the page use equipment and the page resource before the target page is updated;
and the replacing module is used for replacing the second incidence relation by using the first incidence relation so as to enable the page using equipment to update the page resource of the target page according to the first incidence 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 used to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the data updating method in the first aspect is implemented. The electronic device may also include a communication interface for communicating with other devices or a communication network.
In a fourth aspect, an embodiment of the present invention provides 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 implement at least the data updating method according to 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 relation between an updated text and each word in the updated text;
acquiring a second association relation between the text before updating stored in the second device and each word in the file before updating;
and replacing the second incidence relation with the first incidence relation so that the second equipment updates the locally stored text before updating according to the first incidence 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 text before updating stored in the second device and each word in the file before updating;
and the replacing module is used for replacing the second incidence relation by using the first incidence relation so as to enable the second equipment to update the locally stored text before updating according to the first incidence 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 used to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the data updating method in the fifth aspect is implemented. The electronic device may also include a communication interface for communicating with other devices or a communication network.
In an eighth aspect, the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least the data updating method according to 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 the updated page resources of the target page and determines the first association relationship between the target page and the updated page resources. And then, acquiring a second association relation between a target page locally stored by the page using equipment and the page resource before updating, wherein the second association relation can be replaced by the first association relation by the developing equipment, so that the page using equipment acquires and updates the page resource according to the first association relation obtained by the replacement processing, and the automatic updating of the page resource in the target page is realized.
According to the updating method, the automatic replacement of the incidence relation between the page and the page resource stored in the page using equipment can be realized by utilizing the developing equipment. Furthermore, the page resources of the page can be automatically updated by means of the updating of the incidence relation, the whole updating process does not need manual operation, the updating efficiency is improved, and meanwhile, the updating error is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a data updating method according to an embodiment of the present invention;
fig. 2 is a flowchart of an alternative manner of association provided in the embodiment of the present invention;
FIG. 3 is a flow chart of another data updating method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a data updating apparatus 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 structural 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
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present 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 the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if," "if," as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a recognition," depending on the context. Similarly, the phrases "if determined" or "if identified (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when identified (a stated condition or event)" or "in response to an identification (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good 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 good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict between the embodiments. In addition, the sequence of steps in each method embodiment 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 development equipment. It is understood that the page developing device may be implemented as software, or a combination of software and hardware, and specifically may be a terminal device having a developing environment for 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 scene in a website as an example, for any page of a plurality of pages included in the website, namely a target page, a developer can modify any page resource of the target page.
In practical applications, the target page is embodied as an html file, which can be regarded 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 multiple categories of js files, css files, pictures, video, audio, and so on. And 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 thought of 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 relationship, the page element is displayed, namely, the target page display is realized.
Based on the above description, for example, according to the actual requirement, a developer may trigger a modification operation on the page resource a to modify the page resource a into the page resource B. Continuing with the example of the picture, 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, and the above modification operation also realizes that the picture a in the target page is updated to the picture B.
For clarity of the description that follows, page resource A may be referred to as a pre-update page resource. In response to the modify operation, modified page resource B may be referred to as an updated page resource.
S102, determining a first association relation between the target page and the updated page resource.
After the developer completes the modification of the page resources, the development device can establish a first association relationship between the target page and the updated page resources. Optionally, the established first association relationship is specifically an association relationship between the identification information of the target page and the identification information of the updated page resource. This association may be considered as a reference in the above steps.
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 respectively representing the home page and the search page in the website. Optionally, the identification information of the updated page resource may include a name, a type, and a version number of the page resource. For example, the updated page resource is a cs file, which can be expressed as: main.2134564. css. Wherein, "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 a modification date, or through hash calculation. Therefore, the established first association relationship actually includes the 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 represented as: home-main.2134564. cs.
S103, acquiring a second association relation between the target page stored by the page using device and the page resource before the target page is updated.
The development device may send a request to the page usage device to obtain a second association relationship between the target page locally stored by the page usage device and the page resource before update. The page using device can be a testing platform used by website testers, and can also be terminal equipment of ordinary website users.
Optionally, the development device may obtain the association relation library stored in the page use device in a request manner. The relational database may store an association relationship between each page in the website and its own page resource. The association relationship stored in the association relationship library may be, for example: home- -main.1354847.cs, index- -vendor.1268415.js, etc.
Continuing to take the example in step 102, it is assumed that the first association relationship corresponding to the page home established by the development device may be represented as: and home, main.2134564.css, the development device may query in the association library according to the page name "home" and the type of the page resource "css" included in the first association, so as to query an association having the same page name and page resource type, that is, query a second association of the page home. The second association relationship of the home page stored in the association database may be represented as: home is main.1354847. cs.
In practical application, in order to ensure that the queried second association relationship is more accurate, optionally, the name of the page resource may also be introduced. According to the page name "home", the name "main" and the type "css" included in the first association relationship, a query is performed in the association relationship library to query the association relationship, namely home — main.1354847.css, having the same page name, page resource name and type as the first association relationship.
S104, replacing the second incidence relation with the first incidence relation so that the page user can update the page resource of the target page according to the first incidence relation.
Finally, the development device may replace the second association relationship in the association relationship library with the first association relationship, which is also equivalent to updating the association relationship library, and feed back the updated association relationship library to the page use device. When the page using equipment needs to open the target page, the first association relation of the target page can be found from the updated association relation library, and the updated page resource is obtained according to the first association relation, so that the page elements in the target page are displayed according to the updated page resource.
In this embodiment, in response to an operation of a developer, a development device generates an updated page resource of a target page, and determines a first association relationship between the target page and the updated page resource. And then, acquiring a second association relation between a target page locally stored by the page using equipment and the page resource before updating, wherein the second association relation can be replaced by the first association relation by the developing equipment, so that the page using equipment acquires and updates the page resource according to the first association relation obtained by the replacement processing, and the automatic updating of the page resource in the target page is realized.
According to the updating method, the automatic replacement of the incidence relation between the page and the page resource stored in the page using equipment can be realized by utilizing the developing equipment. Furthermore, the page resources of the page can be automatically updated by means of the updating of the incidence relation, the whole updating process does not need manual operation, the updating efficiency is improved, and meanwhile, the updating error is avoided.
In practical applications, the updated association relationship may be returned to the page use device. Based on the updated association relationship, the page using device may have the following usage scenarios:
a tester can trigger test operation through the test platform to open a target page for testing. For such a scenario, since the developer has the operation right of the development device, the tester has the operation right of the test platform, and the two rights are different, after the developer updates the page resource in the target page, the developer cannot directly perform the synchronous update of the page resource on the test platform. At this time, one of the most commonly used ways is that the developer may notify the 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 prone to update errors. The method shown in fig. 1 can be used to overcome the above-mentioned drawbacks.
In addition to the above test scenarios, there may be the following usage scenarios: a common user of a website can browse a target page in a webpage through terminal equipment.
In this scenario, since the general user has already visited the target page many times, the terminal device may locally cache the page resource before update in the target page. After the page resource is updated, the local association relationship of the terminal device used by the user may be updated by the embodiment shown in fig. 1. The terminal device can obtain the updated page resource according to the updated association relationship, and display the page element corresponding to the updated page resource on the target page. And the updated page resource can replace the page resource before updating which is cached locally by the terminal equipment.
In addition, the association relationship in the above embodiment is replaced as a whole, but as can be seen from the above description, the difference between the first association relationship and the second association relationship of the same page resource in the target page is only the version number of the page resource. When the number of updated page resources is too large, the overall replacement mode causes the processing pressure of the development equipment to be large.
Therefore, in order to relieve the processing pressure of the development device, an alternative association relationship may be as shown in fig. 2, and specifically may include the following steps:
s201, extracting the first version number of the updated page resource from the first incidence relation.
S202, extracting a second version number of the page resource before updating from the second incidence relation.
The association relationship shown in the embodiment shown in fig. 1 is actually an association relationship between the identification information of the page and the identification information of the page resource. 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 format of the regular expression of the identification information of the page resource may be main. main.2134564.css; the identification information of the page resource before update may be represented as: main.1354847. css.
Based on the format of the regular expression, a first version number, namely '2134564', of the updated page resource can be extracted from the first association relation, and a second version number, namely '1354847', of the page resource before updating can be extracted from the second association relation in a character matching mode.
And S203, replacing the first version number with the second version number so that the page use equipment updates the association relation library.
Finally, the replacement of the association relationship is actually the replacement of the version number in the identification information, that is, only the extracted version number is replaced, thereby relieving the replacement pressure of the development equipment. Meanwhile, the development equipment feeds back the updated relational database to the page using equipment.
The embodiments are all applicable to a page development scenario, that is, the updated page resource is automatically updated from the first device (i.e., the page development device) to the second device (i.e., the page usage device), that is, synchronous update of the page resource between different devices is realized.
However, the essence of the above scheme is that data can be automatically updated synchronously among a plurality of devices, so that the above method can be further extended to be used in text scenes. For example, a certain text may be stored in both a first device and a second device, and the user often only has 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 can be synchronously updated on 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 device. It is to be understood that the first device may be implemented as software, or a combination of software and hardware, and may specifically be a terminal device used by a user. As shown in fig. 3, the method may include the steps of:
and 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 store the text A, and at this time, the user can trigger a modification operation on the text A on the first device. The first device updates the text A in response to the operation to obtain an updated text. Alternatively, the user-triggered modification operation may be to update word 1 to word 2 in text a. The first device and the second device in this embodiment may be common terminal devices, such as a notebook computer, a mobile phone, and the like.
The first device may then establish a first association between the updated text and words in the text. For example, if the updated text includes word 2, word 3, and word 4, the first association relationship is the association relationship between the updated text and each of word 2 to word 4.
S303, acquiring a second association relation between the text before updating stored in the second device and each word in the file before updating.
At this time, the first device may obtain, by sending the request, second association relationships between the updated preambles stored in the second device and the words therein, respectively. For example, if the text before update includes word 1, word 3, and word 4, the second association relationship is the association relationship between the text before update and word 1, word 3, and word 4, respectively.
S304, replacing the second incidence relation with the first incidence relation so that the second device updates the locally stored text before updating according to the first incidence relation.
Alternatively, the first device may directly replace the two relations completely.
Alternatively, the first device may further compare the two association relations to obtain a difference therebetween, that is, the first association relation includes an association relation between the text and the word 2, and the second association relation includes an association relation 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 locally stored text according to the first association relation. The alternatives described above can also be understood in connection with the description of the embodiment shown in fig. 2.
In addition, other parts not described in detail in this embodiment may also be combined with the related description in the embodiment shown in fig. 1 to fig. 2, and are not described again here.
In this embodiment, the first device updates the text in response to a modification operation of a 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 text before updating and words in the text before updating, which are locally stored by the second device. And the first equipment replaces the second association relation with the first association relation, so that the second equipment realizes automatic updating of 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 authority.
The data update 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 update means can be constructed by configuring the steps taught in 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, the apparatus includes:
and the generating module 11 is configured to generate an updated page resource of the target page.
A determining module 12, configured to determine a first association relationship between the target page and the updated page resource.
An obtaining module 13, configured to obtain a second association relationship between the target page stored in the page using device and a page resource before update of the target page.
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 includes: name, type and version number of the page resource.
The first incidence relation comprises incidence relations between the page name of the target page and the name, the type and the version number of the updated page resource.
Optionally, the obtaining 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 incidence relation library, determining the second incidence relation according to the first incidence relation, wherein the updated page resource and the page resource before updating are the page resources with the same name and type in the target page.
Optionally, the replacement module 14 specifically includes:
an extracting unit 141, configured to extract the first version number of the updated page resource from the first association relationship and extract the second version number of the page resource before update from the second association relationship.
A replacing unit 142, configured to replace the first version number with the second version number, so that the page using device updates the association library.
Optionally, the identification information of the page resource is a regular expression.
The extracting unit 141 is specifically configured to: and according to the format of the regular expression, extracting the first version number from the first association relationship in a character matching mode, and extracting the second version number from the second association relationship.
The apparatus shown in fig. 4 can perform the method of the embodiment shown in fig. 1 to 2, and reference may be made to the related description of the embodiment shown in fig. 1 to 2 for a part not described in detail in this embodiment. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to fig. 2, and are not described herein again.
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 used for storing a program that supports the electronic device to execute the data updating method provided in the embodiments shown in fig. 1 to fig. 2, and the processor 21 is configured to execute 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 performing the steps of:
generating updated page resources of the target page;
determining a first incidence relation between the target page and the updated page resource;
acquiring a second association relation between the target page stored by the page use equipment and the page resource before the target page is updated;
and replacing the second incidence relation with the first incidence relation so that the page using equipment updates the page resource of the target page according to the first incidence relation.
Optionally, the processor 31 is further configured to perform all or part of the steps in the foregoing embodiments shown in fig. 1 to 2.
The electronic device may further include a communication interface 23 for communicating 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 the electronic device, which includes a program for executing the data updating method in the method embodiments shown in fig. 1 to fig. 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:
and 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 text before update stored in the second device and each word in the file before update.
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 text before update according to the first association relationship.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
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 used for storing a program that supports the electronic device to execute the data updating method provided in the embodiment shown in fig. 3, and the processor 41 is configured to execute 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 performing the steps of:
updating the text;
determining a first association relation between an updated text and each word in the updated text;
acquiring a second association relation between the text before updating stored in the second device and each word in the file before updating;
and replacing the second incidence relation with the first incidence relation so that the second equipment updates the locally stored text before updating according to the first incidence relation.
Optionally, the processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 3.
The electronic device may further include a communication interface 43 for communicating 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 the electronic device, which includes a program for executing the data updating method in the method embodiment shown in fig. 3.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A data updating method is applied to page development equipment and comprises the following steps:
generating updated page resources of the target page;
determining a first incidence relation between the target page and the updated page resource;
acquiring a second association relation between the target page stored by the page use equipment and the page resource before the target page is updated;
and replacing the second incidence relation with the first incidence relation so that the page using equipment updates the page resource of the target page according to the first incidence relation.
2. The method of claim 1, wherein the determining the first association relationship 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 includes: the name, type and version number of the page resource;
the first incidence relation comprises incidence relations between the page name of the target page and the name, the type and the version number of the updated page resource.
4. The method according to claim 3, wherein the obtaining the second association relationship between the target page stored by the page using device and the page resource before updating comprises:
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 incidence relation library, determining the second incidence relation according to the first incidence relation, wherein the updated page resource and the page resource before updating are the page resources with the same name and type in the target page.
5. The method of claim 4, wherein replacing the second association with the first association comprises:
extracting a first version number of the updated page resource from the first incidence relation;
extracting a second version number of the page resource before updating from the second incidence relation;
and replacing the first version number with the second version number so that the page use equipment updates the association relation library.
6. The method of claim 5, wherein the identification information of the page resource is a regular expression; the method further comprises the following steps:
and according to the format of the regular expression, extracting the first version number from the first association relationship in a character matching mode, and extracting the second version number from the second association relationship.
7. A data updating method is applied to a first device and comprises the following steps:
updating the text;
determining a first association relation between an updated text and each word in the updated text;
acquiring a second association relation between the text before updating stored in the second device and each word in the file before updating;
and replacing the second incidence relation with the first incidence relation so that the second equipment updates the locally stored text before updating according to the first incidence relation.
8. A data update apparatus, comprising:
the generating module is used for generating updated page resources of the target page;
the determining module is used for determining a first incidence relation between the target page and the updated page resource;
the acquisition module is used for acquiring a second association relation between the target page stored by the page use equipment and the page resource before the target page is updated;
and the replacing module is used for replacing the second incidence relation by using the first incidence relation so as to enable the page using equipment to update the page resource of the target page according to the first incidence relation.
9. 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 update method of any one of claims 1 to 6.
10. 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 update method of any one of claims 1 to 6.
11. A data update apparatus, comprising:
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 text before updating stored in the second device and each word in the file before updating;
and the replacing module is used for replacing the second incidence relation by using the first incidence relation so as to enable the second equipment to update the locally stored text before updating according to the first incidence relation.
12. 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 update method of claim 7.
13. 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 update method of claim 7.
CN202010995793.0A 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium Pending CN112286545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010995793.0A CN112286545A (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 CN112286545A (en) 2020-09-21 2020-09-21 Data updating method, device, equipment and storage medium

Publications (1)

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

Family

ID=74420641

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112286545A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device
CN107092652A (en) * 2017-03-14 2017-08-25 口碑控股有限公司 The air navigation aid and device of target pages
CN108932332A (en) * 2018-07-05 2018-12-04 麒麟合盛网络技术股份有限公司 The loading method and device of static resource
CN109344348A (en) * 2018-09-20 2019-02-15 阿里巴巴集团控股有限公司 A kind of resource regeneration method and device
CN111125586A (en) * 2019-12-27 2020-05-08 北京奇艺世纪科技有限公司 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
CN111475757A (en) * 2020-03-03 2020-07-31 百度在线网络技术(北京)有限公司 Page updating method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735112A (en) * 2013-12-23 2015-06-24 阿里巴巴集团控股有限公司 Resource file sending method and resource file caching method and device
CN107092652A (en) * 2017-03-14 2017-08-25 口碑控股有限公司 The air navigation aid and device of target pages
CN108932332A (en) * 2018-07-05 2018-12-04 麒麟合盛网络技术股份有限公司 The loading method and device of static resource
CN109344348A (en) * 2018-09-20 2019-02-15 阿里巴巴集团控股有限公司 A kind of resource regeneration method and device
CN111125586A (en) * 2019-12-27 2020-05-08 北京奇艺世纪科技有限公司 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
CN111475757A (en) * 2020-03-03 2020-07-31 百度在线网络技术(北京)有限公司 Page updating method and device

Similar Documents

Publication Publication Date Title
US8843360B1 (en) Client-side localization of network pages
US10621211B2 (en) Language tag management on international data storage
US20140006004A1 (en) Generating localized user interfaces
CN105989098B (en) Icon package generation method and server, and icon processing method and system
US9864736B2 (en) Information processing apparatus, control method, and recording medium
CN106790635B (en) Cookie information management method and server
CN107391535B (en) Method and device for searching document in document application
CN110365776B (en) Picture batch downloading method and device, electronic equipment and storage medium
CN106990974B (en) APP updating method and device and electronic equipment
US11250207B1 (en) Dynamic creation and storage of narratives in multiple languages
CN107426588B (en) Method, system and storage device for acquiring television set configuration information
CN108664505B (en) Method and device for exporting database table structure
CN113157722A (en) Data processing method, device, server, system and storage medium
CN106257418B (en) Techniques for evaluating an application by using an auxiliary application
CN112286545A (en) Data updating method, device, equipment and storage medium
CN112100152A (en) Service data processing method, system, server and readable storage medium
CN112052157A (en) Test message construction method, device and system
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN111367606A (en) Application page display method, device, terminal and medium
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
KR20130103239A (en) Method, server and terminal for providing web browsing service having translation
CN111078219A (en) Page display method, device and system, electronic equipment and storage medium
US20150186758A1 (en) Image processing device
CN105610908B (en) A kind of samba service implementing method and system based on Android device
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium

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