context

English [?k?ntekst] US [?kɑ:ntekst]

n.Context ??

;

jquery ???? ?? ???

??: context ??? jQuery ?? 1.10?? ? ?? ???? ????. context ???? jQuery? ??? ?? ????(DOM ?? ???? ?? ??? ???? ?? ?? ?? ????)? ?????.

??: ????

jquery ???? ?? ?

<!DOCTYPE html>
<html>
<head>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("div").append("<p>" + $("div").context + "</p>").append("<p>" + $("div",document.body).context.nodeName + "</p>");
}); 
</script>
</head>
<body>

<span>Context: <div></div></span>
<span><b>注釋:</b>context 屬性在 jQuery 版本 1.10 中被棄用。</span> 

</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????