在新标签页中发送post请求
$(function () {
$("#bt_Preview").click(function () {
$('#form1').removeAttr("target");
var form = document.getElementById('form1');
form.action = "/地址";
if (verification($("form"))) {
var form = document.getElementById('form1');
form.action ="/地址";
$("#form1").attr('target', '_blank');
form.submit();
}
});
})
来源:CSDN
作者:hey_liar
链接:https://blog.csdn.net/hey_liar/article/details/103741332