本文介绍了获取打开网站的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在一个网站上工作,该网站要求从当前打开网站的日期中选择日期.因为我是新来的,所以我不知道如何约会. 在此先感谢 问候 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.
更多推荐
获取打开网站的日期
发布评论