JS 获取服务器时间
function getSevertime(){
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("get",location.href,false);
xmlHttp.send();
var severtime=new Date(xmlHttp.getResponseHeader("Date"));
return severtime;
}