原理解釋
var $t_a=$("
var $t_a=$("
舉例說明
<html>
<head>
<script type="text/javascript" src="jquery
<script type="text/javascript">
$(document)
var $a
var $a
alert($a
})
</script>
<style>
</style>
</head>
<body>
<div class="test" style="display:none;">
<p style="display:none">dddddddd</p>
<p style="display:none">dddddddd</p>
</div>
<div class="test" style="display:none">
</div><div class="test" style="display:none"></div>
<body>
</html>
輸出結果分別為
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20317.html