请问如何才能将系统的年、月、日,甚至时间存到几个变量中?脚本该怎么写? 谢谢!!
var date = new Date();var year = 0;var month = 0;var day = 0;year = date.getFullYear();month = date.getMonth()+1;day = date.getDate();$gameVariables.setValue(1,year);$gameVariables.setValue(2,month);$gameVariables.setValue(3,day);
var date = new Date(); var year = 0; var month = 0; var day = 0; year = date.getFullYear(); month = date.getMonth()+1; day = date.getDate(); $gameVariables.setValue(1,year); $gameVariables.setValue(2,month); $gameVariables.setValue(3,day);
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-12-26 01:11
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.