AJAX als Funktion
Wed Sep 28 2022 18:57:41 GMT+0000 (Coordinated Universal Time)
Saved by
@michiiee
let promise = check_login();
promise.success(function (data) {
//console.log(data);
if(data["loggedin"] === 1){
}
});
function check_login(){
return jQuery.ajax(
{
url: "../custom_scripts/api/user/get_user_info.php",
type: 'GET',
dataType: 'json',
}
);
}
content_copyCOPY
Comments