<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<script src="js/jquery-1.11.3.js"></script>
</head>
<body>
<div>
<ul>
<a href="#" class="ig">aaaa</a>
<a href="#" class="ig">bbbb<a>
<p>
<span>你好</span>
<span>你不好</span>
<p>
</ul>
<script>
$(function(){
$("ul>a:nth-child(2)").before($("p"));
})
</script>
</div>;
</body>
</html>
显示之后,最下面为什么有<p></p>????
没有啊,你看看你页面的保存的编码是不是也是utf-8的