Steady.js事件处理工具
Steady.js 可实现无闪烁的 onscroll
事件处理,而不会有性能方面的损失。
基本使用方法:
<!DOCTYPE html> <html> <head> <title>Hello world!</title> </head> <body> <!-- some HTML things here --> <script type="text/javascript" src="Steady.js"></script> <script> var s = new Steady({ conditions: { "width": 400px, "scrollX": 0, "max-bottom": 200px }, throttle: 100, handler: fn }); // you cann conditions on the fly! s.addCondition('scrollX', 0); function fn(values, done) { var xhr = new XMLHttpRequest(); xhr.open('GET', 'imgs.html'); xhr.onreadystatechange = function() { if ( xhr.readyState == 4 ) { document.body.innerHTML += xhr.response; // telling Steady that we're done processing! done(); } }; xhr.send(); } </script> </body> </html>
评论
MTControlios 事件处理
MTControl给iOS的UIControl对象附加了类似jQuery风格的事件处理。示例代码:UIButton*button=[UIButtonbuttonWithType:UIButtonTyp
MTControlios 事件处理
0
KeyboardObserver键盘事件处理
KeyboardObserver是为了处理不太复杂的键盘事件。特性:处理不太复杂的键盘事件。不是使用NSNotification,而是使用event。区别:不用KeyboardObserver.swi
KeyboardObserver键盘事件处理
0
PleeeaseCSS 处理工具
Pleeease是Node.js应用,可以简单处理你的CSS。Pleeease建华了预处理器的使用,结合称为最佳实践。Pleeease帮助开发者创建干净的样式表,支持旧版浏览器,提供更好的可维护性。使
PleeeaseCSS 处理工具
0