调用此函数后,toDistance.php会运行吗?它似乎对于距离.php没有调用。由于
function myAjax(volunteerDist, jid){
$.ajax({
type:'POST',
url: 'toDistance.php',
data : ({
distance:volunteerDist,
id:jid
}),
success: function(){
alert('worked');
},
error :function(jqXHR, textStatus, errorThrown) {
alert(errorThrown);
},
complete : function(){
alert('thanks');
}
});
是它将运行 – Joe 2012-03-15 17:59:32
@JoeTuskan在我toDistance.php,我有回音,但它并没有这样做,怎么来的? – 2012-03-15 18:00:46
因为它是ajax。不是页面刷新。 – Joe 2012-03-15 18:01:11