weui datePicker 默认日期/只显示年月

weui.datePicker({
	start: 2006,
	end: new Date().getFullYear(),
	defaultValue: [new Date().getFullYear(), new Date().getMonth()+1, new Date().getDate()],
	depth:2,					
	onChange: function (result) {
		console.log(result);
	},
	onConfirm: function (result) {
		console.log(result);
	}
});

猜你喜欢

转载自blog.csdn.net/gdali/article/details/88534800