0
<a id="link" href="http://google.com">Let's Go</a>
$("#link").on("click", function(){
$.post("process.php",
{
x: pos.x,
y: pos.y
},
function(data, status){
// do something here
});
});
});
當點擊Let's Go
鏈接時會發生什麼?瀏覽器是否等待發送請求並從process.php
頁獲取結果?或忘記請求並立即關注鏈接?當我在鏈接上發送ajax請求時會發生什麼?