大神们,var body = document.body; 这句怎么理解呢
<script type="text/javascript"> var body = document.body; var input = document.createElement("input");
input.type = "button";
input.value = "创建一个按钮";
body.appendChild(input);
</script>
<script type="text/javascript"> var body = document.body; var input = document.createElement("input");
input.type = "button";
input.value = "创建一个按钮";
body.appendChild(input);
</script>
2017-05-19
举报