如何获得<div id=”div1”>This is first layer</div>中的值?

解答:

<script>

var div1=Document.getElementById(“div1”);

alert(div1.innerHTML)

</script>

05-19 22:22