How do I use jQuery to make async calls?
const url = 'http://random.cat/meow'
$.getJSON(url)
.done((data) => console.log(`done: ${data}`))
.fail(() => console.log('fail'))
Last updated
Was this helpful?
const url = 'http://random.cat/meow'
$.getJSON(url)
.done((data) => console.log(`done: ${data}`))
.fail(() => console.log('fail'))
Last updated
Was this helpful?