yuyun158 发表于 2012-4-24 23:13

大事问谷歌
小事问百度

80x86 发表于 2012-4-24 23:20

取本地时间。很多显示时间的网页都这么干

风铃夜思雨 发表于 2012-4-24 23:29

本帖最后由 风铃夜思雨 于 2012-4-24 23:30 编辑

用new Date();获取当前系统时间日期

例如flash 里的as代码:
timedate = new Date();

onClipEvent (enterFrame) {
hour = timedate.getHours();
//小时
minutes = timedate.getMinutes();
//分钟
seconds = timedate.getSeconds();
//秒
todaydate = timedate.getDate();
//日期
day = timedate.getDay();
//星期几
dayname = days;
month = timedate.getMonth();

bee0292638 发表于 2012-4-25 09:42

花钱就可以装修了吧{:1_292:}

zzqzhangboy 发表于 2012-4-25 10:00

LZ的观察很仔细呀

宇文夜雨 发表于 2012-4-25 10:08

知道有这么一回事……

Laden 发表于 2012-4-25 10:15

和本地时间同步的

fygdq 发表于 2012-4-25 16:37

雷蛇 发表于 2012-4-25 23:43

很easy~~~我都会做。。。

玉皇大帝 发表于 2012-4-26 10:22

LZ的观察很仔细呀
页: [1]
查看完整版本: flash有这种功能?怎么实现的?