modulejs面向对象的javascript框架
modulejs是极致模块化的且面向对象的javascript框架,modulejs能让你在简单易用的前提下写出更佳维护性和可重用性的javascript代码。
Features:
- HTML document query/traversing/manipulation
- Lightweight selector engine
- Event handling
- Animation
- Cookie/localStorage storage
- Language extensions
- Ajax/JSONP request
- Template engine
- Rich utility class
modulejs 兼容全部主流浏览器 Internet Explorer 6+, Firefox 2+ (and browsers based on gecko) Chrome 4+, Safari 3+ and Opera 9+.
modulejs quick example:
var ajax = module("net.Ajax").ajax; ajax({ url:"localhost/ajaxdemo.php", //提交地址 form:"formName", //表单名称 timeout: 200, //过期时间 success: function(response){ //成功后回调函数 console.log(response); } });
评论