获取一个包含特定元素的jQuery对象,而不是原始元素。

node2:/var/www/html/js#cat h32.html 
<html>
<body>
<img src="009.jpg"  alt="纽约" height="400" width="400"  />
<img src="003.jpg"  alt="上海" height="400" width="400"  />
<img src="002.jpg"   height="400" width="400"  />
<img src="002.jpg"  alt="北京" height="400" width="400"  />
<p>稠州</p>
<p>泰隆</p>
<p>台州</p>
</body>
</html>
<script type="text/javascript" src="jquery-2.2.2.min.js"></script> 
<script type="text/javascript" src="h32.js"></script>
node2:/var/www/html/js#cat h32.js
var img=$($('p').get(2)).context.innerHTML;
console.log(img);

原文地址:https://www.cnblogs.com/hzcya1995/p/13348861.html