1.这个也是一个组件,不过在这个组件上做了一些处理,

日期选择
下面直接上码,有需求的可以直接现用,
index.js
Page({
/**
* 页面的初始数据
*/
data: {
activeType: "rounded",
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate(),
dayStyle: [{
month: 'current',
day: new Date().getDate(),
color: 'white',
background: '#AAD4F5'
},
{
month: 'current',
day: new Date().getDate(),
color: 'white',
background: '#AAD4F5'
},
{
month: 'current',
day: new Date().getDate(),
color: 'white',
background: '#AAD4F5'
},
],

本文介绍如何在微信小程序中创建一个日期选择组件,提供了相关的JavaScript、WXML和WCSS代码示例,适用于需要快速集成日历选择功能的开发者。
最低0.47元/天 解锁文章

2266

被折叠的 条评论
为什么被折叠?



