Home  >  Article  >  Web Front-end  >  Two simple ways to get server time using js_time and date

Two simple ways to get server time using js_time and date

WBOY
WBOYOriginal
2016-05-16 18:37:001076browse

Sometimes js is used to get the server time. Generally, the System.DateTime

method is used as follows:

Copy the code The code is as follows:




In fact, there is another way: use javascript's "runat="server "Attribute

Code
Copy code The code is as follows:



Helping others is equal to helping yourself!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn