
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
此插件为jquery-date的全新版本,主要为了解决旧版参数设计不够合理、滑动效率不高、依赖jquery、没有可选的主题风格等问题,并增加了回调函数,使插件有更大的灵活性。
上一个版本为1.5.1, 新版本(从2.0.0开始)与此前版本的不同之处:
注意2.0.0之前的版本将不再维护,如有需要请访问:旧版rolldate
rolldate(下方直接扫码即可体验)

import {Date as rolldate} from 'rolldate'
new rolldate({
el:'#date'
})
var rolldate = require('rolldate');
new rolldate.Date({
el:'#date'
})
require(['rolldate'],function(rolldate){
new rolldate.Date({
el:'#date'
})
})
new rolldate.Date({
el:'#date'
})
//完整示例
new rolldate.Date({
el:'#date',
format:'YYYY-MM-DD',
beginYear:2000,
endYear:2100,
value:'2018-02-15',
tapBefore:function(el){
console.log('插件开始触发');
},
moveEnd:function(el,scroll){
console.log('滚动结束');
},
confirmBefore:function(el,date){
console.log('确定按钮触发');
},
confirmEnd:function(el,date){
console.log('插件运行结束');
}
})
更多请查阅演示或dist/index.html
FAQs
rolldate 多格式、功能强大的移动端日期选择插件
The npm package rolldate receives a total of 166 weekly downloads. As such, rolldate popularity was classified as not popular.
We found that rolldate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.