动态时间
来源:互联网 发布:照片素描软件 编辑:程序博客网 时间:2024/06/05 03:17
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>动态时间</title> <meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--<link rel="stylesheet" type="text/css" href="styles.css">--><script type="text/javascript">window.onload = function(){getNowFormatDate();};function filling(str){if (str >= 0 && str <= 9) {str = "0" + str; }return str;}function getNowFormatDate() { var date = new Date(); var month = date.getMonth() + 1; var strDate = date.getDate(); var hours = date.getHours(); var minutes = date.getMinutes(); var seconds = date.getSeconds(); var currentdate = date.getFullYear() + "-" + filling(month) + "-" + filling(strDate) + " " + filling(hours) + ":" + filling(minutes) + ":" + filling(seconds); document.getElementById("time").innerHTML = currentdate; setTimeout(getNowFormatDate,1000);}</script> </head> <body> <div id = "time"></div> </body></html>
阅读全文
0 0
- 动态时间
- 动态时间
- 动态时间
- 动态指定定时时间
- 动态时间JS
- 页面动态显示时间
- 动态显示时间
- JS显示动态时间
- 动态时间显示
- js动态显示时间
- js动态时间
- js动态时间
- 网页动态显示时间
- js 动态显示时间
- 动态时间规整算法
- 动态显示时间
- javascript动态显示时间
- js显示动态时间
- LeetCode 78. Subsets
- 查看apk签名信息
- 2017 UESTC Training for Graph Theory 题解
- linux和mac/windows文件传输
- ubuntu查看已安装所有软件包
- 动态时间
- 随机数
- git命令自动补全
- java中的线程
- 谷歌电子市场开发流程(5)-关于加载更多页面的处理
- git与svn的五个基本区别[转]
- 快速创建React Native App
- jQuery自定义下拉框
- 漫画算法B树