欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ExtJS 下载,保存,打印传递大量数据解决办法!

程序员文章站 2022-06-08 11:06:57
...

直接看代码:

    function openWindowByPost(url,name1,value1,name2,value2){

         var newwindow=window.open(url);

         newwindow.document.write(

             <html>

              <body>

                   <form id="formidA" action='+url+',method="post">

                        <input  type="hidden" name='+name1+'  value='+value1+' />

                       <input type="hidden" name='+name2+' value='+value2+' />

                  </form>

            </body>

       </html>);//封装一个form表单

     return newwindow;

     }



//调用

newwindow= openWindowByPost(url,name1,value1,name2,value2);

newwindow.document.getElementById('formidA').submit();


//搞定

相关标签: HTML