标签:如何 获得 get first his alert doc script div
如何获得<div id=”div1”>This is first layer</div>中的值?
解答:
<script>
var div1=Document.getElementById(“div1”);
alert(div1.innerHTML)
</script>
如何获得<div id=”div1”>This is first layer</div>中的值?
标签:如何 获得 get first his alert doc script div
原文地址:https://www.cnblogs.com/borter/p/9552664.html