Window.Open如何在同一个标签页打开_javascript技巧
程序员文章站
2022-04-28 10:17:57
...
如果有Ajax,那么设置
async:false,//使AJax同步 var countdownInterval; /*确认立即充值*/ function ToRecharge(){ var paramData = new Object(); paramData.PayType = 1;//支付宝支付 paramData.OrderMoney = parseFloat($("#spShouldPay").text());//支付总金额 var gprsTel = []; var orderDetail = new Array(); for(var i = 0; i
/*POST 打开新窗口*/ function openPostWindow(url, data, target) { var tempForm = document.createElement("form"); tempForm.id = "tempForm1"; tempForm.method = "post"; tempForm.action = url; tempForm.target = target; var hideInput = document.createElement("input"); hideInput.type="hidden"; hideInput.name= "PostName" hideInput.value= data; tempForm.appendChild(hideInput); document.body.appendChild(tempForm); tempForm.submit(); document.body.removeChild(tempForm); }
上一篇: Js实现手机发送验证码时按钮延迟操作_javascript技巧
下一篇: ps怎么换腹肌