jQuery
Common Used
useful js plugin
- bootstrap-datepicker.js:管理系统中用来做日期选择;
- bootstrap.js:基于 bootstrap.js 的 js 组件,可以改造出功能更强的,我主要改造了 model.js 跟 tab.js;
- jquery.validate.js:基于它结合 bootstrap.js 的 tooltip.js 做气泡式的表单校验;
- crypto-js.js:加密解密;
- moment.js:日期时间处理;
- mustache.js:模板引擎 jquery.js 跟 seajs;
- Normalize.css;
移动端还用了 swiper 跟 iscroll,前者可以做轮播,tab;后者用来模拟原生的触屏滚动。
animate with curve
Dragable reference
Dragable
http://stackoverflow.com/questions/15609776/restrict-drag-only-in-one-direction
when scroll to bottom
rewrite bootstrap scrollspy
remove 300ms delay (or use fastclick)
for dialog scroll disable background scroll
https://bumfo.github.io/dialog.html https://segmentfault.com/a/1190000005617307