基于 jQuery 的 api 可配置 ajax 包 smajax

码农软件 · 软件分类 · AJAX框架/RIA · 2019-03-27 13:58:22

软件介绍

smajax,基于jQuery的api可配置ajax包。

安装

<script src="smajax.min.js"> </script>

必须先引入 jQuery(任何版本)

<script src="juqery.min.xxxx.js"> </script>

用法

  • 初始化请求

var SmartAJAX = new smajax({ dataType: 'json' });

初始化选项:

  • POST 请求

SmartAJAX.post('/url',{'obj':'list'},function(msg){ 
    console.log(msg);
});
  • GET 请求

SmartAJAX.get('/url',function(msg){ 
    console.log(msg);
});

请求选项:

  • remoteurl - 请求的地址

  • parames - POST请求的具体内容

  • success - 事件执行成功后

本文地址:https://codercto.com/soft/d/2267.html

Ruby on Rails 3 Tutorial

Ruby on Rails 3 Tutorial

Michael Hartl / Addison-Wesley Professional / 2010-12-16 / USD 39.99

“Ruby on Rails™ 3 Tutorial: Learn Rails by Example by Michael Hartl has become a must read for developers learning how to build Rails apps.” —Peter Cooper, Editor of Ruby Inside Using Rails ......一起来看看 《Ruby on Rails 3 Tutorial》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码