选项1:
<div class="box">I'm a big box</div>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$('</div>').append("<div class='newbox'>I'm new box by prepend</div>");
</script>
选项2:
<div class="box">I'm a big box</div>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$('.box').append("<div class='newbox'>I'm new box by prepend</div>");
</script>
问题:
为什么option1不起作用,option2起作用?