[英]what is the fastest way to get server time in JavaScript from a web browser?
in fact, i wanna synchronize client-side time with server time, this solution is really good, but there are any other ideas faster? 实际上,我想将客户端时间与服务器时间同步, 此解决方案确实不错,但是还有其他更快的想法吗? in other words, can we find a faster way to get server time in JavaScript from a web browser? 换句话说,我们能否找到一种更快的方法来从Web浏览器中获取JavaScript中的服务器时间?
Sway - the link you mentioned is the better way to go, i dont think you can anyway sync with server clock without knowing what is the time on the server. Sway-您提到的链接是更好的方法,我认为无论如何您都无法与服务器时钟同步,而无需知道服务器上的时间。
in the below example he has given a good pictorial representation too. 在下面的示例中,他也给出了很好的图形表示。
http://codemadesimple.wordpress.com/2012/06/18/timesync-with-asp-net-mvc-4/ http://codemadesimple.wordpress.com/2012/06/18/timesync-with-asp-net-mvc-4/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.