<script> function getXMLHttpRequest() { var xmlHttp if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } return xmlHttp; } function requestServerDoSth() { var httpobj=getXMLHttpRequest(); var url="服务器请求url" //发送http请求 //在这里定义你传到服务器的url和参数,服务器接收到request以后就调用exe httpobj.open("GET", url, false); httpobj.send(); } </script>
<script>
function getXMLHttpRequest() {
var xmlHttp
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
return xmlHttp;
} function requestServerDoSth() {
var httpobj=getXMLHttpRequest();
var url="服务器请求url" //发送http请求
//在这里定义你传到服务器的url和参数,服务器接收到request以后就调用exe
httpobj.open("GET", url, false);
httpobj.send();
}
</script>