Commit 1592fd75 by liang ce

修改默认时间

parent 10dee20f
......@@ -46,7 +46,7 @@ create.Page({
this.store.data.locationName = ''
this.store.data.participatorUserId = [getApp().globalData.userid]
this.update()
var date = new Date('2020/02/20 13:31');
var date = new Date();
var y = date.getFullYear();
var m = (date.getMonth() + 1) < 10 ? "0" + (date.getMonth() + 1) : (date.getMonth() + 1);//获取当前月份的日期,不足10补0
var d = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();//获取当前几号,不足10补0
......
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