<script type="text/javascript">
var url = document.URL;
var strg = url.toString();
function StartAjax(ResultsId){
$.ajax({
type: "GET",
url: "mark.php",
cache: false,
data: (strg),
success: function(html){
$("#"+ResultsId).append(html);
**$("#").hide();**
}
});
}
</script>
<br><a href="#" name="link" onclick="StartAjax('ResultsId');">Proceed</a>
<div id="ResultsId"></div>
阿贾克斯做它应该做的事情,但是如何在被点击后隐藏链接?阿贾克斯 - 被点击后隐藏链接
'$(this).hide()'会失败,因为AJAX回调会设置一个新的'this'上下文。 – Utkanos 2012-07-17 14:10:16