Ajax request

I would like to ask what is wrong with this code. Thank you for your answers.

Feb.26,2021

ajax is executed asynchronously by default, and you always return false. You can add a parameter {async:false} to Synchronize


feel that you are asking an asynchronous question, and $.ajax plus an async:false


you return false forever.

function a() {
    return $.ajax().then(function(){return true},function(){return false})
}
a().then(function(b) {
    console.log(b)
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b229b8-2b622.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b229b8-2b622.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?