I've packed all the files I've used and downloaded them myself:
Https://files.cnblogs.com/files/lguow/lib.rar
The core code is as follows:
<inputtype= "hidden"name= "Avatar"ID= "Avatar"><imgsrc=""alt=""ID= "Avatarshow"width= "200px"Height= "200px"><span>Upload Avatar</span><inputtype= "File"name= "File"ID= "File"onchange= "uploadimg ();" ><Script>functionuploadimg () {Debugger; if($("#file"). Val ()!= ""{$.ajaxfileupload ({type:"POST", URL:"/selfsuperxxxxx/uploadfile",//Background InterfaceDataType:"JSON", Fileelementid:"file", //the ID of the fileSuccess:function(d) {if(D.code== 0) {js.showmessage ("Upload Successful"); //Picture Display $("#avatar"). attr ("value", D.data.url); $("#avatarShow"). attr ("src", D.data.url); }}, Error:function() {Js.showmessage ("Upload failed"); }, }); } Else{js.showmessage ("Please select a file first"); }}</script.
The number of words to use ..... The word count is used for ......... ............. The number of words to be used ......... ..... The number of words to be used ........ ....... The number of words used ... The number of words used ..... The number of words to be used ....... ..... The number of words used ..... The number of words with the number of words with the number of words with
jquery for uploading images