Framework data reference method, device and computer readable storage medium
By detecting the content to be updated in the public framework directory and updating the corresponding framework path information, the problem of version confusion caused by public framework data updates in the APP project is solved, and the reference stability of the framework data is improved.
Patent Information
- Application Number
- CN202011643952.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In an APP project, when the public framework data is updated, all light applications that reference the framework need to be updated, causing version confusion.
By detecting the content to be updated in the public framework directory of the project, add the first framework corresponding to the version number, and change the path information of the second framework currently referenced by the target light application to the path information of the first framework, ensuring that only those that need to be updated Light applications reference the new framework to avoid version confusion.
This effectively prevents version confusion caused by applications other than target light applications referencing the new framework, and improves the reference stability of framework data.
Smart Images

Figure CN112667283B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a framework data citation method, device and computer-readable storage medium. Background Art
[0002] There is a scenario where an APP project carries a large number of businesses, each of which is a light application. Each light application will reference framework data, and when the public framework data in the project is updated, all light applications that reference the new framework must be updated, which can easily lead to version confusion. Summary of the invention
[0003] The embodiments of the present invention provide a framework data reference method, device and computer-readable storage medium to solve the technical problem that when the public framework data in a project is updated, the frameworks of all lightweight applications that reference it are updated, which easily leads to version confusion.
[0004] An embodiment of the present invention provides a method for quoting framework data, and the method for quoting framework data includes:
[0005] Check the target framework in the public framework directory of the project for updates;
[0006] When the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, where the first framework corresponds to the target framework;
[0007] Determine a target light application to be referenced by the first framework;
[0008] The path information of the second framework currently referenced by the target light application is changed to the path information of the first framework.
[0009] In one embodiment, the step of adding a first framework corresponding to the version number in the public framework directory includes:
[0010] Backing up the target framework in the public framework directory to obtain a third framework;
[0011] updating the third frame according to the content to be updated to obtain the first frame;
[0012] Add the first framework to the public framework directory.
[0013] In one embodiment, after the step of detecting the content to be updated of the target framework in the public framework directory of the project, the method further includes:
[0014] When the content to be updated does not include a version number, the target framework is updated according to the update content.
[0015] In one embodiment, before the step of detecting the content to be updated of the target framework in the public framework directory of the project, the method further includes:
[0016] The framework data referenced by the light application of the project is extracted to a preset directory and deduplicated to obtain the public framework directory.
[0017] In one embodiment, the step of determining a target light application to be referenced by the first framework includes:
[0018] A target light application of the first framework is determined according to a version number corresponding to the first framework.
[0019] In one embodiment, the step of determining the target light application of the first framework according to the version number corresponding to the first framework includes:
[0020] Obtaining a preset reference identifier associated with a version number corresponding to the first framework;
[0021] The light application in the project that carries the preset reference identifier is used as the target light application.
[0022] In one embodiment, before the step of obtaining the preset reference identifier associated with the version number corresponding to the first framework, the method further includes:
[0023] When receiving the reference instruction, the light application corresponding to the reference instruction is determined in the project and the preset reference identifier is added, and the reference instruction includes light application information that requires the project to reference the first framework.
[0024] In one embodiment, the step of changing the path information of the second framework currently referenced by the target light application to the path information of the first framework includes:
[0025] A target page corresponding to the target light application is obtained, and path information of the second frame is changed to path information of the first frame in the target page.
[0026] An embodiment of the present invention also provides a framework data referencing device, which includes: a memory, a processor, and a framework data referencing program stored in the memory and executable on the processor, wherein the processor implements the various steps of the framework data referencing method described above when executing the framework data referencing program.
[0027] An embodiment of the present invention further provides a computer-readable storage medium, on which a framework data reference program is stored. When the framework data reference program is executed by a processor, each step of the framework data reference method described above is implemented.
[0028] In the technical solution of this embodiment, the framework data reference device detects the content to be updated of the target framework in the public framework directory of the project; when the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, and the first framework corresponds to the target framework; the target light application to reference the first framework is determined; and the path information of the second framework currently referenced by the target light application is changed to the path information of the first framework. Since the target light application to reference the new framework is determined based on the content to be updated, and then the new framework is added and referenced for it in a targeted manner, the version confusion problem caused by applications other than the target light application referencing the new framework can be effectively prevented, thereby improving the reference stability of the framework data. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 A schematic diagram of the hardware architecture of a device for referencing framework data involved in an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for citing framework data of the present invention;
[0032] Figure 2A A reference diagram of a first embodiment of a method for citing framework data of the present invention;
[0033] Figure 3 A schematic diagram of a flow chart of a second embodiment of a method for citing framework data of the present invention;
[0034] Figure 4 A schematic flow chart of a third embodiment of a method for citing framework data of the present invention;
[0035] Figure 5 A schematic flow chart of a fourth embodiment of a method for citing framework data of the present invention;
[0036] Figure 6 A schematic flow chart of a fifth embodiment of a method for citing framework data of the present invention;
[0037] Figure 7 A schematic flow chart of a sixth embodiment of a method for citing framework data of the present invention;
[0038] Figure 8A schematic flow chart of a seventh embodiment of a method for citing framework data of the present invention;
[0039] Fig. 9 Schematic diagram of the flow chart of the eighth embodiment of the framework data citation method of the present invention. DETAILED DESCRIPTION
[0040] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0041] The main solution of the present invention is: the framework data referencing device detects the content to be updated of the target framework in the public framework directory of the project; when the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, and the first framework corresponds to the target framework; the target light application to reference the first framework is determined; and the path information of the second framework currently referenced by the target light application is changed to the path information of the first framework.
[0042] Since the target light application to reference the new framework is determined based on the content to be updated, and the new framework is then added and referenced in a targeted manner, version confusion caused by applications other than the target light application referencing the new framework can be effectively prevented, thereby improving the reference stability of the framework data.
[0043] As an implementation method, the reference device of the framework data can be as follows Figure 1 .
[0044] The embodiment of the present invention relates to a framework data reference device, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.
[0045] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 , the memory 103 as a computer storage medium may include a detection program; and the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0046] Check the target framework in the public framework directory of the project for updates;
[0047] When the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, where the first framework corresponds to the target framework;
[0048] Determine a target light application to be referenced by the first framework;
[0049] The path information of the second framework currently referenced by the target light application is changed to the path information of the first framework.
[0050] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0051] Backing up the target framework in the public framework directory to obtain a third framework;
[0052] updating the third frame according to the content to be updated to obtain the first frame;
[0053] Add the first framework to the public framework directory.
[0054] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0055] When the content to be updated does not include a version number, the target framework is updated according to the update content.
[0056] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0057] The framework data referenced by the light application of the project is extracted to a preset directory and deduplicated to obtain the public framework directory.
[0058] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0059] A target light application of the first framework is determined according to a version number corresponding to the first framework.
[0060] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0061] Obtaining a preset reference identifier associated with a version number corresponding to the first framework;
[0062] The light application in the project that carries the preset reference identifier is used as the target light application.
[0063] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0064] When receiving the reference instruction, the light application corresponding to the reference instruction is determined in the project and the preset reference identifier is added, and the reference instruction includes light application information that requires the project to reference the first framework.
[0065] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0066] A target page corresponding to the target light application is obtained, and path information of the second frame is changed to path information of the first frame in the target page.
[0067] In the technical solution of this embodiment, the framework data reference device detects the content to be updated of the target framework in the public framework directory of the project; when the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, and the first framework corresponds to the target framework; the target light application to reference the first framework is determined; and the path information of the second framework currently referenced by the target light application is changed to the path information of the first framework. Since the target light application to reference the new framework is determined based on the content to be updated, and then the new framework is added and referenced for it in a targeted manner, the version confusion problem caused by applications other than the target light application referencing the new framework can be effectively prevented, thereby improving the reference stability of the framework data.
[0068] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0069] Reference Figure 2 , Figure 2 The first embodiment of the framework data citation method of the present invention comprises the following steps:
[0070] Step S10, detecting the content to be updated of the target framework in the public framework directory of the project.
[0071] In this embodiment, for the above-mentioned project, it can be generated through a hybrid mode. Specifically, the hybrid mode is a development mode between the native mode and the web mode. The application developed in the hybrid mode has both the good interactive experience of the native application and the advantage of cross-platform development of the web application. Most mobile applications (projects) on the market today use a hybrid mode to a greater or lesser extent, and light applications developed by H5 can be embedded in the project. For the offline loading method of light applications, for example, static resources are downloaded to the project in advance, and they are directly loaded locally when the light application is used. This method can make the light application have a better response speed, have obvious advantages under weak network conditions, and be more widely used. Furthermore, a project carries a large number of businesses, and each business is a light application. We found that when developing light applications using the offline loading method, when the number of light applications reaches a certain level, the static resource files downloaded locally will also occupy a large storage space, and there are many common codes between light applications and the volume is not small, such as third-party libraries, self-developed libraries, etc. In this embodiment, the common code referenced between the above-mentioned light applications (for example, the above-mentioned framework) is extracted into a directory to obtain the above-mentioned public framework directory. However, when the public framework directory is updated, all light applications need to be updated, which often results in a longer download time.
[0072] Optionally, the framework data includes a Javascript framework, which refers to a programming framework built on the basis of the Javascript language.
[0073] Specifically, the content to be updated includes the code or version number of the target framework in the public framework. When the version number of the target framework is updated, it means that the light application that references it must change the reference path, otherwise the new version of the framework cannot be used.
[0074] Step S20, when the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, and the first framework corresponds to the target framework.
[0075] In this embodiment, when the version number of the above-mentioned target framework is updated, the original target framework is retained, and the updated target framework is added to the public framework directory to obtain a new framework, that is, the above-mentioned first framework. Optionally, for the update type of the content to be updated, when the user edits the framework data but does not change the file name corresponding to the framework data, and when the file name corresponding to the framework data changes, it can be considered that the version number has also changed.
[0076] Step S30: determining a target light application to be referenced by the first framework.
[0077] In this embodiment, after obtaining the above-mentioned first framework, a target light application to reference the second framework is further determined.
[0078] Optionally, the target light application to be updated may be selected based on user customization, for example, the user inputs an instruction representing the update target, and the framework data reference device determines the target light application based on the instruction.
[0079] Step S40: Change the path information of the second framework currently referenced by the target light application to the path information of the first framework.
[0080] In this embodiment, the framework data referencing device changes the path information of the second framework currently referenced by the target light application to the path information of the first framework.
[0081] Optionally, when the first framework is added to the public framework directory based on the second framework, the reference device of the framework data can directly update the path information of the second framework according to the updated version number, so as to change the path information of the second framework currently referenced by the target light application to the path information of the first framework, because the path information of the second framework and the first framework only differ by a version number. For example, when the reference path of the second framework is "arc / common / element1.0" and the reference path of the first framework is "arc / common / element1.1", the "1.0" in "arc / common / element1.0" can be changed to "1.1". For details, please refer to Figure 2A The directory structure of the public framework directory in .
[0082] In the technical solution of this embodiment, since the target light application to reference the new framework is determined according to the content to be updated, and then the new framework is added and referenced for it in a targeted manner, it can effectively prevent version confusion caused by applications other than the target light application referencing the new framework, and improve the reference stability of the framework data.
[0083] Reference Figure 3 , Figure 3 This is a second embodiment of the framework data citation method of the present invention. Based on the first embodiment, step S20 includes:
[0084] Step S21, backing up the target framework in the public framework directory to obtain a third framework.
[0085] In this embodiment, the third framework is obtained by copying from the public framework directory.
[0086] Step S22: updating the third frame according to the content to be updated to obtain the first frame.
[0087] In this embodiment, the content in the third frame is updated according to the code in the content to be updated, and the file name of the third frame is updated according to the version number in the content to be updated, so as to obtain the first frame.
[0088] Step S23: adding the first framework to the public framework directory.
[0089] In this embodiment, there are many light applications in actual projects, and light applications may be developed and maintained by different teams. If the framework in the public framework directory has been upgraded, and if the externally exposed interface (path information) of the updated framework has not changed, then only the framework content needs to be updated, and the light applications that reference it do not need to be changed. However, sometimes the framework in the public framework directory will be upgraded, and the externally exposed interface will also change, but not all light applications that reference the framework have strong upgrade requirements or the upgrade time is not aligned, resulting in no targeted transformation. At this time, if the updated framework is released directly, these unmodified light applications will become unavailable. To this end, we introduce version management in the public framework directory, so that each version of the library exists in the public framework directory, which allows each light application to be upgraded on demand to ensure that the existing business will not be negatively affected by the framework version upgrade.
[0090] In the technical solution of this embodiment, since not all light applications that reference the first framework have strong upgrade requirements or the upgrade time is not aligned, resulting in no targeted updates, if the guild is directly released at this time, these light applications that have not been updated will be unavailable. Therefore, through the above technical solution, the first framework can be added while retaining the target framework, and then the target light application can be targeted to reference the first framework.
[0091] Reference Figure 4 , Figure 4 The third embodiment of the framework data citation method of the present invention is based on the first or second embodiment, and after step S10, further includes:
[0092] Step S50: when the content to be updated does not include a version number, update the target framework according to the update content.
[0093] In this embodiment, when the content to be updated does not include a version number, it means that only the content of the target framework has changed (for example, the user only edited the code and did not change the file name). When the content changes, the reference path of the target light application that references the target framework does not need to be changed and can be successfully referenced. Therefore, when it is detected that the updated content does not include a version number, there is no need to add a first framework based on the target framework in the public framework directory.
[0094] In the technical solution of this embodiment, whether to add a new first frame to the public frame directory can be determined by the type of content to be updated. When it is detected that the content to be updated does not include a version number, the waste of computing power caused by adding the new first frame can be prevented in time.
[0095] Reference Figure 5 , Figure 5 The fourth embodiment of the framework data citation method of the present invention is based on any one of the first to third embodiments, and before step S10, further includes:
[0096] Step S60, extracting the framework data referenced by the light application of the project into a preset directory and removing duplications to obtain the public framework directory.
[0097] In this embodiment, taking the Vue front-end project created by the Vue-cli scaffolding as an example, the same framework will be introduced in each project, and will eventually be compiled and packaged into each light application, which will lead to the problem of repeated packaging. If all light applications can ignore these libraries when packaging, but can directly introduce the libraries for use at runtime, the above-mentioned problem of repeated packaging can be solved. Therefore, for the formation of a public framework directory, the frameworks stored in the directory of each light application can be extracted to the above-mentioned public framework directory. At this time, there are naturally duplicate frameworks in the public framework directory, so deduplication can be performed based on the frameworks in the public framework directory.
[0098] Optionally, the above framework is a js file, otherwise it cannot be statically introduced in the light application. Other light applications need to use the framework in the public framework directory and can be directly introduced through the file path in the corresponding page.
[0099] In the technical solution of this embodiment, duplicate frameworks in a project are deduplicated, which can reduce the storage space occupied by the project, and the public framework directory can be operated uniformly during updating.
[0100] Reference Figure 6 , Figure 6 The fifth embodiment of the framework data citation method of the present invention is based on any one of the first to fourth embodiments, and step S30 includes:
[0101] Step S31, determining a target light application of the first framework according to a version number corresponding to the first framework.
[0102] In this embodiment, when the framework in the public framework directory is updated, not all light applications need to reference the updated framework. Therefore, the target light application can be determined by the association between the version number carried by the first framework and the target light application.
[0103] In the technical solution of this embodiment, by assigning a version number, the target light application that needs to be updated can reference the new version of the first framework, and the light application that does not need to reference the first framework can be prevented from continuing to reference the target framework, thereby improving the stability of the reference to the framework data.
[0104] Reference Figure 7 , Figure 7 This is the sixth embodiment of the framework data citation method of the present invention, based on any one of the first to fifth embodiments, step S31 includes:
[0105] Step S311, obtaining a preset reference identifier associated with the version number corresponding to the first framework.
[0106] In this embodiment, the above-mentioned preset reference identifier is associated with the version number.
[0107] Optionally, the preset reference identifier may be used to identify the light app that needs to be updated selected by the user.
[0108] Step S312: taking the light application in the project that carries the preset reference identifier as the target light application.
[0109] In the technical solution of this embodiment, the light application is associated with the version number of the first framework through a preset identifier. When an update is required, the target light application carrying the preset reference identifier is found to change the path information.
[0110] Reference Figure 8 , Figure 8 The seventh embodiment of the framework data citation method of the present invention is based on any one of the first to sixth embodiments, and before step S311, further includes:
[0111] Step S313, when receiving the reference instruction, determining the light application corresponding to the reference instruction in the project and adding the preset reference identifier, the reference instruction includes the light application information that requires the project to reference the first framework.
[0112] In this embodiment, when the framework data referencing device detects that the user has selected a light app to be updated, it triggers a reference instruction, and then determines the associated target light app according to the light app information carried in the reference instruction.
[0113] Optionally, when the user has finished editing the content to be updated and the content to be updated includes a version number, a selection box will pop up for the user to select the light application to be updated, thereby triggering the above-mentioned reference instruction.
[0114] In the technical solution of this embodiment, the target light application can be determined and updated according to the user's selection, without the user having to go deep into the light application to change the reference path information, thereby improving the reference flexibility of the framework data.
[0115] Reference Fig. 9 , Fig. 9 This is the eighth embodiment of the framework data citation method of the present invention, based on any one of the first to seventh embodiments, step S40 includes:
[0116] Step S41, obtaining a target page corresponding to the target light application, and changing the path information of the second frame to the path information of the first frame in the target page.
[0117] In this embodiment, the target page refers to the code page of the target light application, and optionally includes an h5 page. The reference of the first frame can be achieved by directly changing the path information of the second frame referenced in the h5 page to the path information of the first frame. It is easy to understand that this step imitates the operation of manually modifying the code, and realizes the change of the path information of the referenced frames of batch target light applications.
[0118] In the technical solution of this embodiment, since the path information in the page is directly changed, it is equivalent to replacing the manual change of the path information of the target light application one by one, which improves the reference efficiency of the framework and appears to be more intelligent.
[0119] To achieve the above-mentioned purpose, an embodiment of the present invention further provides a framework data reference device, which includes: a memory, a processor, and a framework data reference program stored in the memory and executable on the processor, and when the processor executes the framework data reference program, it implements the various steps of the framework data reference method described above.
[0120] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, on which a framework data reference program is stored, and when the framework data reference program is executed by a processor, the various steps of the framework data reference method described above are implemented.
[0121] The present invention implements a performance optimization solution when a large number of light applications are installed and updated. When there are a large number of light applications in an App, the public resources are separated to form independent light applications for sharing by other light applications. At the same time, a multi-version mechanism is designed to solve the version confusion problem when the public resource versions required by other light applications are inconsistent. This not only reduces the static resource storage space downloaded by light applications to the local App, but also avoids the update storm caused by the update of public resources, which greatly improves the user experience.
[0122] Those skilled in the art will appreciate that embodiments of the present invention may be provided as reference program products of methods, systems, or framework data. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a reference program product of framework data implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0123] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and reference program products of framework data according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by reference program instructions of the framework data. The reference program instructions of these framework data can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0124] The referenced program instructions of these framework data may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0125] The referenced program instructions of these framework data can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0126] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0127] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0128] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for citing framework data, It is characterized in that The reference methods of the framework data include: Embed a light application in a project, wherein the light application pre-downloads static resources into the project by offline loading, and loads them locally when the light application is used; Extract the framework data referenced by the light application of the project to a preset directory and remove duplication to obtain a public framework directory of the project; Detect the content to be updated in the target framework in the public framework directory; When the content to be updated includes a version number, a first framework corresponding to the version number is added to the public framework directory, where the first framework corresponds to the target framework; Upon receiving a reference instruction, determining a light application corresponding to the reference instruction in the project and adding a preset reference identifier, wherein the reference instruction includes light application information that references the first framework in the project; Obtaining a preset reference identifier associated with a version number corresponding to the first framework; Using the light application in the project that carries the preset reference identifier as the target light application; The path information of the second framework currently referenced by the target light application is changed to the path information of the first framework.
2. The method for quoting framework data as claimed in claim 1, It is characterized in that The step of adding a first framework corresponding to the version number to the public framework directory includes: Backing up the target framework in the public framework directory to obtain a third framework; updating the third frame according to the content to be updated to obtain the first frame; Add the first framework to the public framework directory.
3. The method for quoting framework data according to claim 1, It is characterized in that After the step of detecting the content to be updated of the target framework in the public framework directory, the method further includes: When the content to be updated does not include a version number, the target framework is updated according to the update content.
4. The method for quoting framework data according to claim 1, It is characterized in that The step of changing the path information of the second framework currently referenced by the target light application to the path information of the first framework includes: A target page corresponding to the target light application is obtained, and path information of the second frame is changed to path information of the first frame in the target page.
5. A reference device for framework data, It is characterized in that The framework data referencing device comprises: a memory, a processor, and a framework data referencing program stored in the memory and executable on the processor, wherein the processor implements the steps of the framework data referencing method as described in any one of claims 1 to 4 when executing the framework data referencing program.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a framework data referencing program, and when the framework data referencing program is executed by a processor, the steps of the framework data referencing method according to any one of claims 1 to 4 are implemented.
