2011-03-02 29 views

回答

1

這取決於。

我使用/看到的最常見方法是在您通過AJAX執行的PHP腳本收到響應後更新您的HTML。

jQuery的例子:

$.post('script.php', {name_1: value_1, name_2: value_2}, function(data){ 
    /* 
    this is the function that is fired upon a successful AJAX execution 
    the data variable contains the data script.php outputs 
    */ 
    //update html here 
}); 
相關問題