微信小程序获取当前时间的时段插件(当天、当

GetPeriod

微信小程序获取当前时间的时段插件(当天、当周、当月、当季度、当年、自定义时段)

GetPeriod的使用 引入getperiod.js

const GetPeriod = require("../../utils/getperiod.js"); 使用getperiod.js

this.time = new GetPeriod(); //获取本年的结束日期 let end = this.time.getYearEndDate(); DEMO效果图

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。