关于获取服务器返回报文的时间并计算 +1+
response header 如下:HTTP/1.1 200 OKServer: nginx/1.2.5
Date: Mon, 22 Apr 2013 14:04:02 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
CacheControl: no-cache
Pragma: no-cache
Expires: -1
P3P: CP='CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR'request:POST /douireg?ts=1366639444722 HTTP/1.1
request里用到
var ts = new Date().getTime();
生成的时间戳:1366639444722
问一下,
1)如何获取 返回的报头里的时间?
2)如何将获取的时间转换成1366639444722
格式?
页:
[1]