摘要:
1.父组件向子组件传递数据 阅读全文
摘要:
1 2 const uploadImg= function () { var formdata = new FormData(); formdata.append("pic", $('.addpic')[0].files[0]); $.ajax({ url: '', type: 'POST', data: formd... 阅读全文
摘要:
1//多张图片上传前预览 function previewFiles() { 2 var preview = document.querySelector('#box'); 3 var files = document.querySelector('input[type=file]').files 4 function readAndPreview(file) {... 阅读全文