Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 php 使用 ajax 上传文件 Jquery。如果我传递 Jquery 数据我无法检索文件上传数据如何将 jquery 文件上传数据传递给 ajax。请一些帮助我如何通过 jquery ajax 和 php 上传文件..
您不能 AJAX 上传。
它基本上是一个假的 AJAX,使它看起来像是 AJAX 上传。
实际上发生的情况是上传表单被赋予target了附近的 iframe。这使它看起来像是 AJAX 上传,而实际上并非如此。
target
iframe 通常在其大小范围内被赋予一个 JS 函数,该函数在父窗口中触发一个函数,该函数显示某种消息“谢谢您的上传”。
当然,这只是真正的基本功能,您需要谷歌搜索更多示例,幸运的是那里有很多。