日期:2014-05-16 浏览次数:20349 次
<div id="test"></div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$.fn.mytest = function(){
alert(this[0]);
alert(this[0] == document.getElementById('test'));
alert(this==$.fn);
alert(this==$);
}
$('#test').mytest()
</script>