定义一个:
<iframe id="file_upload_return" hidden="true" name="file_upload_return"></iframe> <!-- 提交表单处理iframe框架 -->
<form id="fileOperationsForm" name="fileOperationsForm" target="file_upload_return" enctype="multipart/form-data" method="post">
$("#file_upload_return").load(function(){//获取iframe中的内容
var body = $(window.frames['file_upload_return'].document.body);
var data = eval('(' + body[0].textContent + ')');
});
温馨提示:内容为网友见解,仅供参考