<div style="margin-top: 16px;background-color: white;padding-bottom: 12px">
<iframe id="ifrom" name="ifrom" frameborder="0" width="100%" height="500px"></iframe>
</div>
var report = loanReport(this.str, searchForm, this.report);//获取url路径,以及需要传递的参数
/**该方法为我自己写的获取url路径以及需要传递的参数的方法**/
var postForm = document.createElement("form");//创建form表单
postForm.method = "post";//设置请求方式
postForm.action = report[0];//设置url
postForm.target = "ifrom";//用来将数据提交到ifrom上(将页面展示在ifrom),删掉这一行会导致页面跳转
var custGroup = document.createElement("input");//创建input框,用以提交参数
custGroup.type ="hidden";//设置input样式
custGroup.name ="cust_groub";//这个是传值的名称,要记住
custGroup.value= report[1]//传值
postForm.appendChild(custGroup);//添加input框到form表单中
document.body.appendChild(postForm);//添加form表单到body
postForm.submit();//提交form表单
document.body.removeChild(postForm);//将body中的form表单删除