当前位置:网站首页>fileinput.js php,fileinput
fileinput.js php,fileinput
2022-06-26 13:32:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
$(“#uploadfile”).fileinput({
theme: ‘explorer-fa’,
uploadUrl: upload_url + “?catalog=9”,
language: ‘zh’,
overwriteInitial: false,
initialPreviewAsData: true,
maxFileCount: 3,
initialPreview: pics,
initialPreviewConfig: pic_configs,
showAjaxErrorDetails:true
}).on(“fileuploaded”, function (event, data, previewId, index) { //上传成功的回调
console.log(“上传成功”);
var file_url = data.response.url;
//增加隐藏域
$(“#” + previewId).find(“.kv-file-remove”).attr(“data-key”, file_url);
$(“#” + previewId).append(“”);
}).on(‘filedeleted’, function (event, id, index) { //删除原图片成功的回调
console.log(‘id = ‘ + id + ‘, index = ‘ + index);
alert(“删除原图成功时的回调”);
}).on(‘filesuccessremove’, function (event, key) { //删除新图片的回调
//走ajax删除临时图片
var file_path = $(“#” + key).find(“.kv-file-remove”).attr(“data-key”);
ajaxDelOssTemp(del_url, file_path);
});
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/133837.html原文链接:https://javaforall.cn
边栏推荐
- ArcGIS secondary development -- arcpy batch automatic map publishing service
- How to call self written functions in MATLAB
- Memory considerations under bug memory management
- [sdoi2013] forest
- Common evaluation indexes of classification model -- confusion matrix and ROC curve
- A标签去掉下划线
- Stream常用操作以及原理探索
- Difference between classification and regression
- Eigen(3):error: ‘Eigen’ has not been declared
- C language | Consortium
猜你喜欢
Installation and uninstallation of MySQL software for windows
布局管理器~登录界面的搭建实例
Experience sharing of mathematical modeling: comparison between China and USA / reference for topic selection / common skills
Never use redis expired monitoring to implement scheduled tasks!
Eigen(3):error: ‘Eigen’ has not been declared
Related knowledge of libsvm support vector machine
Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)
量化框架backtrader之一文读懂observer观测器
9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》
MySQL主从复制与读写分离
随机推荐
ThreadLocal giant pit! Memory leaks are just Pediatrics
虫子 运算符重载的一个好玩的
Common evaluation indexes of classification model -- confusion matrix and ROC curve
[ahoi2005] route planning
Comparison of disk partition modes (MBR and GPT)
常用控件及自定义控件
虫子 类和对象 中
array
Setup instance of layout manager login interface
Obtain information about hard disk and volume or partition (capacity, ID, volume label name, etc.)
从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭
Linear basis count (k large XOR sum)
When drawing with origin, capital letter C will appear in the upper left corner of the chart. The removal method is as follows:
Caelus - full scene offline mixed Department solution
Intellij IDEA--格式化SQL文件的方法
Difference between classification and regression
9 regulations and 6 prohibitions! The Ministry of education and the emergency management department jointly issued the nine provisions on fire safety management of off campus training institutions
"Scoi2016" delicious problem solution
[sdoi2013] forest
Leaflet load day map