您好,欢迎来到华佗小知识。
搜索
您的当前位置:首页js ajax局部替换,intercooler.js - 快速的 AJAX 请求及替换

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

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务