CN106126276B - A kind of device, method and system for calling transmitting assembly - Google Patents

A kind of device, method and system for calling transmitting assembly Download PDF

Info

Publication number
CN106126276B
CN106126276B CN201610437338.2A CN201610437338A CN106126276B CN 106126276 B CN106126276 B CN 106126276B CN 201610437338 A CN201610437338 A CN 201610437338A CN 106126276 B CN106126276 B CN 106126276B
Authority
CN
China
Prior art keywords
file
pattern
mode
uploads
transmitting assembly
Prior art date
Application number
CN201610437338.2A
Other languages
Chinese (zh)
Other versions
CN106126276A (en
Inventor
冯永青
Original Assignee
浪潮电子信息产业股份有限公司
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 浪潮电子信息产业股份有限公司 filed Critical 浪潮电子信息产业股份有限公司
Priority to CN201610437338.2A priority Critical patent/CN106126276B/en
Publication of CN106126276A publication Critical patent/CN106126276A/en
Application granted granted Critical
Publication of CN106126276B publication Critical patent/CN106126276B/en

Links

Abstract

The present invention provides a kind of device, method and system for calling transmitting assembly, the device is connected at least one transmitting assembly of peripheral hardware, the corresponding default parameters of each transmitting assembly and default value that peripheral hardware is determined by encapsulating construction unit, are packaged default parameters and default value;Modulation parameter is determined by interactive unit, receives the corresponding parameter value of modulation parameter of input, and sends the corresponding parameter value of modulation parameter;The default parameters and corresponding default value that encapsulation construction unit encapsulation is loaded by interface, receive and parse through the corresponding parameter value of modulation parameter of interactive unit transmission, according to default value and the parameter value parsed, call the target transmitting assembly of peripheral hardware.Scheme provided by the invention can effectively improve the efficiency of application and development.

Description

A kind of device, method and system for calling transmitting assembly

Technical field

The present invention relates to computer application technology, in particular to a kind of device for calling transmitting assembly, method and it is System.

Background technique

Recently as the development of front end applications, there is miscellaneous transmitting assembly and selected for application developer, After application developer selectes transmitting assembly, the various parameters using customized transmitting assembly for oneself exploitation are needed, for It needs for the application of multiple transmitting assemblies, application developer needs to configure various parameters for each transmitting assembly, due to matching It usually include the higher parameter of some complexities in the parameter set, needing to consume application developer longer time is each Transmitting assembly configuration parameter causes the efficiency of application and development lower.

Summary of the invention

The embodiment of the invention provides a kind of device, method and system for calling transmitting assembly, can effectively improve and answer With the efficiency of exploitation.

A kind of device calling transmitting assembly, is connected at least one transmitting assembly of peripheral hardware, comprising: encapsulation building is single Member, interactive unit and interface, wherein

The encapsulation construction unit, for determining the corresponding default parameters of each transmitting assembly and default value of peripheral hardware, The default parameters and default value are packaged;

The interactive unit receives the corresponding parameter value of the modulation parameter of input, concurrently for determining modulation parameter Send the modulation parameter corresponding parameter value;

The interface receives simultaneously for loading the default parameters and corresponding default value of the encapsulation construction unit encapsulation The corresponding parameter value of the modulation parameter that the interactive unit is sent is parsed, according to the default value and the parameter parsed Value, calls the target transmitting assembly of peripheral hardware.

Preferably, above-mentioned apparatus further comprises: display unit, wherein

The encapsulation construction unit is further used for encapsulating the mode and pattern that at least one file uploads, is the envelope The mode and pattern that each file uploads in the mode and pattern that at least one file of dress uploads construct corresponding html member Plain attribute;

The interactive unit is further used for receiving at least one target html element property values of input, and sends institute State at least one target html element property values;

The interface is further used for receiving at least one target html element property values that the interactive unit is sent, At least one target html element property values are parsed, according at least one target html element property values, described It encapsulates in the mode and pattern of at least one file upload of construction unit encapsulation, the targeted manner and sample of the upload that selects files Formula, and targeted manner and pattern that the file uploads are sent to the target transmitting assembly of the peripheral hardware;

The display unit, the file arrived for the target transmitting assembly and the interface according to the peripheral hardware upload Targeted manner and pattern, display file upload dialog box and file upload button.

Preferably, the encapsulation construction unit, for by the corresponding default parameters of each transmitting assembly of peripheral hardware and silent Recognize value to be encapsulated into corresponding webuploader.js file, and stores the webuploader.js file;

The interactive unit is adjusted for determining the server end address that file uploads and the request parameter list that file uploads Variable element receives the server end address that the file uploads and the corresponding parameter value of request parameter list that file uploads;

The interface is further used for that each corresponding introducing path of webuploader.js file is arranged, according to institute Introducing path is stated, webuploader.js file is loaded.

Preferably, the encapsulation construction unit, for encapsulate monofile upload mode and pattern, multiple document uploading mode and Pattern, free hand drawing piece upload mode and pattern and more pictures upload mode and pattern, wherein monofile uploads mode and pattern/mono- Picture uploads mode and pattern, comprising: adds " selection " button on the right side of element, " upload " is added after filesselected, " is deleted Except " button and " selection " button is hidden, and show upload progress;Multiple document uploading mode and pattern/more pictures upload mode and Pattern, comprising: add the Add Files button, " starting to upload " button and the " Cancel " button for element, pass through " addition file " Button adds at least one file, and shows upload progress.

A method of transmitting assembly is called, at least one transmitting assembly is connected, determines that each transmitting assembly is corresponding Default parameters and default value are packaged the default parameters and default value;Further include:

It determines modulation parameter, receives the corresponding parameter value of the modulation parameter of input;

The default parameters and corresponding default value of the encapsulation are loaded, and parses the corresponding parameter value of the modulation parameter;

According to the default value and the parameter value parsed, the target transmitting assembly of peripheral hardware is called.

Preferably, the above method further comprises: encapsulating the mode and pattern that at least one file uploads, is the encapsulation The mode that uploads of at least one file and pattern in the mode that uploads of each file and pattern construct corresponding html element Attribute;

After the corresponding parameter value of the modulation parameter for receiving input, in the default of the load encapsulation Before parameter and corresponding default value, further comprise: receiving at least one target html element property values of input;

After the corresponding parameter value of the parsing modulation parameter, the target transmitting assembly for calling peripheral hardware it Before, further comprise: at least one target html element property values is parsed, according at least one target html element Attribute value, in the mode and pattern that at least one file uploads, the targeted manner and pattern of the upload that selects files;

After the target transmitting assembly for calling peripheral hardware, further comprise: the targeted manner that the file is uploaded It is sent to the target transmitting assembly of the peripheral hardware with pattern, according to targeted manner and pattern that the file uploads, shows file The button that the dialog box and file of upload upload.

Preferably, described that the default parameters and default value are packaged, comprising: to encapsulate default parameters and default value Into corresponding webuploader.js file, and store the webuploader.js file;

The determining modulation parameter receives the corresponding parameter value of the modulation parameter of input, comprising: determines that file uploads Server end address and the request parameter list that uploads of file be modulation parameter, receive the server end address that the file uploads Parameter value corresponding with the request parameter list that file uploads;

The default parameters of the load encapsulation, comprising: each is set webuploader.js file is corresponding and draw Enter path, according to the introducing path, loads webuploader.js file.

Preferably, the mode and pattern that at least one file uploads, comprising:

Encapsulate that monofile uploads mode and pattern, multiple document uploading mode and pattern, free hand drawing piece uploads mode and pattern and More pictures upload any one or more in mode and pattern.

A kind of system for calling transmitting assembly, comprising: the device and at least one of any one of the above calling transmitting assembly Transmitting assembly, wherein

In at least one transmitting assembly, each transmitting assembly, for receiving the device for calling transmitting assembly Calling, and the mode and pattern that at least one file uploads, output file are encapsulated according to the device for calling transmitting assembly Upload/picture uploads dialog box.

Preferably, at least one transmitting assembly, comprising: any one in Web Uploader and JS or two kinds.

The embodiment of the invention provides a kind of device, method and system for calling transmitting assembly, which passes through encapsulation structure The corresponding default parameters of each transmitting assembly and default value that unit determines peripheral hardware are built, default parameters and default value are sealed Dress, realize the encapsulation to default parameters and default value, can by calling directly packaged default parameters and default value, and It is inputted without user, the corresponding parameter value of the parameter of modulation is needed in addition, can receive by interactive unit, to pass through interface The target transmitting assembly for calling peripheral hardware, by calling directly packaged default parameters, and successively writes parameter without user, from And it can effectively improve the efficiency of application and development.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.

Fig. 1 is a kind of structural schematic diagram of device for calling transmitting assembly provided by one embodiment of the present invention;

Fig. 2 be another embodiment of the present invention provides a kind of calling transmitting assembly device structural schematic diagram;

Fig. 3 is a kind of flow chart of method for calling transmitting assembly provided by one embodiment of the present invention;

Fig. 4 is a kind of flow chart of the method for calling transmitting assembly that another embodiment of the present invention provides;

Fig. 5 is a kind of schematic diagram of the Show Styles of transmitting assembly provided by one embodiment of the present invention;

Fig. 6 is a kind of structural schematic diagram of system for calling transmitting assembly provided by one embodiment of the present invention.

Specific embodiment

In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.

As shown in Figure 1, the embodiment of the present invention provides a kind of device for calling transmitting assembly, uploaded at least one of peripheral hardware Component is connected, comprising: encapsulation construction unit 101, interactive unit 102 and interface 103, wherein

Construction unit 101 is encapsulated, it is right for determining the corresponding default parameters of each transmitting assembly and default value of peripheral hardware Default parameters and default value are packaged;

Interactive unit 102 receives the corresponding parameter value of modulation parameter of input, and send tune for determining modulation parameter The corresponding parameter value of variable element;

Interface 103, the default parameters and corresponding default value encapsulated for loading encapsulation construction unit 101, receives and solves It analyses the modulation parameter corresponding parameter value that interactive unit 102 is sent and peripheral hardware is called according to default value and the parameter value parsed Target transmitting assembly.

In the embodiment shown in fig. 1, determine that each transmitting assembly of peripheral hardware is corresponding silent by encapsulating construction unit Recognize parameter and default value, default parameters and default value are packaged, realizes the encapsulation to default parameters and default value, it can be with It by calling directly packaged default parameters and default value, and is inputted without user, in addition, can receive by interactive unit The corresponding parameter value of the parameter of modulation is needed, so that the target transmitting assembly of peripheral hardware is called by interface, by calling directly envelope The default parameters installed, and parameter is successively write without user, it can effectively improve the efficiency of application and development.

As shown in Fig. 2, in an alternative embodiment of the invention, above-mentioned apparatus further comprises: display unit 201, wherein

Construction unit 101 is encapsulated, is further used for encapsulating the mode and pattern that at least one file uploads, extremely for encapsulation The mode and pattern that each file uploads in the mode and pattern that a kind of few file uploads construct corresponding html element property;

Interactive unit 102 is further used for receiving at least one target html element property values of input, and sends at least One target html element property values;

Interface 103 is further used for receiving at least one target html element property values that interactive unit 102 is sent, solution At least one target html element property values are analysed, according at least one target html element property values, in encapsulation construction unit 101 In the mode and pattern that at least one file of encapsulation uploads, the targeted manner and pattern of the upload that selects files, and will be on file The targeted manner and pattern of biography are sent to the target transmitting assembly of peripheral hardware;

Display unit 201, the target for the file upload that the target transmitting assembly and interface 103 according to peripheral hardware receive Mode and pattern, the button that the dialog box and file that display file uploads upload.

In still another embodiment of the process, construction unit is encapsulated, for each transmitting assembly of peripheral hardware is corresponding silent Recognize parameter and default value is encapsulated into corresponding webuploader.js file, and stores webuploader.js file;

Interactive unit, for determining that the server end address that file uploads and the request parameter list that file uploads are that modulation is joined Number receives the server end address that file uploads and the corresponding parameter value of request parameter list that file uploads;

Interface is further used for that each corresponding introducing path of webuploader.js file is arranged, according to introducing road Diameter loads webuploader.js file.

In an alternative embodiment of the invention, construction unit is encapsulated, uploads mode and pattern, multifile for encapsulating monofile Upload mode and pattern, free hand drawing piece upload mode and pattern and more pictures upload mode and pattern, wherein monofile uploads mode Mode and pattern are uploaded with pattern/free hand drawing piece, comprising: are added " selection " button on the right side of element, added after filesselected " upload ", " deletion " button simultaneously hide " selection " button, and show upload progress;Multiple document uploading mode and pattern/more pictures Upload mode and pattern, comprising: add the Add Files button, " starting to upload " button and the " Cancel " button for element, pass through The Add Files button adds at least one file, and shows upload progress.

As shown in figure 3, the embodiment of the present invention provides a kind of method for calling transmitting assembly, this method may include following step It is rapid:

Step 301: connecting at least one transmitting assembly, determine the corresponding default parameters of each transmitting assembly and default Value, is packaged default parameters and default value;

Step 302: determining modulation parameter, receive the corresponding parameter value of modulation parameter of input;

Step 303: loading the default parameters and corresponding default value of encapsulation, and parse the corresponding parameter value of modulation parameter;

Step 304: according to default value and the parameter value parsed, calling the target transmitting assembly of peripheral hardware.

In an embodiment of the invention, by way of encapsulating at least one file and uploading and pattern, further to mention The efficiency of high application and development, the above method further comprise: the mode and pattern that at least one file uploads are encapsulated, for encapsulation The mode and pattern that each file uploads in the mode and pattern that at least one file uploads construct corresponding html element category Property;After step 302, before step 303, further comprise: receiving at least one target html element property values of input; After step 303, before step 304, further comprise: at least one target html element property values are parsed, according at least One target html element property values, in the mode and pattern that at least one file uploads, the target side for the upload that selects files Formula and pattern;Further comprise after the step 304: targeted manner and pattern that file uploads are sent in the target of peripheral hardware Component is passed, according to targeted manner and pattern that file uploads, the button of dialog box and file upload that display file uploads.Example Such as: user only needs to input<input type=" mutilate-files ">, can select multiple document uploading mode and pattern, Then the multiple document uploading mode and pattern are exported, to receive upper transmitting file, carries out file upload.

In an embodiment of the invention, default parameters and default value are easily obtained in order to convenient, while flexibly Be configured according to user demand, the specific embodiment of step 301, comprising: be encapsulated into default parameters and default value pair In the webuploader.js file answered, and store the webuploader.js file;The specific embodiment of step 302, It comprises determining that the server end address that file uploads and the request parameter list that file uploads are modulation parameter, receives file and upload Server end address and file upload the corresponding parameter value of request parameter list;The specific embodiment of step 303, comprising: Each corresponding introducing path of webuploader.js file is set, according to introducing path, loads webuploader.js text Part.Through the process, when webuploader.js file path changes, it is only necessary to modify introducing path, can be realized Webuploader.js file is loaded, additionally, due to the address difference for the server that different files upload, by uploading file Server address be set as modulation parameter, user can input according to their own needs so that call transmitting assembly it is cleverer It is living.

In an embodiment of the invention, in order to guarantee the diversity of upload mode and pattern, for according to user demand It is selected, the mode and pattern that above-mentioned at least one file uploads, comprising: encapsulation monofile uploads mode and pattern, mostly literary Part uploads mode and pattern, free hand drawing piece uploads mode and pattern and more pictures upload in mode and pattern any one or it is more Kind.Such as: monofile, which uploads mode, and pattern/free hand drawing piece uploads mode and pattern can be set to add on the right side of element " selection " button adds " upload ", " deletion " button after filesselected and hides " selection " button, and shows upload progress; Multiple document uploading mode and pattern/more pictures upload mode and pattern and can be set to element and add the Add Files button, " open Beginning upload " button and the " Cancel " button, add at least one file by the Add Files button, and show upload progress.

As shown in figure 4, another embodiment of the present invention provides a kind of method for calling transmitting assembly, this method may include Following steps:

Step 401: connecting at least one transmitting assembly, determine the corresponding default parameters of each transmitting assembly and default Value;

Step 402: default parameters and default value are encapsulated into webuploader.js file;

By connecting at least one transmitting assembly such as Web Uploader or JS in step 401 and step 402, then root The calling to a variety of transmitting assemblies may be implemented according to the demand in application development process, due to each transmitting assembly parameter not Together, need to determine corresponding default parameters and default value respectively for different components, such as: for Web Uploader, DisableGlobalDnd default value is that false (forbid pulling, and is taken as file to prevent picture is dragged in browser and beats by default Open), some parameters being of little use or application can also be set as default parameters to the fixed parameter of upload demand, and assign silent Recognize value, it can also be according to the actual demand allocating default parameter item of application.Form is as follows:

In addition, in this step, by that default parameters and default value will be encapsulated into webuploader.js file, user Only it needs to be determined that modification webuploader.js file store path, can realize load default parameters and default automatically Value, and this partial parameters value is inputted without user again.

Step 403: each corresponding introducing path of webuploader.js file is set;

The step obtains the introducing path i.e. store path of webuploader.js file, can be rear by the introducing path During continuous successfully in webuploader.js file default parameters and default value load.

Step 404: encapsulating the mode and pattern that at least one file uploads;

The mode and pattern that the file encapsulated in this step uploads, comprising: monofile uploads mode and pattern, multifile Upload mode and pattern, free hand drawing piece upload mode and pattern and more pictures upload any one or more in mode and pattern, Wherein, monofile uploads mode and pattern/free hand drawing piece uploads mode and pattern is to add " selection " button on the right side of element, when " upload ", " deletion " button are added after filesselected and hides " selection " button, and show upload progress;Multiple document uploading mode The Add Files button, " starting to upload " button and " cancellation " are added for element and is pressed with pattern/more pictures upload mode and pattern Button adds at least one file by the Add Files button, and shows upload progress.The display box of the element files referred to.

Step 405: for encapsulation at least one file upload mode and pattern in each file upload mode and Pattern constructs corresponding html element property;

In this step, correspond to monofile and upload mode and pattern, multiple document uploading mode and pattern, the upload of free hand drawing piece Mode and pattern and more pictures upload mode and pattern element property be respectively file, mutilate-files, image, Tetra- kinds of mutilate-images, input form is as follows:

<input type=" file " ...>,<input type=" mutilate-files " ...>etc..

Step 406: determining modulation parameter, receive the corresponding parameter value of modulation parameter of input;

Determining modulation parameter is mainly some simple in this step, and user holds catchy parameter, such as: on file The server end address (server) of biography, the request parameter list (formData) etc. that file uploads, which can satisfy The demand of user ensure that the flexibility for calling transmitting assembly.Such as: the server end address that setting file uploads (server):

Step 407: receiving at least one target html element property values of input;

Such as: user wants monofile and uploads mode and pattern, then inputs<input type=" file " ...>.

Step 408: according to introducing path, loading webuploader.js file, and parse the corresponding parameter of modulation parameter Value;

Step 409: according to default value and the parameter value parsed, calling the target transmitting assembly of peripheral hardware;

The process of step 408 and step 409, which is realized, calls transmitting assembly by parameter value, and still, transmitting assembly is shown Sample formula then needs following step 410 to step 413 to realize.

Step 410: parsing at least one target html element property values;

Step 411: according at least one target html element property values, in the mode and pattern of the upload of at least one file In, the targeted manner and pattern of the upload that selects files;

Step 412: targeted manner and pattern that file uploads are sent to the target transmitting assembly of peripheral hardware;

Step 413: the targeted manner and pattern uploaded according to file, what the dialog box and file that display file uploads uploaded Button.

Step 410 to step 413 realization process: for example: parse two target html element property values, be < Input type=" file " ... > i.e. monofile uploads mode and pattern, then, will according to the setting of application demand and front parameter The two monofiles upload the different location that mode and pattern are respectively displayed on application, which uploads the aobvious of mode and pattern Show form as shown in figure 5, before non-load document, in " selection " button (Fig. 5-1) of the right side of display box display addition, when After filesselected f123.zip, addition " upload ", " deletion " button simultaneously hide " selection " button (Fig. 5-2).

As shown in fig. 6, the embodiment of the present invention provides a kind of system for calling transmitting assembly, which includes: above-mentioned any A kind of device 601 calling transmitting assembly and at least one transmitting assembly 602, wherein

In at least one transmitting assembly 602, each transmitting assembly, for receiving the device 601 for calling transmitting assembly It calls, and encapsulates the mode and pattern of at least one file upload according to the device 601 of calling transmitting assembly, on output file Biography/picture uploads dialog box.

In an alternative embodiment of the invention, above-mentioned at least one transmitting assembly, comprising: appointing in Web Uploader and JS Meaning is one or two kinds of.

According to above scheme, various embodiments of the present invention are at least had the following beneficial effects:

1. the corresponding default parameters of each transmitting assembly and default value of peripheral hardware are determined by encapsulating construction unit, to silent Recognize parameter and default value is packaged, realizes the encapsulation to default parameters and default value, it can be packaged by calling directly Default parameters and default value, and without user input, in addition, can receive by interactive unit need modulation parameter correspondence Parameter value, to call the target transmitting assembly of peripheral hardware by interface, by calling directly packaged default parameters, and nothing Palpus user successively writes parameter, can effectively improve the efficiency of application and development.

2. by way of encapsulating at least one file and uploading and pattern, for the mode that uploads of at least one file of encapsulation The mode and pattern uploaded with each file in pattern constructs corresponding html element property, by receive input at least one A target html element property values parse at least one target html element property values, can be at least one file In the mode and pattern of biography, the targeted manner and pattern of the upload that selects files;That is, user only needs input element attribute Value can orient the mode and pattern that corresponding file uploads, and the efficiency of application and development be further improved, in addition, of the invention Embodiment encapsulate that monofile uploads mode and pattern, multiple document uploading mode and pattern, free hand drawing piece uploads mode and pattern and More pictures upload any one or more in mode and pattern, have unified the Show Styles of transmitting assembly.

3. being received by determining that the server end address that file uploads and the request parameter list that file uploads are modulation parameter The corresponding parameter value of request parameter list that the server end address and file that the file of user's input uploads upload, allows users to According to the required parameter that server end address and file upload are arranged according to their own needs, so that provided in an embodiment of the present invention Calling the device of transmitting assembly has certain flexibility, in addition, by webuploader.js Document encapsulation default parameters, when Webuploader.js file store path changes, and user only needs the introducing path changed in interface, and need not be to adding The path for being downloaded to each of transmitting assembly parameter is modified, and further reduces workload, to further improve Development efficiency.

It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements, It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged Except there is also other identical factors in the process, method, article or apparatus that includes the element.

Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light In the various media that can store program code such as disk.

Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (8)

1. a kind of device for calling transmitting assembly, which is characterized in that be connected at least one transmitting assembly of peripheral hardware, comprising: envelope Fill construction unit, interactive unit and interface, wherein
The encapsulation construction unit, for determining the corresponding default parameters of each transmitting assembly and default value of peripheral hardware, to institute It states default parameters and default value is packaged;
The interactive unit receives the corresponding parameter value of the modulation parameter of input, and send institute for determining modulation parameter State the corresponding parameter value of modulation parameter;
The interface is received and parsed through for loading the default parameters and corresponding default value of the encapsulation construction unit encapsulation The corresponding parameter value of the modulation parameter that the interactive unit is sent is adjusted according to the default value and the parameter value parsed With the target transmitting assembly of peripheral hardware;
Further comprise: display unit, wherein
The encapsulation construction unit is further used for encapsulating the mode and pattern that at least one file uploads, is the encapsulation The mode and pattern that each file uploads in the mode and pattern that at least one file uploads construct corresponding html element category Property;
The interactive unit is further used for receiving at least one target html element property values of input, and transmission is described extremely Few target html element property values;
The interface is further used for receiving at least one target html element property values that the interactive unit is sent, parsing At least one target html element property values, according at least one target html element property values, in the encapsulation In the mode and pattern that at least one file of construction unit encapsulation uploads, the targeted manner and pattern of the upload that selects files, and Targeted manner and pattern that the file uploads are sent to the target transmitting assembly of the peripheral hardware;
The display unit, the mesh for the file upload that the target transmitting assembly and the interface according to the peripheral hardware arrive Mark mode and pattern, the button that the dialog box and file that display file uploads upload.
2. the apparatus according to claim 1, which is characterized in that
The encapsulation construction unit, for the corresponding default parameters of each transmitting assembly and default value of peripheral hardware to be encapsulated into pair In the webuploader.js file answered, and store the webuploader.js file;
The interactive unit, for determining that the server end address that file uploads and the request parameter list that file uploads are that modulation is joined Number receives the server end address that the file uploads and the corresponding parameter value of request parameter list that file uploads;
The interface is further used for that each corresponding introducing path of webuploader.js file is arranged, is drawn according to described Enter path, loads webuploader.js file.
3. the apparatus according to claim 1, which is characterized in that
The encapsulation construction unit uploads mode and pattern, multiple document uploading mode and pattern, free hand drawing piece for encapsulating monofile Upload mode and pattern and more pictures upload mode and pattern, wherein monofile uploads mode and pattern/free hand drawing piece uploads mode And pattern, comprising: add " selection " button on the right side of element, addition " upload ", " deletion " button and hidden after filesselected " selection " button is hidden, and shows upload progress;Multiple document uploading mode and pattern/more pictures upload mode and pattern, comprising: are Element adds the Add Files button, " starting to upload " button and the " Cancel " button, at least by the Add Files button addition One file, and show upload progress.
4. a kind of method for calling transmitting assembly, which is characterized in that connect at least one transmitting assembly, determine each upload group The corresponding default parameters of part and default value, are packaged the default parameters and default value;Further include:
It determines modulation parameter, receives the corresponding parameter value of the modulation parameter of input;
The default parameters and corresponding default value of the encapsulation are loaded, and parses the corresponding parameter value of the modulation parameter;
According to the default value and the parameter value parsed, the target transmitting assembly of peripheral hardware is called;
Further comprise: encapsulating the mode and pattern that at least one file uploads, is that at least one file of the encapsulation uploads Mode and pattern in the mode that uploads of each file and pattern construct corresponding html element property;
After the corresponding parameter value of the modulation parameter for receiving input, in the default parameters of the load encapsulation Before corresponding default value, further comprise: receiving at least one target html element property values of input;
After the corresponding parameter value of the parsing modulation parameter, before the target transmitting assembly for calling peripheral hardware, Further comprise: at least one target html element property values is parsed, according at least one target html element category Property value, in the mode and pattern that at least one file uploads, the targeted manner and pattern of the upload that selects files;
After the target transmitting assembly for calling peripheral hardware, further comprise: the targeted manner and sample that the file is uploaded Formula is sent to the target transmitting assembly of the peripheral hardware, and according to targeted manner and pattern that the file uploads, display file is uploaded Dialog box and file upload button.
5. according to the method described in claim 4, it is characterized in that,
It is described that the default parameters and default value are packaged, comprising: to be encapsulated into default parameters and default value corresponding In webuploader.js file, and store the webuploader.js file;
The determining modulation parameter receives the corresponding parameter value of the modulation parameter of input, comprising: determines the clothes that file uploads The request parameter list that business device end address and file upload is modulation parameter, receives server end address and text that the file uploads The corresponding parameter value of request parameter list that part uploads;
The default parameters of the load encapsulation, comprising: the corresponding introducing road of each webuploader.js file is set Diameter loads webuploader.js file according to the introducing path.
6. according to the method described in claim 5, it is characterized in that, mode and pattern that at least one file uploads, packet It includes:
It encapsulates monofile and uploads mode and pattern, multiple document uploading mode and pattern, free hand drawing piece upload mode and pattern and more figures Piece uploads any one or more in mode and pattern.
7. a kind of system for calling transmitting assembly characterized by comprising any calling upload group of claims 1 to 3 The device of part and at least one transmitting assembly, wherein
In at least one transmitting assembly, each transmitting assembly, for receiving the tune of the device for calling transmitting assembly With, and the mode and pattern that at least one file uploads being encapsulated according to the device for calling transmitting assembly, output file uploads/ Picture uploads dialog box.
8. system according to claim 7, which is characterized in that at least one transmitting assembly, comprising: Web Any one in Uploader and JS or two kinds.
CN201610437338.2A 2016-06-17 2016-06-17 A kind of device, method and system for calling transmitting assembly CN106126276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610437338.2A CN106126276B (en) 2016-06-17 2016-06-17 A kind of device, method and system for calling transmitting assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610437338.2A CN106126276B (en) 2016-06-17 2016-06-17 A kind of device, method and system for calling transmitting assembly

Publications (2)

Publication Number Publication Date
CN106126276A CN106126276A (en) 2016-11-16
CN106126276B true CN106126276B (en) 2019-03-08

Family

ID=57469742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610437338.2A CN106126276B (en) 2016-06-17 2016-06-17 A kind of device, method and system for calling transmitting assembly

Country Status (1)

Country Link
CN (1) CN106126276B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214203A (en) * 2010-04-06 2011-10-12 微软公司 Interactive application assistance, such as for web applications
CN104113594A (en) * 2014-07-04 2014-10-22 北京思特奇信息技术股份有限公司 Method and system for file uploading based on JS uploading assembly

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214203A (en) * 2010-04-06 2011-10-12 微软公司 Interactive application assistance, such as for web applications
CN104113594A (en) * 2014-07-04 2014-10-22 北京思特奇信息技术股份有限公司 Method and system for file uploading based on JS uploading assembly

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
js对webuploader的封装;风潇潇;《http://getby.cn/a/liulanqi/2016/0225/50.html》;20160225;第1页
前端上传组件Plupload;无双;《https://www.cnblogs.com/2050/p/3913184.html#!comments》;20140814;第1-2页

Also Published As

Publication number Publication date
CN106126276A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US8463303B2 (en) Mobile communication terminal and method of the same for outputting short message
US9167054B2 (en) Remote browsing session management
US10116487B2 (en) Management of interactions with representations of rendered and unprocessed content
US7865544B2 (en) Method and system for providing XML-based asynchronous and interactive feeds for web applications
US20140380184A1 (en) Remote browsing session management
US9158535B2 (en) Smart endpoint architecture
JP4405419B2 (en) Screen transmission device
KR101159396B1 (en) Efficient encoding of alternative graphic sets
CN101322096B (en) Metadata driven user interface
US8745573B2 (en) Platform-independent application development framework
US7254786B2 (en) System for transmitting and displaying icon resources group associated with remote application to a local computing system to facilitate virtualization of the remote application
US8789015B2 (en) Integrated application localization
JP6279475B2 (en) Custom optimization of web pages
US8990693B2 (en) System and method for distributed media personalization
US20090019133A1 (en) System, method and computer program for updating a web page in a web browser
WO2009126591A1 (en) Systems and methods for programming mobile devices
WO2013116577A1 (en) Systems and methods for media personalization using templates
US7428725B2 (en) Inserting devices specific content
Brinkmann et al. Embedding pure data with libpd
CN106445486A (en) Webpage construction and generation method and system
JP2001306308A (en) Method for defining class of data center application
JP2017168139A (en) Remote process execution management
US20140096014A1 (en) Method for enabling dynamic client user interfaces on multiple platforms from a common server application via metadata
US20060109240A1 (en) Apparatus and method for enhancing the capability of the display output of portable devices
US9992253B2 (en) Non-invasive remote access to an application program

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01