基于 jQuery 的 api 可配置 ajax 包 smajax
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/smarttang/smajax
- 软件文档: https://github.com/smarttang/smajax/blob/master/README.md
- 官方下载: https://github.com/smarttang/smajax/archive/master.zip
软件介绍
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 - 事件执行成功后
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》 这本书的介绍吧!
