找了很多版本的mootools但都没有replaceWith
从项目里拷了一个发给大家
<html>
<head>
<title>helloworld</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="mootools.js"></script>
<div id="myDiv1" >abc</div>
<script type="text/javascript">
var a = new Element('button');
a.value = 'test';
alert(a)
alert(a.value)
$('myDiv1').replaceWith($(a));
alert('5555')
</script>
</body>
</html>