解决方法:
1、在父页面获得iframe的window对象。
2、往iframe里写入form表单,form表单使用post传输,并且写入要传递的大长度参数。
3、父页面控制iframe的form提交。
js
var url = 'mubiao.jsp';
var data = '此处为大数据';
var html = '<form action="'+url+'" method="post" target="_self"
id="postData_form">'+
'<input id="wor_iteId" name="wor_iteId" type="hidden"
value="'+data+'"/>'+
'</form>';
document.getElementById('ifr_1').contentWindow.wirte(html);
document.getElementById('ifr_1').contentWindow.document.getElementById('postData_form').submit();
页面
<iframe id="ifr_1" src="about:blank" width="100%" height="140px" noresize>
#学习积累 分享到: 举报 浏览(381) 评论 转载
1、在父页面获得iframe的window对象。
2、往iframe里写入form表单,form表单使用post传输,并且写入要传递的大长度参数。
3、父页面控制iframe的form提交。
js
var url = 'mubiao.jsp';
var data = '此处为大数据';
var html = '<form action="'+url+'" method="post" target="_self"
id="postData_form">'+
'<input id="wor_iteId" name="wor_iteId" type="hidden"
value="'+data+'"/>'+
'</form>';
document.getElementById('ifr_1').contentWindow.wirte(html);
document.getElementById('ifr_1').contentWindow.document.getElementById('postData_form').submit();
页面
<iframe id="ifr_1" src="about:blank" width="100%" height="140px" noresize>
#学习积累 分享到: 举报 浏览(381) 评论 转载