Giter VIP home page Giter VIP logo

calendar's Introduction

jquery日历 周历 插件

给别人做的,时间也比较急,感觉很多地方都没做好,而且也不像插件,这个准备慢慢填坑... bug较多!在项目中请谨慎使用!!

部分效果截图

todo

修复

  • 重新设计周历的核心算法或者对现在算法的边界情况进行测试
  • 事件重复绑定的bug修复
  • 兼容测试
  • 优化动画
  • 整理应该向外暴露的api
  • 重构部分冗余代码

新功能

  • 可以自定义样式,提供友好的接口

预计开放api

调用方法$(selector).Calendar(api);

  • 获取选择的时间
  • 切换到周历/月历(动画)
    • $(selector).Calendar('switchWeek'); //切换到周历
    • $(selector).Calendar('switchMonth'); //切换到月历
  • 切换到 上/下 一 周/月/(动画)
    • $(selector).Calendar('switchPreMonth') //切换到上一月
    • $(selector).Calendar('switchNextMonth') //切换到下一月
  • 切换到当前的时间的 周/月历(动画)(初始化状态)
    • $(selector).Calendar('init');

事件

  • 当前选择时间变化事件 参数(currentDate,originDate)

  • 周历月历变化事件 参数(flag)

calendar's People

Contributors

ssloth avatar

Stargazers

 avatar 胡军 avatar

Watchers

James Cloos avatar

calendar's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.