基于 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

Head First Mobile Web

Head First Mobile Web

Lyza Danger Gardner、Jason Grigsby / O'Reilly Media / 2011-12 / $ 50.84

Despite the huge number of mobile devices and apps in use today, your business still needs a website. You just need it to be mobile. Head First Mobile Web walks you through the process of making a con......一起来看看 《Head First Mobile Web》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

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

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试