执行AJAX POST 和 GET 请求的简约JS库:minAjax.js

jopen 10年前

这个用于执行AJAX POST 和 GET 请求的简约JavaScript库。

minAjax({      url:"test.php",//request URL      type:"GET",//Request type GET/POST      //Send Data in form of GET/POST      data:{        name:"batman",        profession:"detective",        worth:"Rich",        company:"Wayne Enterprises"      },      //CALLBACK FUNCTION with RESPONSE as argument      success: function(data){        alert(data);      }      });

项目主页:http://www.open-open.com/lib/view/home/1423552251061