js/jq模拟表单提交

let PARAMS={ids:this.arrIds,verify: this.excelverify,exceltype: this.exceltype};

var temp_form = document.createElement("form");     

temp_form .action = '{:U("Excel/exportnew")}';     

temp_form .target = "_blank";

temp_form .method = "post";     

temp_form .style.display = "none"; 

for (var x in PARAMS) {

        var opt = document.createElement("textarea");     

    opt.name = x;     

    opt.value = PARAMS[x];     

    temp_form .appendChild(opt);  

}  

document.body.appendChild(temp_form);  

temp_form .submit();