急急急,js5秒调用一次test.php js怎么写 没分了哪位帮帮忙 <input name="send" type="button" id="send" onclick="SendMail();" value=" 调用 " />js页面function SendMail(){}js5秒调用一次test.php 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 搜索ajax. 可以用jquery 的ajax 仅供参考:var xmlHttp;var timer = null;var timerRunning = false;var url; function createXMLHttpRequest() { if(window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } } function statusStop (){ if(timerRunning){ clearTimeout(timer); } timerRunning = true; } /* ------------------- 间隔查询 ------------------- */ function autoDeep(){ createXMLHttpRequest(); url = "map.php?refresh="+Math.random(); method = "GET"; xmlHttp.open(method,url,true); xmlHttp.onreadystatechange = null; xmlHttp.send(null); timerRunning = false; timer = setTimeout('autoDeep()',5000); //5秒执行一次 } function statusBegin(){ statusStop(); autoDeep(); } statusBegin(); excel输出问题求教 大侠求助!Thinkphp 如何输出指定值数据 【【在线等】】如何批量写入同一个字段的数值? php 刷新后 并没有POST 却输出数据 怎么关闭QQ空间日志 插入的网络图片 不被缓存? 问一个菜问题:为什么有PHP画图时,纯PHP代码时可以显示,加入网页元素后就出现乱码呢? 购物车问题 有个十万火急的问题 无限极分类怎么做折叠列表 phpnow安装Apache系统找不到指定的文件 php 获取远程内容,能否只建立一次连接,多次使用. 求解惑 , php向其它服务器请求时经常响应失败.
var timer = null;
var timerRunning = false;
var url; function createXMLHttpRequest() {
if(window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
} else if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
} function statusStop (){
if(timerRunning){
clearTimeout(timer);
}
timerRunning = true;
} /* ------------------- 间隔查询 ------------------- */
function autoDeep(){
createXMLHttpRequest();
url = "map.php?refresh="+Math.random();
method = "GET";
xmlHttp.open(method,url,true);
xmlHttp.onreadystatechange = null;
xmlHttp.send(null);
timerRunning = false;
timer = setTimeout('autoDeep()',5000); //5秒执行一次
} function statusBegin(){
statusStop();
autoDeep();
} statusBegin();