CN109800020A - A kind of code automatic adjusting method, device, equipment and the medium of program development - Google Patents
A kind of code automatic adjusting method, device, equipment and the medium of program development Download PDFInfo
- Publication number
- CN109800020A CN109800020A CN201910107623.1A CN201910107623A CN109800020A CN 109800020 A CN109800020 A CN 109800020A CN 201910107623 A CN201910107623 A CN 201910107623A CN 109800020 A CN109800020 A CN 109800020A
- Authority
- CN
- China
- Prior art keywords
- program
- small routine
- program development
- development tools
- adjustable strategies
- 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
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the present disclosure discloses code automatic adjusting method, device, terminal device and the storage medium of a kind of program development.This method is included in small routine development process, the adjustable strategies of program development tools are determined according to preset rules, it according to the adjustable strategies, is handled using program development tools program has been developed, so that environment program is supported by program development tools treated small routine.In small routine development process, the developed program of small routine is handled according to adjustable strategies by program development tools, while so that environment program is supported by program switch tool treated small routine, small routine is able to use program development tools, reduce the complexity in small routine development process, the operation difficulty for reducing program developer simultaneously, improves the development efficiency of small routine.
Description
Technical field
The embodiment of the present disclosure is related to the code adjust automatically side of computer software technology more particularly to a kind of program development
Method, device, equipment and medium.
Background technique
With the popularization of intelligent terminals, the application software (APP) of various functions gradually increases, and the function of application software
Also in lasting upgrading update.APP client usually requires user and downloads software to terminal, and installs, and then runs.In order to
Different functional requirements is adapted to, has also appeared small routine at present.The characteristics of small routine be can be realized certain business function, but
Small routine does not need the independent software of user's downloading and reuses to local, installation.Small routine is usually with some APP client
Or some application software in terminal, it is realized as operation platform, the application software of support small routine operation is denoted as environment
Program.Such as the small routine of wechat is realized using wechat client as operation platform, wechat client is the small of wechat
The environment program of program.The developer of small routine completes to develop by each page of displaying needed for exploitation small routine.
Since small routine is to support operation by environment program, so environment program also just constrains opening for small routine
Hair, especially some software tools are not available, and cannot be used mature developing instrument, be limited the operation of program developer,
Reduce program development efficiency.
Summary of the invention
The embodiment of the present disclosure provides code automatic adjusting method, device, equipment and the medium of a kind of program development, so that
Small routine is able to use some program development tools, and is still compatible with environment program, can operate normally.
In a first aspect, the embodiment of the present disclosure provides a kind of code automatic adjusting method of program development, the method packet
It includes:
In small routine development process, the adjustable strategies of program development tools are determined according to preset rules;
It according to the adjustable strategies, is handled using program development tools program has been developed, so that environment program branch
It holds by program development tools treated small routine.
Second aspect, the embodiment of the present disclosure additionally provide a kind of code automatic regulating apparatus of program development, comprising:
Adjustable strategies determining module, for determining program development tools according to preset rules in small routine development process
Adjustable strategies;
Processing module, for being handled program has been developed using program development tools according to the adjustable strategies, with
Support environment program by program development tools treated small routine.
The third aspect, the embodiment of the present disclosure additionally provide a kind of terminal device, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the code automatic adjusting method such as the arbitrary program development of embodiment of the present disclosure first aspect.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes that the code such as the arbitrary program development of embodiment of the present disclosure first aspect is adjusted automatically when the program is executed by processor
Adjusting method.
Technical solution provided by the embodiment of the present disclosure, in small routine development process, by program development tools according to
Adjustable strategies handle the developed program of small routine, so that environment program supports that treated by program switch tool
While small routine, small routine is able to use program development tools, reduces the complexity in small routine development process, drops simultaneously
The low operation difficulty of program developer, improves the development efficiency of small routine.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this public affairs
The some embodiments opened for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the code automatic adjusting method for program development that the embodiment of the present disclosure one provides;
Fig. 2 is a kind of flow diagram of the code automatic adjusting method for program development that the embodiment of the present disclosure two provides;
Fig. 3 is the process signal of the code automatic adjusting method for another program development that the embodiment of the present disclosure two provides
Figure;
Fig. 4 is a kind of structural schematic diagram of the code automatic regulating apparatus for program development that the embodiment of the present disclosure four provides;
Fig. 5 is a kind of structural schematic diagram for terminal device that the embodiment of the present disclosure five provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, hereinafter with reference to attached in the embodiment of the present disclosure
Figure, the technical solution of the disclosure is clearly and completely described by embodiment, it is clear that described embodiment is the disclosure one
Section Example, instead of all the embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art are not being done
Every other embodiment obtained under the premise of creative work out belongs to the range of disclosure protection.
In following each embodiments, optional feature and example are provided simultaneously in each embodiment, that records in embodiment is each
A feature can be combined, and form multiple optinal plans, and the embodiment of each number should not be considered merely as to a technical solution.
Code automatic adjusting method, device, terminal device and the storage that the embodiment of the present disclosure provides a kind of program development are situated between
Matter may be implemented in small routine development process, is adjusted, is made to small routine according to adjustable strategies by program development tools
Environment program while support by program switch tool treated small routine, small routine is able to use program development work
Tool, reduces the complexity in small routine development process, while reducing the operation difficulty of program developer, improves small routine
Development efficiency.
Embodiment one
Fig. 1 is a kind of flow diagram of the code automatic adjusting method for program development that the embodiment of the present disclosure one provides.
Method disclosed in the embodiment of the present disclosure is primarily adapted for use in the situation that program development tools are not applicable in small routine development process.Specifically
, it can be and realized by the code automatic regulating apparatus of program development.As shown in Figure 1, this method specifically comprises the following steps:
S110, in small routine development process, the adjustable strategies of program development tools are determined according to preset rules.
Specifically, small routine is that one kind can be realized certain business function, and does not need user and download independent software
A kind of program reused to local, installation.Under normal circumstances, small routine can by some APP as operation platform, such as
Small routine can be a small routine, and operation platform can be wechat APP, and small routine passes through flat using wechat client as operation
The operation of platform realization small routine.Therefore, the operation platform of small routine is different from the operation platform of APP and webpage.The operation of APP is flat
Platform can be the operating system of terminal device, and the operation platform of webpage can be browser, and the operation platform of small routine can be
Some APP.Because of operation platform difference, the interaction between the corresponding operation platform of operation program is also different.For example, APP with
Operating system is by a kind of preconfigured protocol realization interaction, and when APP operation, operating system is according to protocol analysis APP's
Request is the running configuration resource of APP, to realize the operation of APP.And small routine and its operation platform APP pass through another kind
Preconfigured protocol realization interaction, in small routine operational process, APP is little Cheng according to the request of protocol analysis small routine
Sequence configures the resource that oneself can be dominated, to realize the operation of small routine.Therefore, the interaction between APP and operating system and
Interaction between APP and small routine is different, and corresponding program statement etc. is also different.
During developing APP and web page program, the program development tools of some maturations can be used, to reduce exploitation
The difficulty of developer in the process, improves development efficiency.Small routine generally passes through each page shown needed for exploitation small routine
Face completes to develop.Because the program statement of the program statement of APP, the program statement of webpage and small routine is different, Yi Xie
Program development tools used in exploitation APP and web page program process can not be compatible with the program statement of small routine, therefore can be by
It determines according to certain preset rules to the adjustable strategies of program development tools, it is made to adjust small routine in small routine development process
Program statement, so that program development tools can be compatible with small routine.I.e. functional development tool can be applied to opening for small routine
It in hair, can be run in environment program by the program statement of small routine that program development tools are handled, environment program can be with
Support the small routine using program development tools.
Preset rules are a kind of preset rules, for setting the program statement of small routine exploitation in adjust automatically
The case where and adjustable strategies corresponding relationship.Illustratively, preset rules can be the journey of program development tools processing small routine
Difference situation corresponds to different adjustable strategies when sequence sentence.Adjustable strategies can adjust the program of small routine for program development tools
The specific adjustment rule of sentence, so that environment program is supported by program development tools treated small routine.For example, working as little Cheng
It include when cannot be by code that environment program is compatible in the program statement of sequence, corresponding adjustable strategies can be replacement policy, make
It cannot be replaced by code that environment program is compatible under the premise of not influencing the function of sequence sentence in the program statement of small routine
The code that can be compatible with for environment program.
Under normal circumstances, a function may include webpage version, APP editions and small routine version.The different editions of one function
When the function of realization is identical, corresponding program statement is different.Illustratively, the grammer in program statement and clocking discipline may
It is different.Such as the difference according to grammer, represent in the program statement of the same program of different editions same variable suffix name and
The code of variable name may be different.Adjustable strategies can be to fill in the character of protocol identification a kind of in program statement for another kind
The character of protocol identification.Such as can be the code of the suffix name of program statement and variable name etc. is replaced with into environment program can be with
The code of compatible suffix name and variable name.Adjustment of the program development tools by adjusting strategy to the program statement of small routine,
So that the processed support for having developed the available environment program of program of program development tools.
It should be noted that the adjustable strategies of program development tools are determined by preset rules.When preset rules change
When, adjustable strategies also change accordingly.
S120, according to adjustable strategies, handled using program development tools program has been developed, so that environment program branch
It holds by program development tools treated small routine.
Specifically, environment program can be an APP.In small routine operational process, environment program is according to protocol analysis
The request of small routine configures the resource that oneself can be dominated for small routine, to realize the operation of small routine.Program development tools
It is a kind of tool in program development process, the program of exploitation can be handled, improve the efficiency of program development.Example
Such as, webpack is a kind of program development tools of modern times JavaScript application program static module packing device, be can be used for pair
Modern JavaScript application program carries out packing compression, improves program loading velocity, saves flow.When webpack is directly answered
In program development, it is possible to reduce the exploitation of webpack function when program development, and then improve the efficiency of program development.
After determining adjustable strategies according to preset rules, program development tools have developed journey to small routine according to adjustable strategies
The program statement of sequence is handled, so that environment program is supported by program development tools treated small routine, therefore program
Developing instrument can be applied in small routine, to reduce the difficulty of developer in development process, improve the exploitation effect of small routine
Rate.
The technical solution of the embodiment of the present disclosure, in small routine development process, by program development tools according to adjustment plan
Slightly the developed program of small routine is handled, so that environment program is supported by program switch tool treated small routine
While, small routine is able to use program development tools, reduces the complexity in small routine development process, while reducing journey
The operation difficulty of sequence developer improves the development efficiency of small routine.
Embodiment two
On the basis of example 1, embodiment two, which is schematically illustrated, determines a kind of adjustable strategies according to preset rules
The case where.Adjustable strategies are that program development tools are adjusted again to having developed after program pre-processes.Fig. 2 is the embodiment of the present disclosure
A kind of flow diagram of the code automatic adjusting method of two program development provided.As shown in Fig. 2, specifically, the step in Fig. 1
Suddenly S120 may include:
S121, according to adjustable strategies, handled in advance using program development tools program has been developed.
Specifically, program development tools pre-process program developed in small routine, in preprocessing process, journey
Sequence developing instrument handles the developed program of small routine, improves the efficiency of program development.For example, program development tools are
Webpack, webpack carry out packing compression to the developed program of small routine, improve the loading velocity of small routine, save simultaneously
Flow.
S122, the change data obtained in program development tools treatment process are monitored.
Specifically, after determining adjustable strategies, program development tools can monitor small routine according to adjustable strategies and develop
Program.I.e. program development tools respond the developed program of small routine according to adjustable strategies, to determine program development
Tool needs data to be changed.For example, adjustable strategies are replacement policy, in program development tools to the developed program of small routine
Specifically in the process of processing, it needs to be monitored according to developed program of the replacement policy to small routine, to be needed
Data to be changed.
Under normal circumstances, it may include a variety of for needing data to be changed.Illustratively, change data can become for operation
Amount.It is Windows height in the program of webpage version, small for example, representing the operation variable height of same semanteme
It is global height in program.The semanteme of the operation variable of the two is identical, runs and becomes in the program statement of different editions
Amount is different.In order to be that small routine can identify compatible operation variable by the operation variable replacement of webpage version, need Windows
Global is replaced with, therefore running variable height is to change data.
Illustratively, when program development tools are webpack, the change obtained in program development tools treatment process is monitored
More data may include:
The data change information reported in webpack treatment process is received, and change number is determined according to data change information
According to.
Specifically, in webpack treatment process, webpack monitors program, and carries out to data change information
It reports.Webpack can determine change data according to the data change information reported in webpack treatment process.For example,
The data change information reported in webpack treatment process can have been developed in program and can not have been supported by environment program for small routine
Data information, data where data change information are to change data.Alternatively, the change reported in webpack treatment process
More data information may be the information of the change data in adjustable strategies, be determined according to the information for changing data in adjustable strategies
Change data.
S123, according to adjustable strategies, adjustment data.
After determining change data, according to adjustable strategies adjustment data.For example, adjustable strategies are replacement policy, when
After determining the change data for needing to replace, change data are replaced, so that replaced change data make program development
The processed support for having developed the available environment program of program of tool.
Illustratively, Fig. 3 is the code automatic adjusting method for another program development that the embodiment of the present disclosure two provides
Flow diagram.As shown in figure 3, the S123 step in Fig. 2 may include following step when program development tools are webpack
It is rapid:
Operation variable in S1231, identification change data, wherein operation variable is the page that environment program runs small routine
Required variable when face.
Specifically, environment program needs to carry out parsing identification to small routine, so that little Cheng when running the page of small routine
Sequence can operate normally.In the process, the variable that environment program needs to identify is to run variable.
The operation variable that S1232, the operation variable replacement for not supporting environment program are supported for environment program.
Specifically, the operation variable that do not support is web object variable, and the operation variable of support is application software as ring
The object variable supported when the program of border.So-called object is the control handle for calculating equipment motion time and matching resource, may also mean that
Needle.The object oriented, for being managed collectively the resource, such as spatial cache, process etc. that calculate equipment and distribute to the small routine.
The technical solution of the embodiment of the present disclosure, in small routine development process, by program development tools to having developed journey
Sequence is pre-processed, and monitors the change data obtained in preprocessing process, according to adjustable strategies adjustment data, so that ring
While border program supports small routine adjusted according to adjustable strategies, small routine is able to use program development tools, reduces
Complexity in small routine development process, while the operation difficulty of program developer is reduced, improve the exploitation effect of small routine
Rate.
Embodiment three
On the basis of example 1, embodiment three, which is schematically illustrated, determines another adjustment plan according to preset rules
Slightly the case where.Adjustable strategies are that program development tools first determine that target handles data and post-processed again.Specifically, in Fig. 1
Step S120 may include:
According to adjustable strategies, determine that target handles data in having developed program, and using program development tools to target
Processing data are handled.
Specifically, small routine generally comprises at least one page, and each page can be set to a file, each page
The store path of the corresponding page file of face file is different.During small routine operation, need to each page file
Page file in folder is handled.The store path of at least one file in one page file folder is identical, therefore one
It can be at least one corresponding file of a page that target, which handles data,.Determine that target handles data in having developed program
Afterwards, program development tools handle target processing data according to adjustable strategies.
Illustratively, when program development tools are webpack, webpack is obtained from the page file of small routine folder
The file store path of at least one page obtains at least one corresponding file of the page according to the file store path of the page,
Data are handled as target.Wherein, corresponding file as a target handles data in page file folder.Using
Webpack each target processing data corresponding to each page carry out packing processing, form a packaging file.It is packaged determining
After file, webpack is handled the data in each packaging file according to adjustable strategies, so that environment program is supported to pass through
Program development tools treated small routine.After webpack handles data processing to target, webpack is also needed to small routine
It carries out being packaged the processes such as compression, improves program loading velocity, save flow.
It should be noted that a page file folder can correspond to multiple files, herein without limitation.
Example IV
The embodiment of the present disclosure also provides a kind of code automatic regulating apparatus of program development.Fig. 4 is the embodiment of the present disclosure four
A kind of structural schematic diagram of the code automatic regulating apparatus of the program development provided.As shown in figure 4, the device includes:
Adjustable strategies determining module 11, for determining program development work according to preset rules in small routine development process
The adjustable strategies of tool.
Processing module 12, for being handled program has been developed using program development tools according to the adjustable strategies,
So that environment program is supported by program development tools treated small routine.
Optionally, processing module 12 can according to adjustable strategies, in advance using program development tools to developed program into
Row processing monitors the change data obtained in program development tools treatment process, and according to preset rules during processing,
Adjustment data.When program development tools are webpack, according to preset rules, during adjustment data, need
Identify the operation variable in change data, wherein the change required when being the page of environment program operation small routine of operation variable
The operation variable replacement that environment program is not supported is the operation variable that environment program is supported by amount.Wherein, the operation that do not support becomes
Amount is web object variable, the operation variable of support for application software as environment program when the object variable supported.
Optionally, processing module 12 can also determine that target handles data according to adjustable strategies in having developed program, and
Target processing data are handled using program development tools.During determining that target handles data, from small routine
It is corresponding to obtain the page according to the file store path of the page for the file store path that at least one page is obtained in page file folder
At least one file, as target handle data.Program development tools carry out packing processing to target processing data, and formation is beaten
APMB package.After determining packaging file, program development tools according to adjustable strategies to the data in each packaging file at
Reason, so that environment program is supported by program development tools treated small routine.
Embodiments of the present disclosure institute can be performed in the code automatic regulating apparatus for the program development that the embodiment of the present disclosure provides
Step performed by program development tools, it is corresponding to have execution method in the code automatic adjusting method of the program development of offer
Functional module and beneficial effect.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for terminal device that the embodiment of the present disclosure five provides.It is real it illustrates being suitable for being used to
The structural schematic diagram of the terminal device 500 of the existing embodiment of the present disclosure.Terminal device in the embodiment of the present disclosure may include but not
It is (flat to be limited to such as mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD
Plate computer), PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc. mobile terminal and
Such as fixed terminal of number TV, desktop computer etc..Terminal device shown in Fig. 5 is only an example, should not be to this
The function and use scope of open embodiment bring any restrictions.
As shown in figure 5, terminal device 500 may include processing unit (such as central processing unit, graphics processor etc.)
501, random access can be loaded into according to the program being stored in read-only memory (ROM) 502 or from storage device 508
Program in memory (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with electronic equipment
Various programs and data needed for 500 operations.Processing unit 501, ROM 502 and RAM 503 pass through the phase each other of bus 504
Even.Input/output (I/O) interface 505 is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 506 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 507 of dynamic device etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.Communication device
509, which can permit terminal device 500, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool
There is the terminal device 500 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508
It is mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: in small routine development process, determining program development tools according to preset rules
Adjustable strategies;It according to adjustable strategies, is handled using program development tools program has been developed, so that environment program supports warp
Cross program development tools treated small routine.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, adjusting
Whole strategy determining module is also described as " in small routine development process, determining program development tools according to preset rules
Adjustable strategies ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (11)
1. a kind of code automatic adjusting method of program development, which is characterized in that the described method includes:
In small routine development process, the adjustable strategies of program development tools are determined according to preset rules;
It according to the adjustable strategies, is handled using program development tools program has been developed, so that environment program supports warp
Cross program development tools treated small routine.
2. the method according to claim 1, wherein according to the adjustable strategies, using program development tools pair
It has developed program and handle and included:
According to the adjustable strategies, handled in advance using program development tools program has been developed;
Monitor the change data obtained in program development tools treatment process;
According to the adjustable strategies, the change data are adjusted.
3. the method according to claim 1, wherein according to the adjustable strategies, using program development tools pair
It has developed program and handle and included:
According to the adjustable strategies, determine that target handles data in having developed program, and use described program developing instrument pair
The target processing data are handled.
4. according to the method in claim 2 or 3, which is characterized in that described program developing instrument is webpack.
5. according to the method described in claim 4, it is characterized in that, adjusting the change data packet according to the adjustable strategies
It includes:
Identify the operation variable in the change data, wherein the operation variable is that environment program runs the small routine
Required variable when the page;
It is the operation variable that environment program is supported by the operation variable replacement that environment program is not supported.
6. according to the method described in claim 4, it is characterized in that, monitoring the change obtained in program development tools treatment process
Data include:
The data change information reported in webpack treatment process is received, and change number is determined according to the data change information
According to.
7. according to the method described in claim 5, it is characterized in that, the operation variable that do not support be web object variable,
The operation variable of the support be application software as environment program when the object variable supported.
8. according to the method described in claim 4, it is characterized in that, being determined in having developed program according to the adjustable strategies
Target handles data, and carries out processing to target processing data using described program developing instrument and include:
The file store path of at least one page is obtained from the page file of small routine folder;
At least one corresponding file of the page is obtained according to the file store path of the page, handles data as target;
Packing processing is carried out using webpack each target processing data corresponding to each page, forms a packaging file.
9. a kind of code automatic regulating apparatus of program development characterized by comprising
Adjustable strategies determining module, for determining the tune of program development tools according to preset rules in small routine development process
Whole strategy;
Processing module, for being handled using program development tools program has been developed, so that ring according to the adjustable strategies
Border program is supported by program development tools treated small routine.
10. a kind of terminal device characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The code automatic adjusting method of existing program development a method as claimed in any one of claims 1-8.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The code automatic adjusting method of program development a method as claimed in any one of claims 1-8 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107623.1A CN109800020B (en) | 2019-02-02 | 2019-02-02 | Automatic code adjusting method, device, equipment and medium for program development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107623.1A CN109800020B (en) | 2019-02-02 | 2019-02-02 | Automatic code adjusting method, device, equipment and medium for program development |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109800020A true CN109800020A (en) | 2019-05-24 |
CN109800020B CN109800020B (en) | 2023-02-10 |
Family
ID=66561901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910107623.1A Active CN109800020B (en) | 2019-02-02 | 2019-02-02 | Automatic code adjusting method, device, equipment and medium for program development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800020B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347403A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | A kind of program switch control method, device, electronic equipment |
CN113282295A (en) * | 2021-05-25 | 2021-08-20 | 青岛海尔科技有限公司 | Jam processing method and device, storage medium and electronic device |
CN113791988A (en) * | 2021-11-17 | 2021-12-14 | 畅捷通信息技术股份有限公司 | Rendering method and device for reducing volume of small program package and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170046133A1 (en) * | 2014-06-25 | 2017-02-16 | Rakuten, Inc. | Information processing device, information processing method, program, and storage medium |
CN107239318A (en) * | 2017-06-13 | 2017-10-10 | 腾讯科技(深圳)有限公司 | Using conversion method, device and equipment |
CN107590385A (en) * | 2017-09-15 | 2018-01-16 | 湖南大学 | A kind of hardware aids in anti-code reuse attack defending system and method |
CN108664248A (en) * | 2018-05-14 | 2018-10-16 | 北京汉能光伏投资有限公司 | A kind of generation method and device of wechat small routine |
CN109191605A (en) * | 2018-08-17 | 2019-01-11 | 华南理工大学 | A kind of highway charging rate accuracy evaluating method considering charge path |
-
2019
- 2019-02-02 CN CN201910107623.1A patent/CN109800020B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170046133A1 (en) * | 2014-06-25 | 2017-02-16 | Rakuten, Inc. | Information processing device, information processing method, program, and storage medium |
CN107239318A (en) * | 2017-06-13 | 2017-10-10 | 腾讯科技(深圳)有限公司 | Using conversion method, device and equipment |
CN107590385A (en) * | 2017-09-15 | 2018-01-16 | 湖南大学 | A kind of hardware aids in anti-code reuse attack defending system and method |
CN108664248A (en) * | 2018-05-14 | 2018-10-16 | 北京汉能光伏投资有限公司 | A kind of generation method and device of wechat small routine |
CN109191605A (en) * | 2018-08-17 | 2019-01-11 | 华南理工大学 | A kind of highway charging rate accuracy evaluating method considering charge path |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347403A (en) * | 2019-06-28 | 2019-10-18 | 北京你财富计算机科技有限公司 | A kind of program switch control method, device, electronic equipment |
CN113282295A (en) * | 2021-05-25 | 2021-08-20 | 青岛海尔科技有限公司 | Jam processing method and device, storage medium and electronic device |
CN113282295B (en) * | 2021-05-25 | 2024-02-23 | 青岛海尔科技有限公司 | Blocking processing method and device, storage medium and electronic device |
CN113791988A (en) * | 2021-11-17 | 2021-12-14 | 畅捷通信息技术股份有限公司 | Rendering method and device for reducing volume of small program package and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109800020B (en) | 2023-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109375918A (en) | Interface rendering method, device, electronic equipment and the storage medium of small routine | |
US9235398B2 (en) | Development of platform independent applications | |
CN112771500A (en) | Function as a service gateway | |
CN109800020A (en) | A kind of code automatic adjusting method, device, equipment and the medium of program development | |
US9268546B2 (en) | Deployment and hosting of platform independent applications | |
CN109857486A (en) | A kind of processing method, device, equipment and the medium of program page data | |
US9158520B2 (en) | Development of platform independent applications | |
CN113312037A (en) | Data processing method, device and equipment applied to microservice and storage medium | |
CN109918166A (en) | Applet process method, apparatus and electronic equipment | |
CN110069308A (en) | The page starts method, apparatus, electronic equipment and storage medium | |
CN109558246A (en) | A kind of load-balancing method, device, electronic equipment and storage medium | |
US20130151594A1 (en) | Deployment and hosting of platform independent applications | |
CN114625536B (en) | Video memory allocation method, device, medium and electronic equipment | |
CN110391938A (en) | Method and apparatus for deployment services | |
CN111818194A (en) | Domain name based access system and method | |
CN111198685A (en) | Method, device, system, server and storage medium for generating front-end interactive page based on user state | |
US20130151595A1 (en) | Deployment and hosting of platform independent applications | |
CN110008050A (en) | Method and apparatus for handling information | |
CN109471647A (en) | A kind of update method of data, device, electronic equipment and readable medium | |
CN112887440B (en) | IP address management method and device | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN107347093A (en) | Collocation method and device for distributed server system | |
CN109819042A (en) | For providing the method and apparatus of Software Development Kit | |
CN109828830A (en) | Method and apparatus for managing container | |
CN109491721A (en) | Method and apparatus for load information |
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 |