获取打开网站的日期

编程入门 行业动态 更新时间:2024-10-10 09:14:44
本文介绍了获取打开网站的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在一个网站上工作,该网站要求从当前打开网站的日期中选择日期.因为我是新来的,所以我不知道如何约会. 在此先感谢 问候 Rohit

I am working on a web site that required the date to be picked from the place where the site is currently opened. as i am new in this so i have no idea how to get date. Thanks in advance Regards Rohit

推荐答案

JavaScript在客户端计算机上运行,​​因此它将返回用户计算机上的日期/时间.在此处查看更多信息: www.webdevelopersnotes/tips/html/getting_current_time_using_javascript.php3 如果需要将该值返回给服务器,则始终可以使用一些AJAX来首先获取该值,然后将其发送回服务器,然后根据服务器对日期的处理,在页面上显示一些内容. JavaScript runs on the client computer, so it will return the date/time on the user''s computer. See more here: www.webdevelopersnotes/tips/html/getting_current_time_using_javascript.php3 If you need to return that value to the server, you can always use a little AJAX to first get the value then send it back to the server then subsequently display something to the page based on some server processing of the date.

更多推荐

获取打开网站的日期

本文发布于:2023-11-27 18:53:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639200.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!