我正在製作一個將某些值發送到另一個腳本的ajax腳本。發送此值後,必須執行此腳本(使用這些值)。我嘗試了幾件事,但我不知道如何做到這一點。任何人有任何想法如何做到這一點?在Ajax POST上執行PHP腳本
$.ajax({
url: 'script.php',
type: 'POST',
dataType: 'text',
data: {result:JSON.stringify(values)},
success: function(response){
// preform script?
}//end success
}); //end ajax
這將執行'script.php'。你還需要做什麼? – Barmar