js ajax局部替换,intercooler.js - 快速的 AJAX 请求及替换

Introduction

Intercooler is a small (6.74KB gzipped) jQuery-based library that allows you to add AJAX to your application using

HTML attributes.

Here is an example:

response content is swapped in to the body of the button -->

Click Me!

复制代码

Despite this simplicity, intercooler supports quite a bit of functionality:

These features allow you to build modern web applications with little fuss, using a simple and intuitive REST-ful architecture that ensures good performance, excellent user experience and a minimum of complexity.

It also is very easy to incrementally retrofit intercooler into existing web applications to add AJAX functionality where

it is most valuable.

Full documentation is available on the main intercooler website

Installing

Intercooler can be downloaded or hot-linked from the downloads page.

Or installed via bower:

"dependencies": {

"intercooler-js" : "1.0.2"

}

复制代码

Intercooler depends on jQuery v1.10.0 or higher.

License

Intercooler is licenced under the MIT License

Official Theme Music

Contributing

To contribute a change to intercooler:

Fork the main intercooler repository

Create a new feature branch based on the development branch with a reasonably descriptive name (e.g. fix_http_get_parameter_overriding)

Implement your fix

Add a test to /test/unit_tests.html. (It's pretty easy!)

Create a pull request for that branch against development in the main repository

68747470733a2f2f6261646765732e6769747465722e696d2f696e746572636f6f6c65722d6a732f4c6f6262792e737667

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值