js 模拟 post

js 模拟 post 提交

js 模拟 post
        //js 模拟创建一张表
                var target = ‘_blank‘;
                var tempForm = document.createElement("form");
                tempForm.id = "tempForm1";
                tempForm.method = "post";
                tempForm.action = ‘<?php echo $HTTP_URL;?>capture‘;
                tempForm.target = target;
        
        //添加表元素
var authkeyInput = document.createElement("input"); authkeyInput.type = "hidden"; authkeyInput.name = ‘authkey‘; authkeyInput.value = ‘XX‘; tempForm.appendChild(authkeyInput); var libInput = document.createElement("input"); libInput.type = "hidden"; libInput.name = ‘lib‘; libInput.value = ‘serverControl‘; tempForm.appendChild(libInput);

        //添加表
        document.body.appendChild(tempForm);
                
                tempForm.submit();
                document.body.removeChild(tempForm);
js 模拟 post

 

 

 其他:http://www.360doc.com/content/12/0731/14/9629506_227464533.shtml

js 模拟 post,布布扣,bubuko.com

js 模拟 post

上一篇:Oracle索引修复 ,ORA-00600: internal error code, arguments: [6200],


下一篇:python进阶(十三、mysql:索引)