index
view plaincopy to clipboardprint?
<mce:script type="text/javas
var xmlHttp;
function createXMLHttpRequest(){
if(window
xmlHttp = new ActiveXObject("Microsoft
}
else if(window
xmlHttp = new XMLHttpRequest();
}
}
function start(){
createXMLHttpRequest();
var url="getTime
xmlHttp
xmlHttp
xmlHttp
}
function callback(){
if(xmlHttp
if(xmlHttp
document
setTimeout("start()"
}
}
}
//
<html>
<head>
<meta http
</head>
<body>
<h
<input type="button" value="開始顯示時間" id="go" on
<p>當前時間
</body>
</html>
<mce:script type="text/javas
var xmlHttp;
function createXMLHttpRequest(){
if(window
xmlHttp = new ActiveXObject("Microsoft
}
else if(window
xmlHttp = new XMLHttpRequest();
}
}
function start(){
createXMLHttpRequest();
var url="getTime
xmlHttp
xmlHttp
xmlHttp
}
function callback(){
if(xmlHttp
if(xmlHttp
document
setTimeout("start()"
}
}
}
//
<html>
<head>
<meta http
</head>
<body>
<h
<input type="button" value="開始顯示時間" id="go" on
<p>當前時間
</body>
</html>
getTime
view plaincopy to clipboardprint?
<?php
header("cache
header("Content
$showtime = date("北京時間Y年m月d日H:i:s");
echo $showtime;
?>
From:http://tw.wingwit.com/Article/program/PHP/201311/21254.html