Home > Web Front-end > JS Tutorial > body text

Two simple ways to get server time using js_time and date

WBOY
Release: 2016-05-16 18:37:00
Original
1071 people have browsed it

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!
Related labels:
js
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!