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请求时会发生什么?