Linux 软件免费装

Blunt AJAX

开发者 Hube2
更新时间 2017年12月1日 03:12
捐献地址: 去捐款
PHP版本: 2.8 及以上
WordPress版本: 4.9
版权: GPLv2 or later
版权网址: 版权信息

标签

AJAX JavaScript

下载

1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3

详情介绍:

This script is for developers like myself that don't want to load some monolithic JavaScript framework just to do a bit of AJAX. Document for developers for use of this plugin can be found on the Other Notes page. This is an adaptation of an AJAX script that I've been using and updating since around 2007. I like my scripts small and to the point. Hopefully others will find it useful. I am open to suggestions for improvement of this plugin. Submit a support request here or on GitHub

安装:

As a Plugin
  1. Upload the Blunt GA plugin to the plugin folder of your site
  2. Activate it from the Plugins Page
Include within your theme or plugin
  1. Copy the Blunt-Ajax folder to your theme or plugin folder
  2. Add the following code to your theme or plugin include(dirname(__FILE__).'/blunt-ajax/blunt.ajax.php');
Read the Documentation

常见问题:

Why not just use [insert the name of your favorite JavaScript framework here]?

I'm a "use the right tool for the job" kind of a person. If I need to tighten a screw I use a screwdriver, I don't dig into my toolbox an pull out a widget that'll do 101 different jobs and can handle every type and size screw. The same goes for development. Chances are that I'm only going to use a tiny fraction of what some JavaScript framework will do. Chances are also quite good that I can do the job I need done faster and easier with a tool designed to do exactly what I need done. I also want to consider the weight of the tool. Just like I don't want to lug around an entire toolbox with me when I can slip a screwdriver into my pocket, I don't want a website to lug around the weight of that framework when it's not necessary and I ain't gonna use 95% of it. This plugin is for anyone that thinks the same way I do and does not automatically turn to some framework every time they need to do every little thing; someone that knows how to and prefers to write vanilla JavaScript.

When should I use Blunt Ajax and when shouldn't I?

You should use Blunt Ajax when you don't want to use a JavaScript framework. If you are already loading a JavaScript framework that includes AJAX functionality then you should use the AJAX functionality of that framework rather adding Blunt Ajax to the mix. The reason for using this script is to decrease the total size of the JavaScript you use, not to increase it.

更新日志:

1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0