Giter Site home page Giter Site logo

ajax-package's Introduction

ajax-package

/*ajax封装-get

   @param url:请求的路径
   
   @param data:发送的数据,格式:key1=value1&key2=value2
   
   @param callback:回调函数,方便用户处理自己的数据,传递逻辑

*/

/*ajax封装-post

   @param url:请求的路径
   
   @param data:发送的数据,格式:key1=value1&key2=value2
   
   @param callback:回调函数,方便用户处理自己的数据,传递逻辑

*/

/*ajax_tool封装

   @param url:请求的路径
   
   @param type:请求的不同类型get或post
   
   @param data:发送的数据,格式:key1=value1&key2=value2
   
   @param callback:回调函数,方便用户处理自己的数据,传递逻辑

*/

/*ajax封装

   @param option:传入一个对象
   
   属性分别为(顺序可以打乱):
   
        url:请求的路径
        
        type:请求的不同类型get或post
        
        data:发送的数据,格式:key1=value1&key2=value2
        
        callback:回调函数,方便用户处理自己的数据,传递逻辑      

*/

ajax-package's People

Contributors

cao-lianhui avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.