modulejs面向对象的javascript框架

联合创作 · 2023-09-22 15:15


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);
}
});

浏览 22
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报