js跨域post请求

2020-11-18 19:06

阅读:806

标签:style   blog   class   code   java   javascript   ext   color   get   string   html   

soscw.com,搜素材
 1 function funPostBack(srvMethod){
 2         /*
 3         var contentNR=$(document.getElementById("reportFrame").contentWindow.document).find("#content-container").html();
 4          contentNR=$("#x").text(contentNR).html();
 5         contentNR=contentNR.substring(0,400000);
 6         if(exec_obj==null){
 7             exec_obj = document.createElement(‘iframe‘);
 8             exec_obj.name = ‘tmp_frame‘;
 9             exec_obj.src = postbackUrl+"?parms="+contentNR;
10             exec_obj.style.display = ‘none‘;
11             document.body.appendChild(exec_obj);
12         }else{
13             exec_obj.src = postbackUrl+"?parms="+contentNR;
14         }*/
15         
16         var contentNR=$(document.getElementById("reportFrame").contentWindow.document).find("#content-container div.pageContentDIV.contentDIV").html();
17         if(document.getElementById("SMAL")!=null)
18         {
19             document.getElementById("SMAL").remove();//首先删除
20         }
21         var form ="
" + 22 " " + 23 " " + 24 "
"; 25 $("body").append("");//载入iframe 26 $( "#SMAL" ).contents().find(‘body‘).html(form);//将form表单塞入iframe; 27 $( "#SMAL" ).contents().find("form input[name=‘parms‘]").val(contentNR); 28 $( "#SMAL" ).contents().find("form input[name=‘method‘]").val(srvMethod); 29 $( "#SMAL" ).contents().find(‘form‘).submit(); 30 }
soscw.com,搜素材

 

js跨域post请求,搜素材,soscw.com

js跨域post请求

标签:style   blog   class   code   java   javascript   ext   color   get   string   html   

原文地址:http://www.cnblogs.com/kuailewangzi1212/p/3701364.html


评论


亲,登录后才可以留言!