基于 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://www.codercto.com/soft/d/2267.html

Node.js in Action

Node.js in Action

Mike Cantelon、Marc Harter、TJ Holowaychuk、Nathan Rajlich / Manning Publications / 2013-11-25 / USD 44.99

* Simplifies web application development * Outlines valuable online resources * Teaches Node.js from the ground up Node.js is an elegant server-side JavaScript development environment perfect for scal......一起来看看 《Node.js in Action》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具