# simple_upfile_by_iframe **Repository Path**: itknight/simple_upfile_by_iframe ## Basic Information - **Project Name**: simple_upfile_by_iframe - **Description**: 通过iframe 实现 异步文件上传的最简单的关键代码实现(后台试用php) - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-07-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #simple_upfile_by_iframe 这个项目主要是演示了通过iframe来实现文件异步上传的前后台的关键代码。当然并没有做图片的实际后台处理。 ##关键知识点: * 在前端设置一个隐藏的iframe 并指定id; * 将上传文件的form表单,method设置为post,target通过id 设置给那个隐藏的iframe; * 前台定好回调函数,后台通过指定回调函数和返回数据来达成调用关系;