<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>next()</title>
<script type="text/javascript" src="class library/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function(){
$('span').click(function(){
alert($('p').next('.p1').html());
});
});
</script>
</head>
<body>
<p>人</p><p class="p1">神</p><span>点我成神</span>
</body>
</html>
next()
最新推荐文章于 2022-11-27 15:30:04 发布