Commit c073ba8c authored by liujiangnan's avatar liujiangnan

feat:

parent 2ace894a
import { defaultData } from "../script/defaultData";
import { initDate } from "./common";
export class MyCocosSceneComponent extends cc.Component {
// 生命周期 onLoad
onLoad() {
initDate();
this.initSceneData();
this.initSize();
}
......

export function initDate() {
/**
* 对Date的扩展,将 Date 转化为指定格式的String
* 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符
......@@ -94,3 +94,5 @@ Date.prototype.formatString = function formatTime(timeStr) {
}
return result;
};
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "4b91bf82-f7a4-46c4-bb91-fd6af8643571",
"isPlugin": true,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment