http post 方法

http post 方法

function costPayCheck() {
         var name = "test"
         var PARAMS2 = 'EeM1whUd4q4%3d&money=i6hN5C6DIN4%3d&checkcode=nhIAV2UrfsWnq1I38RKp5%2b46w4bxah62p6tSN%2fESqefuOsOG8WoetiUOtz2bp40id93kxCmKe%2bY%2f%2foU%2b8UmIPnvhxn9jGcsgHGKUTJep4N4q3lr1fo%2bZEWZJXRQhhfJ4RNQDb8RgTAU%3d&feeetype=Q1dQXRPDVOc%3d&old_pay_no=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s&old_money=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s';
        
         var tempForm = document.createElement("form"); 
         tempForm.id="tempForm1"; 
         tempForm.method="post"; 
         tempForm.action=" https://www.60.30.27.15/PayMent/login.aspx";   
         tempForm.target=name; 
         
          var hideInput = document.createElement("input"); 
          hideInput.type="hidden"; 
         hideInput.name= "pay_no"
         hideInput.value= PARAMS2;
          tempForm.appendChild(hideInput);  
          tempForm.attachEvent("onsubmit",function(){ openWindow(name); });
         document.body.appendChild(tempForm); 
        
         tempForm.fireEvent("onsubmit");
         tempForm.submit();
        document.body.removeChild(tempForm);
   }
    
      function openWindow(name) 
    { 
         window.open('about:blank',name,'height=400, width=400, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes');  
      }

你可能感兴趣的:(http post 方法)