get-ajax

get data with ajax

Usage no npm install needed!

<script type="module">
  import getAjax from 'https://cdn.skypack.dev/get-ajax';
</script>

README

get Ajax

This project is an easy javascript function which does not use jquey to do ajax.

Use

  • Function parameter
    • url -> your api link
    • funct -> api will call function when getting response is 200
    • err_funct -> api will call function when getting response is not 200.