CN113971051A - Development method and device based on plug-in and storage medium - Google Patents
Development method and device based on plug-in and storage medium Download PDFInfo
- Publication number
- CN113971051A CN113971051A CN202111137125.5A CN202111137125A CN113971051A CN 113971051 A CN113971051 A CN 113971051A CN 202111137125 A CN202111137125 A CN 202111137125A CN 113971051 A CN113971051 A CN 113971051A
- Authority
- CN
- China
- Prior art keywords
- plug
- target
- data
- software data
- target software
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000011161 development Methods 0.000 title claims abstract description 52
- 230000008569 process Effects 0.000 claims abstract description 25
- 238000012937 correction Methods 0.000 claims description 13
- 238000002347 injection Methods 0.000 claims description 4
- 239000007924 injection Substances 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 abstract description 13
- 239000000243 solution Substances 0.000 description 7
- 230000008901 benefit Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 244000035744 Hura crepitans Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a development method, a device and a storage medium based on a plug-in, comprising the following steps: selecting target software data in a local terminal based on the selected information, wherein at least one piece of software data is stored in the local terminal in advance; judging that the version of the target software data is the latest version, and loading and operating the target software data based on local service; injecting plug-in resources in the data loading and running process of the target software, wherein the plug-in resources comprise a plurality of types of target plug-ins; and developing and configuring the target software data through the target plug-in for the received customization data and/or expansion data. According to the technical scheme provided by the invention, the calling interface can be added in a plug-in mode during hybrid development, so that corresponding elements such as functions, services, resources, pictures and the like can be called during development.
Description
Technical Field
The present invention relates to front-end development technologies, and in particular, to a development method and apparatus based on plug-ins, and a storage medium.
Background
The existing mobile terminal development technology is mainly divided into Native development and common Native front-end hybrid development. Native has the advantage of fast rendering, but the development efficiency is low, development at two ends of iOS and Android is needed, online verification is needed, so that release updating is slow, three-party market verification is relied on, timeliness is poor, and online bug cannot be updated and repaired in time. The mixed development mode of the common native front end, namely front end page is embedded into native development, the development efficiency of the mode is high, but the original js interaction joint debugging is complicated, irregular and non-uniform, the joint debugging needs to consume a large amount of time, and meanwhile, the loading of each page depends on the network and the network transmission speed, so that the rendering is slow, and native devices, such as native cameras, video and audio recording, live broadcast streaming media, GPS positioning, voice recognition, OCR recognition, Bluetooth and the like, cannot be directly used. Resources and pictures cached in a local sandbox and a disk cannot be called, and the webview of the system cannot be directly loaded and displayed through a path.
Disclosure of Invention
The embodiment of the invention provides a development method, a development device and a storage medium based on a plug-in, which can add a calling interface in a plug-in form during hybrid development, so that corresponding elements such as functions, services, resources, pictures and the like can be called during development.
In a first aspect of the embodiments of the present invention, a development method based on a plug-in is provided, including:
selecting target software data in a local terminal based on the selected information, wherein at least one piece of software data is stored in the local terminal in advance;
judging that the version of the target software data is the latest version, and loading and operating the target software data based on local service;
injecting plug-in resources in the data loading and running process of the target software, wherein the plug-in resources comprise a plurality of types of target plug-ins;
and developing and configuring the target software data through the target plug-in for the received customization data and/or expansion data.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
judging whether the version of the target software data is the latest version;
and acquiring the target software data of the latest version at the server side based on a pre-established distributed version control system, and storing the target software data of the latest version to the local terminal.
Optionally, in a possible implementation manner of the first aspect, the developing and configuring, by the target plug-in, the target software data according to the received customization data and/or development data includes:
acquiring all function information of a local terminal, and generating customized data based on all the function information;
and configuring a corresponding target plug-in according to the customization data so that the target plug-in receives the customization data to develop and configure the target software data.
Optionally, in a possible implementation manner of the first aspect, injecting a plug-in resource in the target software data loading and running process, where the plug-in resource includes a plurality of types of target plug-ins, includes:
acquiring key attribute information of the target software data during loading operation;
acquiring target plug-ins corresponding to the key attribute information to generate plug-in resources, wherein each key attribute information corresponds to at least one target plug-in;
and injecting the plug-in resources into the target software data loaded and operated.
Optionally, in a possible implementation manner of the first aspect, injecting a plug-in resource in the target software data loading and running process, where the plug-in resource includes a plurality of types of target plug-ins, includes:
acquiring key attribute information of the target software data;
the preset plug-in determining model determines a corresponding target plug-in to generate a first plug-in set according to the key attribute information;
displaying the first plug-in set, and receiving plug-in correction data input by a user to correct the first plug-in set to obtain a second plug-in set;
generating a plug-in resource based on the second plug-in set.
Optionally, in a possible implementation manner of the first aspect, the determining, by a preset plug-in determination model, a corresponding target plug-in according to the key attribute information to generate a first plug-in set includes:
obtaining all key attribute information to obtain a key attribute set A (a)1,a2,…,an) Wherein a isnThe nth key attribute information;
according to the pre-corresponding relation between the key attribute information and the target plug-in, determining the target plug-in corresponding to each key attribute information to obtain a plug-in set B (B)1,b2,…,bi) Wherein b isiThe target plug-in is the ith target plug-in the plug-in set B;
culling plug-in set B (B)1,b2,…,bi) The repeated target plug-ins obtain a first plug-in set C (C)1,c2,…,cx) Wherein c isxIs the xth plug-in the first plug-in set C.
Optionally, in a possible implementation manner of the first aspect, the receiving plug-in modification data input by a user to modify the first plug-in set into a second plug-in set includes:
the plug-in correction data comprises plug-in adding information and/or plug-in deleting information;
adding information to the first plug-in set C (C) based on the plug-ins1,c2,…,cx) Adding plug-ins and/or deleting plug-ins from the first set of plug-ins C (C)1,c2,…,cx) Deleting the plug-in to obtain a second plug-in set D (D)1,d2,…,dy) Wherein d isyIs the y-th card in the second card set D.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
for the key attribute set A (a)1,a2,…,an) Storing the key attribute set A (a) as an attribute template1,a2,…,an) And said second set of plug-ins D (D)1,d2,…,dy) Associating corresponding settings;
after receiving the key attribute information of the target software data, the plug-in determination model obtains the similarity between the key attribute information of the target software data and each attribute template through the following formula,
wherein S istIs the similarity between the key attribute information of the target software data and the t-th attribute template, m1Is the number of key attribute information, m, that is the same between the target software data and the attribute template2Is the number of target software data, k, in the target software data1As the first modified weight, k2The second correction weight is N is a preset proportional value;
and acquiring a second plug-in set corresponding to the attribute template with the highest similarity to generate plug-in resources.
In a second aspect of the embodiments of the present invention, there is provided a development apparatus based on a plug-in, including:
the selecting module is used for selecting target software data in the local terminal based on the selected information, and at least one piece of software data is stored in the local terminal in advance;
the judging module is used for judging that the version of the target software data is the latest version and loading and operating the target software data based on local service;
the injection module is used for injecting plug-in resources in the data loading and running process of the target software, and the plug-in resources comprise a plurality of types of target plug-ins;
and the development module is used for developing and configuring the target software data through the target plug-in unit for the received customization data and/or the expansion data.
In a third aspect of the embodiments of the present invention, a readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
According to the development method, device and storage medium based on the plug-in, the customized data and the expanded data can be received in the form of setting the plug-in during hybrid development, so that local resources can be added during hybrid development, and the latest resources of software data can be acquired during development. The efficiency of software development is improved, and the advantages of rapid software iteration and high-performance page rendering are achieved.
When the target plug-in is configured, the corresponding plug-in resources can be obtained according to the key attribute information, so that each target software data development can be assisted by the corresponding target plug-in, and the corresponding resources can be obtained according to the corresponding target plug-in, so that the dimensionality of data and resource requirements can be guaranteed during software development. According to the method and the device, statistics can be carried out according to the use of the user, the plug-in assembly is processed, and the attribute template is obtained, so that the second plug-in assembly can be quickly determined through the attribute template, the process of manually confirming the target plug-in assembly is saved, and the software development efficiency is improved.
According to the method, when the attribute template corresponding to the target software data is received according to the plug-in determining model, the quantity of the attribute information in the number of the target software and the quantity of the key attribute information in the attribute template can be fully considered, and the similarity between the target software data and the attribute template is corrected according to the quantity of the attribute information, so that the calculation of the similarity between the target software data and the attribute template is more accurate, and the obtained attribute template is more matched with the target software data because the quantity of the attribute information in the target software data and the attribute template affects the calculation of the similarity.
Drawings
FIG. 1 is a flow diagram of a first embodiment of a plug-in based development method;
FIG. 2 is a flow diagram of a second embodiment of a plug-in based development method;
fig. 3 is a configuration diagram of a first embodiment of a development apparatus based on a plug-in.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
For the interpretation of the English words or abbreviations in the present invention:
webview: webview is an engine based on webkit, can analyze DOM elements and display a control of an html page, has the same principle as a browser for displaying the page, and can be regarded as a browser;
plugin: a plug-in;
apk: the APK is an abbreviation of an Android application package, namely an Android installation package (APK);
js: JavaScript, which is a programming language for the Web;
git: is an open-source distributed version control system for swiftly and efficiently processing any small or large project.
The invention provides a development method based on plug-ins, which is a flow chart shown in figure 1 and comprises the following steps:
step S110, selecting target software data in the local terminal based on the selected information, wherein at least one piece of software data is stored in the local terminal in advance.
In the embodiment of the present invention, a plurality of pieces of basic software data may exist in the local terminal, and in this step, target software data is selected from the plurality of pieces of basic software data. The selected target software data may be a plurality of target software data. Preferably, a plurality of target software data may also exist in the local terminal, and the step may further include: the method comprises the steps of determining selected software data from a plurality of target software data, wherein the selected software data is further selected from the plurality of target software data.
And step S120, judging that the version of the target software data is the latest version, and loading and operating the target software data based on local service. After the target software data is obtained, the version of the target software data can be judged by the invention in various ways, for example, the version of the target software data is determined by the version label of the target software data, or the version of the target software data is determined by the time of initial storage of the target software data. When the version of the target software data selected by the user is determined to be the latest version, the target software data is loaded and operated. The target software data may be software that a user has developed a schedule.
In a possible implementation manner, the development method based on plug-in of the embodiment of the invention may further include: and judging that the version of the target software data is not the latest version. In the actual development process, some target software data at the front end and the local terminal may not be the latest version, and the invention adopts a corresponding processing mode to process the target software data which is not the latest version.
And acquiring the target software data of the latest version at the server side based on a pre-established distributed version control system, and storing the target software data of the latest version to the local terminal. The local terminal can acquire the target software data of the latest version according to the preset distributed version control system, so that the target software data of the latest version continuously exist at the local terminal, and development based on the target software data of the latest version is guaranteed in the software development process.
The development method based on the plug-in provided by the embodiment of the invention can be a data processing method based on the plug-in development.
In order to further realize efficient development based on the plug-in, in the embodiment of the present invention, the local terminal may be a plurality of terminals that locally realize networking communication.
Step S130, plug-in resources are injected in the data loading and running process of the target software, and the plug-in resources comprise target plug-ins of multiple types. The target plug-in the invention can be a platform plug-in, a core plug-in and the like, and the target plug-in can call functions of a camera, video and audio recording, live broadcast streaming media, GPS positioning, voice recognition, OCR recognition, Bluetooth, network and the like during software development.
Step S140, developing and configuring the target software data through the target plug-in for the received customization data and/or expansion data.
Wherein, step S140 includes:
and acquiring all the function information of the local terminal, and generating the customized data based on all the function information.
And configuring a corresponding target plug-in according to the customization data so that the target plug-in receives the customization data to develop and configure the target software data.
In one possible embodiment, as shown in fig. 2, a first embodiment of step S130 includes:
and step S1301, acquiring key attribute information of the target software data during loading operation. The key attribute information may be a common keyword in java.
Step S1302, obtaining target plug-ins corresponding to the key attribute information to generate plug-in resources, wherein each key attribute information corresponds to at least one target plug-in. The method can set the corresponding relation of the target plug-ins according to the common keywords in the java, namely each common keyword corresponds to at least one target plug-in, and different keywords of the java may realize different functions, and different target plug-ins may be needed when different functions are realized. The invention can generate the plug-in resource according to the obtained target plug-in.
And step S1303, injecting the plug-in resource into the target software data loaded and operated. After the corresponding plug-in resources are obtained through the keywords, the plug-in resources are injected into the target software data loaded and operated, so that the software in the development process can call and access the corresponding data and services through the corresponding target plug-in.
In one possible embodiment, the second implementation of step S130 includes:
and acquiring key attribute information of the target software data. In a second embodiment, the key attribute information may be a functional description of the target software data, such as music software, office software, friend-making software, positioning software, and so on.
And the preset plug-in determining model determines a corresponding target plug-in according to the key attribute information to generate a first plug-in set. The production of different types of software may invoke different interfaces, for example music software may require a target plug-in connected to a microphone, a target plug-in connected to a camera, and positioning software may require a target plug-in connected to a GPS, a target plug-in connected to a camera. Therefore, the plug-in determination model in the invention can determine different first plug-in sets according to different key attribute information of different target software data.
And displaying the first plug-in set, and receiving plug-in correction data input by a user to correct the first plug-in set to obtain a second plug-in set. According to the method and the device, the first plug-in set is displayed for the user after the first plug-in set is obtained, the user can judge whether the first plug-in set at the moment meets the corresponding requirements or not according to the actual needed scene, and if the first plug-in set does not meet the corresponding requirements, the user can input plug-in correction data according to the actual scene to correct the first plug-in set, so that the obtained second plug-in set is more suitable for the current use scene.
Generating a plug-in resource based on the second plug-in set. According to the method, after the second plug-in set is obtained, plug-in resources can be obtained according to the plug-in set, through the two steps, firstly, the first plug-in set is obtained by primarily screening the target plug-in through the plug-in determination model, then, the second plug-in set is obtained by accurately screening the first plug-in set through the user, and therefore the plug-in resources formed by the second plug-in set are guaranteed to be more accurate.
In a possible embodiment, the determining, by the preset plug-in determination model, the corresponding target plug-in according to the key attribute information to generate the first plug-in set includes:
obtaining all key attribute information to obtain a key attribute set A (a)1,a2,…,an) Wherein a isnIs the nth key attribute information. In the actual software development process, each piece of software may have many functions, for example, one piece of software has a photographing function and a shooting function, and then the key attribute information includes both photographing and shooting, and at this time, a1Possibly taking a picture, a2It may be a camera.
According to the pre-corresponding relation between the key attribute information and the target plug-in, determining the target plug-in corresponding to each key attribute information to obtain a plug-in set B (B)1,b2,…,bi) Wherein b isiThe ith target plug-in the plug-in set B. When the key attribute information is photographing and shooting, the corresponding target plug-ins at least comprise the target plug-ins calling the camera, and at the moment b1And a1Photographic correspondence of (1), (b)1Possibly including calling a plug-in to the camera, at which point b2And a2Imaging correspondence in (1), b2And may also include calling the target plug-in of the camera, and the invention determines a corresponding plug-in set B according to the key attribute set A.
Culling plug-in set B (B)1,b2,…,bi) The repeated target plug-ins obtain a first plug-in set C (C)1,c2,…,cx) Wherein c isxIs the xth plug-in the first plug-in set C. The invention will clean the target plug-in for plug-in set B, i.e. delete the repeated target plug-ins, for example, plug-in set B (B)1,b2,…,bi) Two target plug-ins for calling the camera may be included, but only one target plug-in for calling the camera is needed to call the camera during software development, so that the method can call repeated targetsAnd deleting the plug-in. The plug-in data amount in the first plug-in set is reduced through the method.
In one possible embodiment, receiving user-entered plug-in modification data to modify the first set of plug-ins to obtain a second set of plug-ins comprises:
the plug-in correction data includes plug-in addition information and/or plug-in deletion information. After viewing the first plug-in set, the user may adjust the target plug-in the first plug-in set, may add part of the target plug-ins to the first plug-in set, and may also delete part of the plug-ins in the first plug-in set, so the plug-in correction data in the present invention may include plug-in addition information and/or plug-in deletion information.
Adding information to the first plug-in set C (C) based on the plug-ins1,c2,…,cx) Adding plug-ins and/or deleting plug-ins from the first set of plug-ins C (C)1,c2,…,cx) Deleting the plug-in to obtain a second plug-in set D (D)1,d2,…,dy) Wherein d isyIs the y-th card in the second card set D. According to the method and the device, the first plug-in assembly is adjusted according to the requirements of the user and the plug-in correction data to obtain the second plug-in assembly, so that the second plug-in assembly better meets the requirements of the user.
In one possible embodiment, the method further comprises:
for the key attribute set A (a)1,a2,…,an) Storing the key attribute set A (a) as an attribute template1,a2,…,an) And said second set of plug-ins D (D)1,d2,…,dy) And associating the corresponding settings. The second plug-in assembly is obtained by combining the plug-in assembly determination model and the active selection of the user, so that the similarity and the coincidence degree of the target plug-in assembly required by the target software data similar to the attribute template can be higher than those of the target plug-in assembly in the second plug-in assembly. The invention will therefore derive attribute templates from the set of key attributes, each attribute template will have associated with itA unique corresponding second set of plug-ins.
After receiving the key attribute information of the target software data, the plug-in determination model obtains the similarity between the key attribute information of the target software data and each attribute template through the following formula,
wherein S istIs the similarity between the key attribute information of the target software data and the t-th attribute template, m1Is the number of key attribute information, m, that is the same between the target software data and the attribute template2Is the number of target software data, k, in the target software data1As the first modified weight, k2And N is a preset proportion value for the second correction weight.
The invention can pass the similarity calculation between the target software data and the attribute templateThe proportion of the same key attribute information between the target software data and the attribute template is determined, and then the proportion of the same key attribute information between the target software data and the attribute template is corrected according to the quantity of the respective key attribute information, so that the situation that the similarity is wrong when more or less key attribute information exists in some target software data and attribute templates is avoided, and the calculation error of the similarity caused by accidental factors is avoided.
And acquiring a second plug-in set corresponding to the attribute template with the highest similarity to generate plug-in resources. According to the method, the target software data and each attribute template are compared in similarity respectively, and after the attribute template with the highest similarity is obtained, the second plug-in assembly corresponding to the attribute template (with the highest similarity) is called to generate the plug-in assembly resource, so that the generation efficiency of the second plug-in assembly and the determination efficiency of the plug-in assembly resource are improved.
The technical scheme of the invention realizes a set of mobile terminal mixing mode and framework, and has the advantages of rapid development and iteration, high-performance page rendering, multi-terminal support by a set of scheme and framework, and the like. The technical scheme provided by the invention is safer, the core Js are injected through plug-ins during operation, and the core pluggable plug-ins are arranged in Ipa and Apk and encrypted.
The technical scheme of the invention is mainly that resources generated by packaging a front end are required to be placed on a unique Git, a client side judges content versions through an initial interface and downloads and stores the content versions to the local if the content versions are updated, the local can self-establish a set of services for the local starting services to deploy the front end resources through technical means after the client side is started, a user can directly access each page without depending on a network after deployment, the remote end access is fast, meanwhile, the problems that the local directly accessed resources cannot be displayed and streaming media cannot be played are solved, compared with the remote network, the local self-establishment service of the invention is fast, the client side can perform keyword interception Hook injection into core original Js of the user after requesting a webpage, and then can perform interactive processing on each operation requirement of the user by matching with plug-in of the client side, and the mode is used for preventing the core Js from being exposed and preventing malicious attack by other people, all contents in the invention can be used only by matching the core Js and the native Plugin in a set, and the unique Plugin can be customized and expanded in the using process.
The invention also provides a development device based on plug-in, as shown in fig. 3, which has a schematic structural diagram, including:
the selecting module is used for selecting target software data in the local terminal based on the selected information, and at least one piece of software data is stored in the local terminal in advance;
the judging module is used for judging that the version of the target software data is the latest version and loading and operating the target software data based on local service;
the injection module is used for injecting plug-in resources in the data loading and running process of the target software, and the plug-in resources comprise a plurality of types of target plug-ins;
and the development module is used for developing and configuring the target software data through the target plug-in unit for the received customization data and/or the expansion data.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (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, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A development method based on plug-ins is characterized by comprising the following steps:
selecting target software data in a local terminal based on the selected information, wherein at least one piece of software data is stored in the local terminal in advance;
judging that the version of the target software data is the latest version, and loading and operating the target software data based on local service;
injecting plug-in resources in the data loading and running process of the target software, wherein the plug-in resources comprise a plurality of types of target plug-ins;
and developing and configuring the target software data through the target plug-in for the received customization data and/or expansion data.
2. The plug-in based development method of claim 1, further comprising:
judging whether the version of the target software data is the latest version;
and acquiring the target software data of the latest version at the server side based on a pre-established distributed version control system, and storing the target software data of the latest version to the local terminal.
3. The plug-in based development method of claim 1,
the developing and configuring of the target software data through the target plug-in unit to the received customization data and/or the expansion data comprises the following steps:
acquiring all function information of a local terminal, and generating customized data based on all the function information;
and configuring a corresponding target plug-in according to the customization data so that the target plug-in receives the customization data to develop and configure the target software data.
4. The plug-in based development method of claim 1,
injecting plug-in resources in the target software data loading and running process, wherein the plug-in resources comprise a plurality of types of target plug-ins and comprise:
acquiring key attribute information of the target software data during loading operation;
acquiring target plug-ins corresponding to the key attribute information to generate plug-in resources, wherein each key attribute information corresponds to at least one target plug-in;
and injecting the plug-in resources into the target software data loaded and operated.
5. The plug-in based development method of claim 1,
injecting plug-in resources in the target software data loading and running process, wherein the plug-in resources comprise a plurality of types of target plug-ins and comprise:
acquiring key attribute information of the target software data;
the preset plug-in determining model determines a corresponding target plug-in to generate a first plug-in set according to the key attribute information;
displaying the first plug-in set, and receiving plug-in correction data input by a user to correct the first plug-in set to obtain a second plug-in set;
generating a plug-in resource based on the second plug-in set.
6. The plug-in based development method of claim 5,
the step that the preset plug-in determining model determines the corresponding target plug-in to generate the first plug-in set according to the key attribute information comprises the following steps:
obtaining all key attribute information to obtain a key attribute set A (a)1,a2,...,an) Wherein a isnThe nth key attribute information;
according to the pre-corresponding relation between the key attribute information and the target plug-in, determining the target plug-in corresponding to each key attribute information to obtain a plug-in set B (B)1,b2,...,bi) Wherein b isiThe target plug-in is the ith target plug-in the plug-in set B;
culling plug-in set B (B)1,b2,...,bi) The repeated target plug-ins obtain a first plug-in set C (C)1,c2,...,cx) Wherein c isxIs the xth plug-in the first plug-in set C.
7. The plug-in based development method of claim 6,
receiving plug-in correction data input by a user to correct the first plug-in set to obtain a second plug-in set comprises the following steps:
the plug-in correction data comprises plug-in adding information and/or plug-in deleting information;
adding information to the first plug-in set C (C) based on the plug-ins1,c2,...,cx) Adding plug-ins and/or deleting plug-ins from the first set of plug-ins C (C)1,c2,...,cx) Deleting the plug-in to obtain a second plug-in set D (D)1,d2,...,dy) Wherein d isyIs the y-th card in the second card set D.
8. The plug-in based development method of claim 7, further comprising:
for the key attribute set A (a)1,a2,...,an) Storing the key attribute set A (a) as an attribute template1,a2,...,an) And said second set of plug-ins D (D)1,d2,...,dy) Associating corresponding settings;
after receiving the key attribute information of the target software data, the plug-in determination model obtains the similarity between the key attribute information of the target software data and each attribute template through the following formula,
wherein S istIs the similarity between the key attribute information of the target software data and the t-th attribute template, m1Is the number of key attribute information, m, that is the same between the target software data and the attribute template2Is the number of target software data, k, in the target software data1As the first modified weight, k2The second correction weight is N is a preset proportional value;
and acquiring a second plug-in set corresponding to the attribute template with the highest similarity to generate plug-in resources.
9. A plug-in based development apparatus, comprising:
the selecting module is used for selecting target software data in the local terminal based on the selected information, and at least one piece of software data is stored in the local terminal in advance;
the judging module is used for judging that the version of the target software data is the latest version and loading and operating the target software data based on local service;
the injection module is used for injecting plug-in resources in the data loading and running process of the target software, and the plug-in resources comprise a plurality of types of target plug-ins;
and the development module is used for developing and configuring the target software data through the target plug-in unit for the received customization data and/or the expansion data.
10. A readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111137125.5A CN113971051B (en) | 2021-09-27 | 2021-09-27 | Plug-in based development method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111137125.5A CN113971051B (en) | 2021-09-27 | 2021-09-27 | Plug-in based development method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113971051A true CN113971051A (en) | 2022-01-25 |
CN113971051B CN113971051B (en) | 2024-03-15 |
Family
ID=79587337
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111137125.5A Active CN113971051B (en) | 2021-09-27 | 2021-09-27 | Plug-in based development method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113971051B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083340A (en) * | 2019-03-19 | 2019-08-02 | 深圳壹账通智能科技有限公司 | Code generating method, device, computer equipment and storage medium |
CN113360214A (en) * | 2021-06-30 | 2021-09-07 | 展讯通信(天津)有限公司 | Dynamic plugging method and system for application program functional module |
-
2021
- 2021-09-27 CN CN202111137125.5A patent/CN113971051B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083340A (en) * | 2019-03-19 | 2019-08-02 | 深圳壹账通智能科技有限公司 | Code generating method, device, computer equipment and storage medium |
CN113360214A (en) * | 2021-06-30 | 2021-09-07 | 展讯通信(天津)有限公司 | Dynamic plugging method and system for application program functional module |
Also Published As
Publication number | Publication date |
---|---|
CN113971051B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8943164B2 (en) | Apparatus and methods for retrieving/ downloading content on a communication device | |
CN110012217B (en) | Method and device for determining acquisition resolution and electronic equipment | |
US10496696B2 (en) | Search method and apparatus | |
CN113076504B (en) | Skeleton screen generation method, device, equipment and storage medium | |
US10902049B2 (en) | System and method for assigning multimedia content elements to users | |
CN111246289A (en) | Video generation method and device, electronic equipment and storage medium | |
CN113763211A (en) | Infringement detection method and device based on block chain and electronic equipment | |
CN110083768B (en) | Information sharing method, device, equipment and medium | |
CN109558553B (en) | Method and device for determining style | |
CN110442407B (en) | Application program processing method and device | |
CN114489603A (en) | Code generation method, apparatus, electronic device, medium, and product | |
CN113419898A (en) | File bailing method, device, equipment, storage medium and program product | |
WO2024001802A1 (en) | Image processing method and apparatus, and electronic device and storage medium | |
CN117459662A (en) | Video playing method, video identifying method, video playing device, video playing equipment and storage medium | |
CN113971051B (en) | Plug-in based development method, device and storage medium | |
CN110928603A (en) | Service providing method and device | |
CN114339628B (en) | 5G rich media message sending method, equipment, storage medium and product | |
CN115329181A (en) | Information query method, query server and client | |
CN116309964A (en) | Video generation method, device, equipment and storage medium | |
CN107222559B (en) | Information calling method | |
CN112579960A (en) | Webpage evidence obtaining method, webpage evidence obtaining device and server | |
CN112988170B (en) | Application display method and device | |
CN114741274B (en) | Abnormality testing method and device | |
CN109361730A (en) | Card information acquisition methods, system and Cloud Server based on face | |
CN116994380B (en) | Information interaction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |