Php+layui上傳Base64編碼圖片
一.引入layui 上傳插件
layui.use('upload', function(){
var upload = layui.upload;
var uploadInst = upload.render({
elem: '#uploadImg' //觸發(fā)事件元素
,url: url// 這里的請(qǐng)求沒啥作用,我只是不想讓它報(bào)接口異常提示,寫的臨時(shí)接口(不做處理的)
,exts:"jpg|png|jpeg"
...