文章分类 -  JS

摘要:cropperjs是一款非常强大却又简单的图片裁剪工具,它可以进行非常灵活的配置,支持手机端使用,支持包括IE9以上的现代浏览器。 官方github文档:https://github.com/fengyuanchen/cropperjs `# cropper - 裁剪图片 - IE9+ 使用 cro 阅读全文
posted @ 2022-04-15 09:24 骆驼f 阅读(1763) 评论(0) 推荐(0)
摘要:var uploadInst = upload.render({ elem: '.pictureBtn' ,method: "post" ,accept: 'images' ,acceptMime:'image/png,image/jpg,image/jpeg' ,url: ctx + "/base 阅读全文
posted @ 2021-10-22 17:26 骆驼f 阅读(479) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-22 17:23 骆驼f 阅读(194) 评论(0) 推荐(0)
摘要:#js代码 //上传头像的方法 var uploadInst = upload.render({ elem: '#test1' /根据绑定id,打开本地图片/ ,url: '/reg' /上传后台接受接口/ ,auto: false /true为选中图片直接提交,false为不提交根据bindAct 阅读全文
posted @ 2021-08-30 10:59 骆驼f 阅读(2379) 评论(0) 推荐(0)