Javascript
water_sky_moon
这个作者很懒,什么都没留下…
展开
-
JQuery插件开发
jQuery插件开发分为两种: 1.类级别 类级别你可以理解为拓展jquery类,最明显的例子是$.ajax(...),相当于静态方法 开发扩展其方法时使用$.extend方法,即jQuery.extend(object); $.extend({ add:function(a,b){return a+b;} , minus:function(a,b){return a-b;}转载 2016-12-05 15:21:42 · 196 阅读 · 0 评论 -
html5触摸滑动
function load (){ document.addEventListener('touchstart',touch, false); document.addEventListener('touchmove',touch, false); document.addEventListener('touchend',touch, false);转载 2016-11-28 13:50:30 · 998 阅读 · 0 评论