CN105224451A - A kind of disposal route of script file and system - Google Patents

A kind of disposal route of script file and system Download PDF

Info

Publication number
CN105224451A
CN105224451A CN201510562643.XA CN201510562643A CN105224451A CN 105224451 A CN105224451 A CN 105224451A CN 201510562643 A CN201510562643 A CN 201510562643A CN 105224451 A CN105224451 A CN 105224451A
Authority
CN
China
Prior art keywords
script file
objective function
details
statement
candidate functions
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
Application number
CN201510562643.XA
Other languages
Chinese (zh)
Other versions
CN105224451B (en
Inventor
张军
杜鸿斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510562643.XA priority Critical patent/CN105224451B/en
Publication of CN105224451A publication Critical patent/CN105224451A/en
Application granted granted Critical
Publication of CN105224451B publication Critical patent/CN105224451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiments provide a kind of disposal route and system of script file.On the one hand, the embodiment of the present invention is passed through in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents; Thus obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.Therefore, when the technical scheme that the embodiment of the present invention provides can realize occurring operation exception in the script file run on network, can catch in time and occur the abnormal details of the function of operation exception relative to original script file, thus reduce and occur that the function of operation exception is relative to the acquisition efficiency of the abnormal details of original script file and procurement cost.

Description

A kind of disposal route of script file and system
[technical field]
The present invention relates to field of computer technology, particularly relate to a kind of disposal route and system of script file.
[background technology]
Flourish along with Internet technology, the function in front end page and pattern are also more and more diversified, thus the logic in front end page is also become increasingly complex, and the script file run when representing front end page also gets more and more.The script file inevitably run on network there will be operation exception, so needs can to occurring in the script file that network runs that the function of operation exception positions, like this, could modify to script file, to eliminate the operation exception problem of script file.
In prior art, when operation exception appears in the script file that network runs, the abnormal details of the function occurring operation exception in run script file can be captured.Then resource map (ResourceMap) is utilized, the abnormal information of function is mapped in original script file, to obtain the function of operation exception relative to the abnormal details in original script file, and then realize the location of function in original script file obtaining operation exception.In prior art, the acquisition efficiency comparison of the abnormal details of function in original script file of operation exception is low, and procurement cost is higher.
[summary of the invention]
In view of this, embodiments provide a kind of disposal route and system of script file, can be implemented in when there is operation exception in the script file that network runs, can catch in time and occur the abnormal details of the function of operation exception relative to original script file, thus reduce and occur that the function of operation exception is relative to the acquisition efficiency of the abnormal details of original script file and procurement cost.
The one side of the embodiment of the present invention, provides a kind of disposal route of script file, comprising:
In the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents;
Obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents, comprising:
Obtain the details of the objective function in described first script file;
According to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement;
Wherein, the details of described objective function comprise: the beginning line number of described objective function in described first script file and the end line number of described objective function in described first script file.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and before the details of the objective function in described first script file of described acquisition, described method also comprises:
Structure elucidation is carried out to described first script file, to obtain the details of candidate functions in described first script file;
Described objective function is obtained from described candidate functions.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the details of described candidate functions comprise the title of candidate functions; From described candidate functions, obtain described objective function, comprising:
Obtaining needs arrangement abnormalities to catch the title of the candidate functions of statement;
The candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement is obtained, using as described objective function from described candidate functions.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described method also comprises:
When described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, perform described exception catching statement, to obtain abnormal details;
Described abnormal details comprise: the filename and the non-conformance description information that occur the beginning line number of the objective function of operation exception in described first script file, end line number, described first script file.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described method also comprises:
Described abnormal details are sent to server, so that described abnormal details are pushed to user by described server.
The one side of the embodiment of the present invention, provides a kind of disposal system of script file, comprising:
Statement dispensing unit, in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents;
Script processing unit, for obscuring compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described statement dispensing unit, specifically for:
Obtain the details of the objective function in described first script file;
According to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement;
Wherein, the details of described objective function comprise: the beginning line number of described objective function in described first script file and the end line number of described objective function in described first script file.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described system also comprises:
Script resolution unit, for carrying out structure elucidation to described first script file, to obtain the details of candidate functions in described first script file;
Function screening unit, for obtaining described objective function from described candidate functions.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and the details of described candidate functions comprise the title of candidate functions; Described function screening unit, specifically for:
Obtaining needs arrangement abnormalities to catch the title of the candidate functions of statement;
The candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement is obtained, using as described objective function from described candidate functions.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described system also comprises:
Exception catching unit, when described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, performs described exception catching statement, to obtain abnormal details;
Described abnormal details comprise: the filename and the non-conformance description information that occur the beginning line number of the objective function of operation exception in described first script file, end line number, described first script file.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described system also comprises:
Abnormal output unit, for described abnormal details are sent to server, so that described abnormal details are pushed to user by described server.
As can be seen from the above technical solutions, the embodiment of the present invention has following beneficial effect:
The technical scheme that the embodiment of the present invention provides, due to be script file carry out compressing obscure before just carry out the configuration of exception catching statement for function, therefore, when the script file after obscuring is compressed in operation, the abnormal details that the exception catching statement of execution is caught are exactly that objective function is for the abnormal details compressing the original script file before obscuring.Thus achieve and directly can obtain the abnormal details of function relative to original script file.With prior art, first obtain the abnormal details of function relative to the script file run on network, again function is mapped to function relative to the abnormal details of the script file run on network to compare relative to the technical scheme of the abnormal details of original script file, the embodiment of the present invention reduces and occurs that the function of operation exception is relative to the acquisition efficiency of the abnormal details of original script file and procurement cost.
[accompanying drawing explanation]
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the disposal route of the script file that the embodiment of the present invention provides;
Fig. 2 is the structural representation of the disposal system of the script file that the embodiment of the present invention provides.
[embodiment]
Technical scheme for a better understanding of the present invention, is described in detail the embodiment of the present invention below in conjunction with accompanying drawing.
Should be clear and definite, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.
Should be appreciated that term "and/or" used herein is only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Although should be appreciated that and term first, second, third, etc. may be adopted in embodiments of the present invention to carry out description script file, these script files should not be limited to these terms.These terms are only used for script file to be distinguished from each other out.Such as, when not departing from embodiment of the present invention scope, the first script file also can be called as crus secunda presents, and similarly, crus secunda presents also can be called as the first script file.
Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context, phrase " if determination " or " if detecting (the conditioned disjunction event of statement) " can be construed as " when determining " or " in response to determining " or " when detecting (the conditioned disjunction event of statement) " or " in response to detection (the conditioned disjunction event of statement) ".
The embodiment of the present invention provides a kind of disposal route of script file, please refer to Fig. 1, the schematic flow sheet of the disposal route of its script file provided for the embodiment of the present invention, and as shown in the figure, the method comprises the following steps:
S101, in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents.
S102, obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
It should be noted that, the executive agent of S101 ~ S102 can be the disposal system of script file, this system can be positioned at the application of local terminal, or can also for being arranged in plug-in unit or the SDK (Software Development Kit) (SoftwareDevelopmentKit of the application of local terminal, the functional unit such as SDK), the embodiment of the present invention is not particularly limited this.
Be understandable that, described application can be mounted in the application program (nativeApp) in terminal, or can also be a web page program (webApp) of browser in terminal, and the embodiment of the present invention does not limit this.
It should be noted that, terminal involved in the embodiment of the present invention can include but not limited to personal computer (PersonalComputer, PC), personal digital assistant (PersonalDigitalAssistant, PDA), radio hand-held equipment, panel computer (TabletComputer), mobile phone, MP3 player, MP4 player etc.
It should be noted that, in the embodiment of the present invention, need to use exception catching statement to realize catching the abnormal details of the function occurring operation exception.In order to realize this purpose, in the first script file, for the automatic arrangement abnormalities of objective function catches statement, thus generate crus secunda presents, and then compression process is obscured to the crus secunda presents being configured with exception catching statement, thus generate the 3rd script file.Be understandable that, described first script file is original script file, and described 3rd script file is the script file for running on network.
In a concrete implementation procedure, described first script file, crus secunda presents and the 3rd script file can utilize JavaScript file to realize.
Illustrate, in the embodiment of the present invention, in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, can include but not limited to the method generating crus secunda presents:
First, the details of the objective function in described first script file are obtained.
Then, according to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement.
Alternatively, in one of the embodiment of the present invention possible implementation, before the details obtaining the objective function in described first script file, first can carry out structure elucidation to described first script file, to obtain the details of candidate functions in described first script file.Then, from described candidate functions, described objective function is obtained.So, just according to the details of candidate functions of the described objective function obtained and acquisition, the details of the objective function in described first script file can be obtained.
In a concrete implementation procedure, the details of described candidate functions can include but not limited to: beginning line number in described first script file of the title of described candidate functions, described candidate functions and the end line number of described candidate functions in described first script file.In like manner, the details of described objective function can include but not limited to: beginning line number in described first script file of the title of described objective function, described objective function and the end line number of described objective function in described first script file.
In a concrete implementation procedure, resolver can be utilized to carry out structure elucidation to described first script file, to obtain the details of candidate functions in described first script file.Such as, can using the input of described first script file as described resolver, to obtain the details of candidate functions in described first script file that described resolver exports.
Such as, described resolver can utilize the resolver Esprima increased income to realize.
Illustrate, in the embodiment of the present invention, the method obtaining described objective function from described candidate functions can include but not limited to:
First, acquisition needs arrangement abnormalities to catch the title of the candidate functions of statement.
Then, from described candidate functions, obtain the candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement, using as described objective function.
In a concrete implementation procedure, can pre-set a configuration file, this configuration file is for preserving the title needing arrangement abnormalities to catch the candidate functions of statement.When needs obtain described objective function from described candidate functions, first read the information of preserving in this configuration file, thus obtain the described title needing arrangement abnormalities to catch the candidate functions of statement.
In a concrete implementation procedure, the title of the candidate functions of statement can be caught according to the arrangement abnormalities that needs obtained, in the alternative file obtained, find the candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement, using the candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement that finds as the objective function in the embodiment of the present invention.
Such as, function A sum functions B is comprised in described first script file, the title needing arrangement abnormalities to catch the candidate functions of statement of preserving in described configuration file is A, then according to the information that this configuration file is preserved, know in the function A sum functions B comprised in described first script file, function A needs arrangement abnormalities to catch statement, and function B does not need arrangement abnormalities to catch statement, therefore in described first script file, only catches statement for function A arrangement abnormalities.
Be understandable that, in the embodiment of the present invention, the title according to candidate functions can be realized, for specified function arrangement abnormalities catches statement, thus can realize passing through configuration file, control the only function arrangement abnormalities important to the part in the first script file and catch statement, the impact of exception catching statement on the runnability of script file is dropped to minimum.
In a concrete implementation procedure, can according to the details of described objective function, as as described in objective function as described in beginning line number in the first script file and as described in objective function as described in end line number in the first script file, in objective function in described first script file, add described exception catching statement, to make to comprise described exception catching statement in described objective function, using the details of described objective function as parameter in described exception catching statement.
In a concrete implementation procedure, described exception catching statement can be, but not limited to utilize try/catch statement to realize.The execution principle of try/catch statement is: attempt operational objective function, if there is operation exception in the described objective function run, then perform the catch statement comprised in described objective function, the abnormal details of the objective function occurring operation exception automatically can be caught in catch statement after automatically performing.
Such as, following code is in described first script file, with the addition of the objective function functiona () after try/catch statement:
functiona(){
try{
varb=’test’;
doSomething(b);
}catch(e){
errorLog.send({
msg:e.message︱︱e.description,
Path: ' test.js ', the routing information of the // the first script file
The line number of this objective function in ln:1//the first script file
})
}
}
In the embodiment of the present invention, after the described crus secunda presents of acquisition, obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file of generation for running on network.Therefore, in the embodiment of the present invention, before obscuring compression process, for objective function arrangement abnormalities catches statement, namely in original script file for objective function arrangement abnormalities catches statement, can make when the 3rd script file runs on network, if there is operation exception in described objective function, described exception catching statement can be automatically performed, to catch described objective function relative to described first script file, namely the abnormal details of original script file, are directly targeted to original script file.
It should be noted that, to described crus secunda presents obscure compression process can comprise to described crus secunda presents carry out compression process and obscure process.Wherein, described compression process can include but not limited to: delete all annotations in crus secunda presents, figure shift, line feed symbol and useless space etc., thus realizes the size of compression crus secunda presents.Describedly obscure process and can include but not limited to: described crus secunda presents is encoded, in cataloged procedure, change the title of the variable sum functions of the function in crus secunda presents into skimble-skamble title, spy on and steal the source code of script file to prevent other people.
Alternatively, in one of the embodiment of the present invention possible implementation, after described 3rd script file of acquisition, described 3rd script file can be run on network.When described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, perform described exception catching statement, to obtain abnormal details.
In a concrete implementation procedure, described abnormal details can include but not limited to: occur the beginning line number of the objective function of operation exception in described first script file, terminate line number, the filename of described first script file and non-conformance description information.Be understandable that, described abnormal details occur the abnormal details of the objective function of operation exception relative to described first script file.
Be understandable that, in the process that described 3rd script file runs on network, if there is operation exception in described objective function, the exception catching statement configured in described objective function can automatically perform, carry out automatically catching and exporting of abnormal details, therefore, by arrangement abnormalities catch statement can measure for fulfill after there is operation exception, the abnormal details of function can be obtained, thus according to abnormal details, realize positioning the function of operation exception in script file, then Modification growth function, to eliminate operation exception problem.
It should be noted that, in the embodiment of the present invention, due to be script file carry out compressing obscure before just carry out the configuration of exception catching statement for function, therefore, when the script file after obscuring is compressed in operation, the abnormal details that the exception catching statement of execution is caught are exactly that objective function is for the abnormal details compressing the original script file before obscuring.Therefore, in the embodiment of the present invention, by before obscuring in compression for objective function arrangement abnormalities catches statement, realizing running on network compresses in the process of the script file after obscuring, catch the abnormal details of the function occurring operation exception, thus directly can obtain the abnormal details of function relative to original script file.With prior art, first obtain the abnormal details of function relative to the script file run on network, again function is mapped to function relative to the abnormal details of the script file run on network to compare relative to the technical scheme of the abnormal details of original script file, the embodiment of the present invention reduces and occurs that the function of operation exception is relative to the acquisition efficiency of the abnormal details of original script file and procurement cost.
Alternatively, in one of the embodiment of the present invention possible implementation, after the described abnormal details of acquisition, further described abnormal details can be sent to server, so that described abnormal details are pushed to user by described server.Like this, user just can be known and occurs the position of the objective function of operation exception in the first script file, and then this objective function can be found in the first script file, and this objective function is modified, to eliminate the operation exception problem of described objective function.
The embodiment of the present invention provides the device embodiment realizing each step and method in said method embodiment further.
Please refer to Fig. 2, the structural representation of the disposal system of its script file provided for the embodiment of the present invention.As shown in the figure, this system comprises:
Statement dispensing unit 21, in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents;
Script processing unit 22, for obscuring compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
In a concrete implementation procedure, described statement dispensing unit 21, specifically for:
Obtain the details of the objective function in described first script file;
According to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement;
Wherein, the details of described objective function comprise: the beginning line number of described objective function in described first script file and the end line number of described objective function in described first script file.
Alternatively, in one of the embodiment of the present invention possible implementation, described system also comprises:
Script resolution unit 23, for carrying out structure elucidation to described first script file, to obtain the details of candidate functions in described first script file;
Function screening unit 24, for obtaining described objective function from described candidate functions.
In a concrete implementation procedure, the details of described candidate functions comprise the title of candidate functions; Described function screening unit 24, specifically for:
Obtaining needs arrangement abnormalities to catch the title of the candidate functions of statement;
The candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement is obtained, using as described objective function from described candidate functions.
Alternatively, in one of the embodiment of the present invention possible implementation, described system also comprises:
Exception catching unit 25, when described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, performs described exception catching statement, to obtain abnormal details;
Described abnormal details comprise: the filename and the non-conformance description information that occur the beginning line number of the objective function of operation exception in described first script file, end line number, described first script file.
Alternatively, in one of the embodiment of the present invention possible implementation, described system also comprises:
Abnormal output unit 26, for described abnormal details are sent to server, so that described abnormal details are pushed to user by described server.
Because each unit in the present embodiment can perform the method shown in Fig. 1, the part that the present embodiment is not described in detail, can with reference to the related description to Fig. 1.
The technical scheme of the embodiment of the present invention has following beneficial effect:
In the embodiment of the present invention, by the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents; Thus obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
The technical scheme that the embodiment of the present invention provides, due to be script file carry out compressing obscure before just carry out the configuration of exception catching statement for function, therefore, when the script file after obscuring is compressed in operation, the abnormal details that the exception catching statement of execution is caught are exactly that objective function is for the abnormal details compressing the original script file before obscuring.In the embodiment of the present invention, by before obscuring in compression for objective function arrangement abnormalities catches statement, realizing running on network compresses in the process of the script file after obscuring, catch the abnormal details of the function occurring operation exception, thus directly can obtain the abnormal details of function relative to original script file.With prior art, first obtain the abnormal details of function relative to the script file run on network, again function is mapped to function relative to the abnormal details of the script file run on network to compare relative to the technical scheme of the abnormal details of original script file, reduces and occur that the function of operation exception is relative to the acquisition efficiency of the abnormal details of original script file and procurement cost.Thus the function occurring operation exception can be located in time, make user can carry out the amendment of function in time, solve the operation exception problem of function, improve quality and the Consumer's Experience of script file.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing, such as, multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer installation (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-OnlyMemory, ROM), random access memory (RandomAccessMemory, RAM), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (12)

1. a disposal route for script file, is characterized in that, described method comprises:
In the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents;
Obscure compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
2. method according to claim 1, is characterized in that, described in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents, comprising:
Obtain the details of the objective function in described first script file;
According to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement;
Wherein, the details of described objective function comprise: the beginning line number of described objective function in described first script file and the end line number of described objective function in described first script file.
3. method according to claim 2, is characterized in that, before the details of the objective function in described first script file of described acquisition, described method also comprises:
Structure elucidation is carried out to described first script file, to obtain the details of candidate functions in described first script file;
Described objective function is obtained from described candidate functions.
4. method according to claim 3, is characterized in that, the details of described candidate functions comprise the title of candidate functions; From described candidate functions, obtain described objective function, comprising:
Obtaining needs arrangement abnormalities to catch the title of the candidate functions of statement;
The candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement is obtained, using as described objective function from described candidate functions.
5. method according to claim 2, is characterized in that, described method also comprises:
When described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, perform described exception catching statement, to obtain abnormal details;
Described abnormal details comprise: the filename and the non-conformance description information that occur the beginning line number of the objective function of operation exception in described first script file, end line number, described first script file.
6. method according to claim 5, is characterized in that, described method also comprises:
Described abnormal details are sent to server, so that described abnormal details are pushed to user by described server.
7. a disposal system for script file, is characterized in that, described system comprises:
Statement dispensing unit, in the first script file, for the objective function arrangement abnormalities in described first script file catches statement, to generate crus secunda presents;
Script processing unit, for obscuring compression process to described crus secunda presents, to generate the 3rd script file, described 3rd script file for running on network.
8. system according to claim 7, is characterized in that, described statement dispensing unit, specifically for:
Obtain the details of the objective function in described first script file;
According to the details of described objective function, in described first script file, for described objective function arrangement abnormalities catches statement;
Wherein, the details of described objective function comprise: the beginning line number of described objective function in described first script file and the end line number of described objective function in described first script file.
9. system according to claim 8, is characterized in that, described system also comprises:
Script resolution unit, for carrying out structure elucidation to described first script file, to obtain the details of candidate functions in described first script file;
Function screening unit, for obtaining described objective function from described candidate functions.
10. system according to claim 9, is characterized in that, the details of described candidate functions comprise the title of candidate functions; Described function screening unit, specifically for:
Obtaining needs arrangement abnormalities to catch the title of the candidate functions of statement;
The candidate functions matched with the title needing arrangement abnormalities to catch the candidate functions of statement is obtained, using as described objective function from described candidate functions.
11. systems according to claim 8, is characterized in that, described system also comprises:
Exception catching unit, when described 3rd script file runs on network, if operation exception appears in the objective function in described 3rd script file, performs described exception catching statement, to obtain abnormal details;
Described abnormal details comprise: the filename and the non-conformance description information that occur the beginning line number of the objective function of operation exception in described first script file, end line number, described first script file.
12. systems according to claim 11, is characterized in that, described system also comprises:
Abnormal output unit, for described abnormal details are sent to server, so that described abnormal details are pushed to user by described server.
CN201510562643.XA 2015-09-07 2015-09-07 A kind of processing method and system of script file Active CN105224451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510562643.XA CN105224451B (en) 2015-09-07 2015-09-07 A kind of processing method and system of script file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510562643.XA CN105224451B (en) 2015-09-07 2015-09-07 A kind of processing method and system of script file

Publications (2)

Publication Number Publication Date
CN105224451A true CN105224451A (en) 2016-01-06
CN105224451B CN105224451B (en) 2018-12-14

Family

ID=54993436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510562643.XA Active CN105224451B (en) 2015-09-07 2015-09-07 A kind of processing method and system of script file

Country Status (1)

Country Link
CN (1) CN105224451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824754A (en) * 2016-03-17 2016-08-03 广州多益网络股份有限公司 Method for abnormally capturing and uploading Python of client program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430662A (en) * 2008-12-09 2009-05-13 东信和平智能卡股份有限公司 Method for debugging Java language program and virtual machine program together
CN101593147A (en) * 2009-04-15 2009-12-02 卡斯柯信号有限公司 Abnormal information dump method based on symbol file
US20100257541A1 (en) * 2007-06-30 2010-10-07 Darren Davis Marking and/or Coding
CN104881425A (en) * 2014-11-13 2015-09-02 安徽四创电子股份有限公司 WebGIS (geographic information system) map optimization based gradation loading method for tens of thousands of cameras

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100257541A1 (en) * 2007-06-30 2010-10-07 Darren Davis Marking and/or Coding
CN101430662A (en) * 2008-12-09 2009-05-13 东信和平智能卡股份有限公司 Method for debugging Java language program and virtual machine program together
CN101593147A (en) * 2009-04-15 2009-12-02 卡斯柯信号有限公司 Abnormal information dump method based on symbol file
CN104881425A (en) * 2014-11-13 2015-09-02 安徽四创电子股份有限公司 WebGIS (geographic information system) map optimization based gradation loading method for tens of thousands of cameras

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824754A (en) * 2016-03-17 2016-08-03 广州多益网络股份有限公司 Method for abnormally capturing and uploading Python of client program
CN105824754B (en) * 2016-03-17 2018-11-13 广州多益网络股份有限公司 The method of the Python exception catchings and upload of client-side program

Also Published As

Publication number Publication date
CN105224451B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN105117159B (en) A kind of character processing method and terminal
CN103345738A (en) Object detection method and device based on area of interest
CN104881224A (en) Method and device for adding cards
CN103927230A (en) Memory usage feedback method and device
CN105183184A (en) Character processing method and terminal
CN105574089A (en) Mapping knowledge domain generation method and device, and object comparison method and device
CN105739897A (en) Touch operation processing method and device, and terminal
CN104375933A (en) Unit testing method and device
CN105426759A (en) URL legality determining method and apparatus
CN103279276B (en) The method of locating information and device
CN103984697A (en) Barcode information processing method, device and system
CN104809063A (en) Test method and device of distributed system
CN105045412A (en) Method and system for generating candidate item of input method
CN103177096A (en) Page element positioning method based on text attribute and page element positioning device based on text attribute
CN104615689A (en) Searching method and device
CN105224451A (en) A kind of disposal route of script file and system
CN104580378A (en) Installation package processing method and device
CN103399737B (en) Multi-media processing method based on speech data and device
CN104820695A (en) Method and device for resource acquisition
CN103354091B (en) Based on audio feature extraction methods and the device of frequency domain conversion
CN105528334A (en) Method for processing document operation and terminal
CN104881308A (en) Application program handling method and device
CN103744578A (en) Method and device for text selection on basis of focus area
CN102999556B (en) Text search method, device and terminal device
CN108763050A (en) A kind of detection method and device of application memory leakage

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant