与
Ajax通话传递一些
data到
process.php。
$.ajax({ type: "POST", url: "process.php", data: {method: 'one'}, success: function(msg){ } });在php页面中,
if(isset($_POST["method"])) { $method = $_POST["method"]; if($method=="one") { //call methods/functions here }}


