CN117349558A - Page static resource updating method, device, equipment and storage medium - Google Patents

Page static resource updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN117349558A
CN117349558A CN202311380324.8A CN202311380324A CN117349558A CN 117349558 A CN117349558 A CN 117349558A CN 202311380324 A CN202311380324 A CN 202311380324A CN 117349558 A CN117349558 A CN 117349558A
Authority
CN
China
Prior art keywords
page
resource
information
static
file
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
CN202311380324.8A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311380324.8A priority Critical patent/CN117349558A/en
Publication of CN117349558A publication Critical patent/CN117349558A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The application provides a page static resource updating method, device, equipment and storage medium. Relates to the fields of computer technology, information technology and financial science and technology. The method comprises the following steps: determining resource information corresponding to the static update resource; performing regular matching processing on the full files of the target page according to the resource information, and determining reference chain information corresponding to the static update resource; and updating the page static resources of the target page according to the reference chain information. The method of the embodiment does not need to change codes, solves the problems of omission and errors easily caused under the condition of multistage reference of static files, and improves the comprehensiveness of static resource updating.

Description

Page static resource updating method, device, equipment and storage medium
Technical Field
The present disclosure relates to the fields of computer technology, information technology, and financial technology, and in particular, to a method, an apparatus, a device, and a storage medium for updating static resources of a page.
Background
In browser architecture, when a front-end static resource changes, its timestamp needs to be updated where the changing static resource is referenced to enable the updating of the browser resource.
In the prior art, a developer manually updates the timestamp of a place referencing the changed static resource in the browser page, so that the static resource of the browser page is updated.
However, in the prior art, the place where the changed static resource is referenced may be the static resource, and the update timestamp is required, which may have the problem of update omission, thereby causing page function abnormality.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for updating page static resources, which are used for solving the problem of missing updating and further causing page function abnormality.
In a first aspect, the present application provides a method for updating a static resource of a page, including: .
Determining resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the version;
performing regular matching processing on the full files of the target page according to the resource information, and determining the reference chain information corresponding to the static update resource; the reference chain information is composed of file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relation with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relation.
In one possible design, according to the resource information, performing regular matching processing on the full-volume file of the target page, and determining the reference chain information corresponding to the static update resource, where the determining includes:
repeating the following steps until reaching the preset condition:
performing regular matching processing on the full files of the target page according to the resource information, determining page files referencing the static update resources in the target page, and determining file information corresponding to the page files;
determining the file information as new resource information, and determining the page file corresponding to the file information as new static update resource; and the preset condition is that a page file referencing static update resources does not exist in the full-quantity file of the target page.
In one possible design, the method further comprises:
determining and storing reference information of each page file for corresponding static update resources; the reference information comprises a file path of the page file, reference position information of static update resources corresponding to the page file reference and reference line number information of the static update resources corresponding to the page file reference.
In one possible design, updating the page static resource of the target page according to the reference chain information includes:
and according to the reference information corresponding to each piece of file information in the reference chain information, carrying out update processing on the time stamp of the corresponding static update resource in each corresponding page file so as to update the page static resource of the target page.
In one possible design, determining resource information corresponding to the statically updated resource includes:
determining version difference information of the target page based on a version control system; the version difference information characterizes the change information of the target page when the version is updated;
and determining the static update resource according to the version difference information, and determining resource information corresponding to the static update resource.
In one possible design, the method further comprises:
and responding to an operation instruction of a user aiming at the target page, and displaying the updated page static resource.
In a second aspect, the present application provides a device for updating a static resource of a page, where the device includes:
the determining unit is used for determining resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the version;
the processing unit is used for carrying out regular matching processing on the full files of the target page according to the resource information and determining the reference chain information corresponding to the static update resource; the reference chain information is composed of file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relation with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relation;
and the updating unit is used for updating the page static resources of the target page according to the reference chain information.
In a third aspect, the present application provides an electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the page static resource updating method according to the first aspect and the various possible designs of the first aspect according to the computer program in the memory.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored, and when executed by a processor, implement a method for updating static resources of a page according to the first aspect and the various possible designs of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, including a computer program, which when executed by a processor implements the page static resource updating method according to the first aspect and the various possible designs of the first aspect.
The page static resource updating method, device, equipment and storage medium provided by the application determine resource information corresponding to the static updating resource; performing regular matching processing on the full files of the target page according to the resource information, and determining reference chain information corresponding to the static update resource; and updating the page static resources of the target page according to the reference chain information. The method of the embodiment does not need to change codes, solves the problems of omission and errors easily caused under the condition of cyclic dependence of the static file, and improves the comprehensiveness of static resource updating.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flowchart of a method for updating static resources of a page according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for updating static resources of a page according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a page static resource updating device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Term interpretation:
Browser/Server, browser/Server architecture.
Timestamp: the time stamp is a sequence of characters or encoded information.
In browser architecture, when a front-end static resource changes, its timestamp needs to be updated where the changing static resource is referenced to enable the updating of the browser resource.
In one example, (1) a developer updates the browser page static resources by manually updating a timestamp of where the changed static resources are referenced in the browser page; (2) A building tool such as a module packer (weback) is used to pack the project pages, file hash values are added after static file names in the packing process, corresponding hash values change when contents change, and browser caches are refreshed by updating the file names.
However, by using a manual mode, the developer is allowed to update the time stamp, so that omission, errors and the like are easily caused, and the problem of cyclic dependence of the static file cannot be solved; the packing tool is used for carrying out tedious configuration on the project, the packing flow is increased before the project is on line, meanwhile, the existing code is subjected to invasive modification, and the cost is high.
The application provides a page static resource updating method which is used for solving the technical problems.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for updating static resources of a page according to an embodiment of the present application, as shown in fig. 1, where the method includes:
101. determining resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the current version.
When the version of the target page of the browser is updated, the electronic device first determines the static updated resource of the target page which is changed relative to the previous version when the version is updated, and determines the corresponding resource information. The static update resource can be a picture resource, a text resource, a graphic resource, an animation resource, a sound resource, a table resource, a link resource and the like.
102. Performing regular matching processing on the full files of the target page according to the resource information, and determining reference chain information corresponding to the static update resource; the reference chain information comprises file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relationship with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relationship.
For example, due to the possible multi-level reference problem of the file, the electronic device performs step-by-step and round-robin regular matching processing on the full files of the target page according to the determined resource information to determine the page file directly referencing the static update resource, and other page files referencing the page file, that is, determine the reference chain information corresponding to the resource information, where the reference chain information is used to characterize the reference chain corresponding to the static update resource, the reference chain includes one or more page files, the page file of the first order in the reference chain has a reference relationship with the static update resource, and every two adjacent page files in the reference chain have a reference relationship.
103. And updating the page static resources of the target page according to the reference chain information.
The electronic device updates the static resources of the page of the target page according to the reference chain information corresponding to the determined static update resources, for example, updates the timestamp of the reference position of the page file in each reference chain to be in the latest state, so that the browser updates the static resources of the position.
In summary, in this embodiment, the following steps are performed: determining resource information corresponding to the static update resource; performing regular matching processing on the full files of the target page according to the resource information, and determining reference chain information corresponding to the static update resource; and updating the page static resources of the target page according to the reference chain information. The method of the embodiment does not need to change codes, solves the problems of omission and errors easily caused under the condition of cyclic dependence of the static file, and improves the comprehensiveness of static resource updating.
Fig. 2 is a flowchart of another method for updating static resources of a page according to an embodiment of the present application, as shown in fig. 2, where the method includes:
201. determining version difference information of the target page based on the version control system; the version difference information characterizes change information of the target page during the version updating.
Illustratively, based on the code data of the target page managed by the version control system, when the new version of the target page is updated, the version difference information of the target page can be determined by comparing the change information of the target page when the current version is updated by the version control system.
202. And determining static update resources according to the version difference information, and determining resource information corresponding to the static update resources.
Illustratively, the static update resources that require a timestamp update are determined by analyzing the command line to filter the determined version difference information.
In one example, the gate command may be executed by a child process (child_process) module of nodejs, and the content of the current release may be compared with the content of the last release to determine the static update resource that needs to be updated with a timestamp.
203. Performing regular matching processing on the full files of the target page according to the resource information, and determining reference chain information corresponding to the static update resource; the reference chain information comprises file information corresponding to one or more page files in sequence, the page files corresponding to the file information of the first order in the reference chain information have a reference relationship with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relationship;
in one example, step 203 includes the steps of:
repeating the following steps until reaching the preset condition:
performing regular matching processing on the full files of the target page according to the resource information, determining page files referencing static update resources in the target page, and determining file information corresponding to the page files;
determining file information as new resource information, and determining page files corresponding to the file information as new static update resources; and the preset condition is that a page file referencing the static update resource does not exist in the full-quantity file of the target page.
In one example, reference information for each page file for a corresponding static update resource is determined and stored; the reference information comprises a file path of the page file, reference position information of static update resources corresponding to page file references and reference line number information of the static update resources corresponding to page file references.
Illustratively, since there may be a problem of cyclic dependency of the static resource, a step-by-step and cyclic regular matching process is required for the full-volume file of the target page to determine the page file directly referencing the static updated resource, and other page files referencing the page file, i.e. to determine the reference chain information corresponding to the resource information,
in one example, the reference chain corresponding to a static update resource is determined by canonical matching of one round robin execution:
repeating the following steps until reaching the preset condition:
and carrying out regular matching processing on the full files of the target page based on the regular expression according to the resource information, determining the page files referencing the static update resources in the target page, and determining the file information corresponding to the page files. And the reference information corresponding to the page file is recorded, wherein the reference information comprises a file path of the page file, a reference position of a static update resource corresponding to the page file reference and a reference line number of the static update resource corresponding to the page file reference, and the file information and the reference information corresponding to the page file can be stored in a to-be-processed information base or a to-be-processed queue.
And re-taking the file information corresponding to the page file as new resource information, taking the page file as new static update resource, carrying out regular matching processing on the full files of the target page, determining the page file referencing the static update resource in the target page, and determining the file information corresponding to the page file. And recording the reference information corresponding to the page file, wherein the reference information comprises a file path of the page file, a reference position of a static update resource corresponding to the page file reference and a reference line number of the static update resource corresponding to the page file reference, and storing the file information and the reference information corresponding to the page file into a to-be-processed information base or a to-be-processed queue.
And until the preset condition is that the page file referencing the static update resource does not exist in the full-quantity file of the target page. At this time, each page file determined during this loop constitutes a reference chain of static update resources according to the determined order. The first order page file in the reference chain has a reference relationship with the static update resource, and every two adjacent page files in the reference chain have a reference relationship.
In one example, a regular expression (Regular Expression, regex or regex p for short), which is a powerful text processing tool that defines a pattern that can be used to match strings or find specific character sequences in strings.
204. And according to the reference information corresponding to each piece of file information in the reference chain information, carrying out update processing on the time stamp of the corresponding static update resource in each corresponding page file so as to update the page static resource of the target page.
Illustratively, the update location of each page file is determined based on the corresponding reference information for that page file. I.e. the reference location where the timestamp needs to be updated. And according to the update position of each page file, performing update processing on the corresponding time stamp in each page file in the reference chain, and updating the corresponding time stamp to the latest state, wherein the electronic equipment can update the page static resource of the target page based on the time stamp information of the updated page file.
In summary, in this embodiment, based on the regular matching process that can be executed in a circulating manner, the page file referencing the static update resource is determined, and the referencing dependence existing in the page file is determined.
In one or more embodiments provided herein, it may further include:
and responding to an operation instruction of a user aiming at the target page, and displaying the updated page static resource.
Illustratively, after updating the corresponding timestamp in each page file in the reference chain to the latest state, the browser may update the page static resource of the target page based on the timestamp information of the updated page file, and when the user accesses the browser page, the updated page static resource may be obtained.
Fig. 3 is a schematic structural diagram of a device for updating static resources of a page according to an embodiment of the present application, where, as shown in fig. 3, the device includes:
a determining unit 31, configured to determine resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the current version.
The processing unit 32 is configured to perform regular matching processing on the full-volume file of the target page according to the resource information, and determine reference chain information corresponding to the static update resource; the reference chain information comprises file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relationship with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relationship.
And an updating unit 33, configured to update the page static resource of the target page according to the reference chain information.
In one example, the processing unit 32 is specifically configured to:
repeating the following steps until reaching the preset condition:
and carrying out regular matching processing on the full files of the target page according to the resource information, determining page files referencing static update resources in the target page, and determining file information corresponding to the page files.
Determining file information as new resource information, and determining page files corresponding to the file information as new static update resources; and the preset condition is that a page file referencing the static update resource does not exist in the full-quantity file of the target page.
In one example, the processing unit 32 further includes:
a storage subunit, configured to determine and store reference information of each page file for a corresponding static update resource; the reference information comprises a file path of the page file, reference position information of static update resources corresponding to page file references and reference line number information of the static update resources corresponding to page file references.
In one example, the updating unit 33 is specifically configured to:
and according to the reference information corresponding to each piece of file information in the reference chain information, carrying out update processing on the time stamp of the corresponding static update resource in each corresponding page file so as to update the page static resource of the target page.
In one example, the determining unit 31 includes:
the second determining subunit is used for determining version difference information of the target page based on the version control system; the version difference information characterizes change information of the target page during the version updating.
And the third determining subunit is used for determining the static update resource according to the version difference information and determining the resource information corresponding to the static update resource.
In one example, the apparatus further comprises:
and the display unit is used for responding to the operation instruction of the user aiming at the target page and displaying the updated page static resource.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. The modules may be processing elements that are individually set up, may be implemented as integrated in a chip of the above-described apparatus, or may be stored in a memory of the above-described apparatus in the form of program codes, and the functions of the above-described modules may be called and executed by a processing element of the above-described apparatus. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device may include: a processor 41 and a memory 42.
Processor 41 executes computer-executable instructions stored in memory 42, causing processor 41 to perform the aspects of the embodiments described above. The processor 41 may be a general-purpose processor including a central processing unit CPU, a network processor (network processor, NP), and the like; but may also be a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
The memory 42 is connected to the processor 41 via a system bus and communicates with each other, the memory 42 being adapted to store computer program instructions.
The system bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The transceiver is used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). The memory may include random access memory (random access memory, RAM) and may also include non-volatile memory (non-volatile memory).
The embodiment of the application also provides a chip for running the instruction, which is used for executing the technical scheme of the page static resource updating method in the embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer is caused to execute the technical scheme of the page static resource updating method in the embodiment.
The embodiment of the application also provides a computer program product, which comprises a computer program stored in a computer readable storage medium, wherein at least one processor can read the computer program from the computer readable storage medium, and the technical scheme of the page static resource updating method in the embodiment can be realized when the at least one processor executes the computer program.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some steps of the methods of the various embodiments of the present application.
It should be understood that the above processor may be a central processing unit (Central Processing Unit, abbreviated as CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, abbreviated as DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the storage medium may reside as discrete components in an electronic control unit or master control device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for updating a static resource of a page, the method comprising:
determining resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the version;
performing regular matching processing on the full files of the target page according to the resource information, and determining the reference chain information corresponding to the static update resource; the reference chain information is composed of file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relation with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relation;
and updating the page static resource of the target page according to the reference chain information.
2. The method of claim 1, wherein performing regular matching processing on the full-size file of the target page according to the resource information, determining the reference chain information corresponding to the static update resource includes:
repeating the following steps until reaching the preset condition:
performing regular matching processing on the full files of the target page according to the resource information, determining page files referencing the static update resources in the target page, and determining file information corresponding to the page files;
determining the file information as new resource information, and determining the page file corresponding to the file information as new static update resource; and the preset condition is that a page file referencing static update resources does not exist in the full-quantity file of the target page.
3. The method according to claim 2, wherein the method further comprises:
determining and storing reference information of each page file for corresponding static update resources; the reference information comprises a file path of the page file, reference position information of static update resources corresponding to the page file reference and reference line number information of the static update resources corresponding to the page file reference.
4. A method according to claim 3, wherein updating the page static resources of the target page based on the reference chain information comprises:
and according to the reference information corresponding to each piece of file information in the reference chain information, carrying out update processing on the time stamp of the corresponding static update resource in each corresponding page file so as to update the page static resource of the target page.
5. The method of claim 1, wherein determining resource information corresponding to the statically updated resource comprises:
determining version difference information of the target page based on a version control system; the version difference information characterizes the change information of the target page when the version is updated;
and determining the static update resource according to the version difference information, and determining resource information corresponding to the static update resource.
6. The method according to any one of claims 1-5, further comprising:
and responding to an operation instruction of a user aiming at the target page, and displaying the updated page static resource.
7. A page static resource updating apparatus, the apparatus comprising:
the determining unit is used for determining resource information corresponding to the static update resource; the static update resource is a static resource with variation when the target page is updated in the version;
the processing unit is used for carrying out regular matching processing on the full files of the target page according to the resource information and determining the reference chain information corresponding to the static update resource; the reference chain information is composed of file information corresponding to one or more page files in sequence, the page file corresponding to the file information of the first order in the reference chain information has a reference relation with the static update resource, and every two page files corresponding to adjacent file information in the reference chain information have a reference relation;
and the updating unit is used for updating the page static resources of the target page according to the reference chain information.
8. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-6.
9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-6.
CN202311380324.8A 2023-10-23 2023-10-23 Page static resource updating method, device, equipment and storage medium Pending CN117349558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311380324.8A CN117349558A (en) 2023-10-23 2023-10-23 Page static resource updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311380324.8A CN117349558A (en) 2023-10-23 2023-10-23 Page static resource updating method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117349558A true CN117349558A (en) 2024-01-05

Family

ID=89366492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311380324.8A Pending CN117349558A (en) 2023-10-23 2023-10-23 Page static resource updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117349558A (en)

Similar Documents

Publication Publication Date Title
US8126859B2 (en) Updating a local version of a file based on a rule
CN107832062B (en) Program updating method and terminal equipment
CN112817657B (en) Application program starting item loading method, device, system and storage medium
CN115017058B (en) Test method and device of kernel module, electronic equipment and storage medium
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN110377276B (en) Source code file management method and device
CN107609011B (en) Database record maintenance method and device
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
CN114942863A (en) Cascade snapshot processing method, device and equipment and storage medium
CN111857600B (en) Data reading and writing method and device
CN111381905B (en) Program processing method, device and equipment
CN111694580B (en) Method and device for upgrading and initializing storage device and electronic device
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN117349558A (en) Page static resource updating method, device, equipment and storage medium
CN107562533B (en) Data loading processing method and device
CN115269199A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN113722321A (en) Data export method and device and electronic equipment
CN110308933B (en) Access instruction determining method, device and storage medium
CN113722623A (en) Data processing method and device, electronic equipment and storage medium
CN114675995A (en) Data backup method and device and electronic equipment
CN112286572A (en) Configuration method and device of business process
CN112199116A (en) Operand stack register identification method, device, equipment and storage medium
CN111339117A (en) Data processing method, device and equipment

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