为了账号安全,请及时绑定邮箱和手机立即绑定

document.body什么意思

<script type="text/javascript">
  var body = document.body;
  var input = document.createElement("input");  
   input.type = "button"; 
   input.value = "创建一个按钮"; 
   body.appendChild(input); 
</script> 

正在回答

2 回答

document.getElementsByTagName("body")[0];

2 回复 有任何疑惑可以回复我~

document.body;是指html文档的<body></body>主体

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

document.body什么意思

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号