为什么我把replaceAll换成replaceWith不行呢?求解
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>使用替换元素和内容</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h3>使用replaceAll()方法替换元素内容</h3>
<span class="green" title="hi">我是屌丝</span>
<script type="text/javascript">
var $html = "<span class='red' title='hi'>我是土豪</span>";
var $html5 = "<span class='blue' title='hello'>我是男神</span>";
$(".green").replaceWith($html5);
</script>
</body>
</html>