当前位置:网站首页>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
边栏推荐
- 服务器创建虚拟环境跑代码
- C language ---getchar() and putchar()
- A标签去掉下划线
- 虫子 运算符重载的一个好玩的
- Codeforces Global Round 21A~D
- C language | the difference between heap and stack
- Introduction to 26 papers related to CVPR 2022 document image analysis and recognition
- Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
- 通俗语言说BM3D
- 8. Ribbon load balancing service call
猜你喜欢

Codeforces Global Round 21A~D

9 articles, 6 interdits! Le Ministère de l'éducation et le Ministère de la gestion des urgences publient et publient conjointement neuf règlements sur la gestion de la sécurité incendie dans les établ

C language | file operation and error prone points

登录认证服务

Win10 home vs pro vs enterprise vs enterprise LTSC

Matlab programming related knowledge

Installation and uninstallation of MySQL software for windows

hands-on-data-analysis 第三单元 模型搭建和评估

ThreadLocal giant pit! Memory leaks are just Pediatrics

Codeforces Global Round 21A~D
随机推荐
RISC-V 芯片架构新规范
Correlation analysis related knowledge
Pychar remotely connects to the server to run code
Practice with the topic of bit operation force deduction
Caelus - full scene offline mixed Department solution
Luogu p4513 xiaobaiguang Park
Wechat applet Registration Guide
Win10 home vs pro vs enterprise vs enterprise LTSC
虫子 内存管理 上
(improved) bubble sorting and (improved) cocktail sorting
VIM auto fill auto indent explanation
Educational Codeforces Round 117 (Rated for Div. 2)E. Messages
Difference between classification and regression
Gartner 2022 Top Strategic Technology Trends Report
程序员必备,一款让你提高工作效率N倍的神器uTools
Notes: the 11th and 12th generation mobile versions of Intel support the native thunderbolt4 interface, but the desktop version does not
C language ---getchar() and putchar()
虫子 类和对象 上
How to personalize VIM editor format (DIY)
When drawing with origin, capital letter C will appear in the upper left corner of the chart. The removal method is as follows: