详细说明:
html: js: [removed][removed] [removed][removed] [removed] $(function () { $("#btn").click(function () { $.ajaxFileUpload({ url: "https://cllc.me/sc_lease/lease/api/upload/uploadImg", type:'post', secureuri: false, //是否需要安全协议 fileElementId: 'file', //文件上传域的ID //dataType: 'json', //返回值类型 success: function (data, status,message) { console.log('1', data,status,message); }, error: function (data, status, e) { console.log('上传图片的err'); } }); }) [removed] ...展开收缩