12 2014 档案

mousewheel in jq
摘要:(function($) { var types = ['DOMMouseScroll', 'mousewheel']; if ($.event.fixHooks) { for (var i = types.length; i;) { $.event.... 阅读全文

posted @ 2014-12-26 11:57 rainbow661314 阅读(256) 评论(0) 推荐(0)

微信api
摘要:/**! * 微信内置浏览器的Javascript API,功能包括: * * 1、分享到微信朋友圈 * 2、分享给微信好友 * 3、分享到腾讯微博 * 4、新的分享接口,包含朋友圈、好友、微博的分享(for iOS) * 5、隐藏/显示右上角的菜单入口 * 6、隐藏/显示底部浏览器工具栏 * 7、... 阅读全文

posted @ 2014-12-25 18:14 rainbow661314 阅读(4045) 评论(2) 推荐(1)

content = "IE=edge,chrome=1" 详解
摘要:在书上得到的一个html5开发框架,http://html5boilerplate.com/ 看视频中讲了content = "IE=edge,chrome=1"属性,原来另有奇妙,摘了一篇文章做记录。 来自:http://blog.sina.com.cn/s/blog_a9e5c16d0101... 阅读全文

posted @ 2014-12-25 15:57 rainbow661314 阅读(128) 评论(0) 推荐(0)

日历js代码
摘要:1 //判断闰年 2 function runNian(_year) { 3 if(_year%400 === 0 || (_year%4 === 0 && _year%100 !== 0) ) { 4 return true; 5 } 6 el... 阅读全文

posted @ 2014-12-04 15:00 rainbow661314 阅读(397) 评论(0) 推荐(0)