TypeScript获取当前时间戳 - cocoscreator ts中获取当前时间戳```TypeScriptvar timestamp:number = Date.parse(new Date().toString())/1000; // 精确到秒var timestamp2:number = new Date().getTime(); // 精确到毫秒``` 时间戳转换 TypeScript CocosCreator 2022年07月13日 1 点赞 0 评论 2049 浏览