摘要:
1, !function() { var t = navigator.userAgent.toLowerCase(), a = 1; /iphone|ipad|ipod/.test(t) ? a = 2 : /android/.test(t) && (a = 1), //判断是不是微信浏览器 2 = 阅读全文
摘要:
1,就是为了让匿名函数在声明完后就立即执行 阅读全文
摘要:
1,test方法 2,toLowerCase方法 3,match 阅读全文
摘要:
1, 为什么要使用FastClick 移动设备上的浏览器默认会在用户点击屏幕大约延迟300毫秒后才会触发点击事件,这是为了检查用户是否在做双击。为了能够立即响应用户的点击事件,才有了FastClick。 项目地址:https://github.com/ftlabs/fastclick 2,使用 $( 阅读全文