学会偷懒,并懒出境界是提高工作效率最有效的方法!
Ctrl + D 收藏我吧~
jQuery手机页面通知组件,通知可以从顶部、底部、左侧、右侧等四个方位出现,可控制速度。兼容主流浏览器,懒人图库推荐下载!
使用方法:
1、引入css样式:notifyme.css
2、引入jquery库, notifyme.js, modernizr.js
3 为其中一个元素绑定click事件处理函数
$('.error').on('click', function(){
$(this).notifyMe(
'bottom', // 位置
'error', // 类型
'Lorem Ipsum Text', // 标题
'Lorem Ipsum is simply dummy text of the printing', // 描述
200 // 速率
);
});