我正在使用下面的代碼。哪個發佈到一個頁面罰款。但是現在我需要從發佈的password.php
頁面返回數據。我將如何獲取這些數據?如何從頁面獲取數據ajax jquery
$.ajax({
type: 'POST',
url: password.php',
data: 'newPassword=' + password + '&userID=<?php print $userID; ?>',
success: function(success) {
if(success == 1) {
$("#Pass").html('The password has been reset. The temporary password is: <font color=red><b>' +password+'</b></font>');
} else {
$("#Pass").html('There was an error processing your request. The password was not reset.');
}
}
});
哪些數據?您的發佈代碼無法使用? – Philip 2010-11-13 17:42:30