<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>时间</title>
</head><body>
<script type="text/javascript">
var time = new Date(<?php echo(time());?> * 1000);
alert(time.getFullYear() + "-" + time.getMonth() + "-" + time.getDay() + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());
</script>
</body>
</html>
解决方案 »
- 哪个PhP框架用得最广泛?
- 谁能解决这个问题!!给满分。PHP日志。。。。。。。。。。。
- jquery $.ajax 调用html
- apache php 的奇怪问题!!!
- 用360浏览器执行下载的PDF文件打开失败
- SunGavin Joomla:Google浏览器中显示正常,IE浏览器中显示不正常,怀疑是<jdoc:include 的问题,求大侠指点
- 关于支付接口的问题
- phpexcel导出 怎么实现点击导出后 弹出打开保存对话框 选择保存路径 保存
- ejabberd 或 openfire 等 xmpp 服务端 注册新用户的问题
- 我做了个api上传图片文件,通过json过来如何转换成$_FILES接收?请看代码
- 没有双引号的JSON格式,有什么办法用PHP解开吗
- 如何 在镜像站点下载阿帕奇
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html, charset=utf-8" />
<title>时间</title>
</head><body>
<?php echo date('Y-m-d H:i:s');?><br />
<script type="text/javascript">
var time = new Date(<?php echo(time());?>*1000);
document.write(time.getFullYear() + "-" + (time.getMonth()+1) + "-" + time.getDate() + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());
</script>
</body>
</html>[/code]