关于微信小程序WXS文件使用new Date()的解决办法
// 传入YYYY-MM-DD 通过Date.parse(obj)获取时间戳
var timestamp = Date.parse(obj)
//通过getDate()获取date对象
var date = getDate();
//设置时间戳之后就可以当作正常的时间对象使用了
date.setTime(timestamp);
var num = date.getDay()
var month = date.getMonth() + 1;