http://fex.baidu.com/webuploader/
Official demo, I do not want to say, all kinds of problems. Reference Shuaibi Articles
Http://www.cnblogs.com/ismars/p/4176912.html
Using the bootstrap Code Baidu network address: HTTP://PAN.BAIDU.COM/S/1PJKJ9WF
You can change your own reference.
All files uploaded Uploader.on ("Uploadaccept", function (file, response) { //console.info (file) //console.info (Response.filepath) ----Assign a value---- $ ("#EditForm input[name= ' Header_ico") to the Avatar. Val ("http://" + Window.location.host + Response.filepath); Submit Form //if (haserror) { //////// through return False to tell the component that this file upload is wrong. // return false; //} });
For the page does not refresh, I only use this means, JS Slag said.
Start uploading $ ("#ctlBtn"). Click (function () { console.info (uploader) uploader.upload (); Return false;//page does not refresh });
Multi-image upload-Web Uploader