当我单击一个按钮时我该怎么办它会首先.fadeIn(0); .dealy(2000); .fadeOut(600); and say "Validating..."
然后它会说"Success fully log in"
并重定向到 index.php?
我确实尝试过,但没有奏效:
function save() {
$('#save_first').html('Validating...');
$('#save_first').fadeIn(1);
$('#save_first').delay(2000);
$('#save_first').fadeOut(600);
$('#save_second').html('Success fully log in!');
$('#save_second').delay(2601);
}
HTML
header('Location: index.php');
exit();