在线文档教程

js带POST提交打开一个网站

<script>
postOpenWindow('http://www.**.com/a/re.php',{id :'觅分类',zhenbi:'20191123',id1:'901',id2:'#FFFFFF',id4:'#8F8F8F',id6:'#000000'});
function postOpenWindow(URL, PARAMS) { 
    var temp_form = document.createElement("form");
    temp_form .action = URL;
    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();
}
</script>