扫码关注官方订阅号
这个代码就几行,为什么没反应??崩溃了<html><body>
<script > e1=document.createElement("p"); t1=document.createTextNode("jdjs"); e1.appendChild(t1); </script>
</body></html>
人生最曼妙的风景,竟是内心的淡定与从容!
1,create单词拼错2,需要将e1加入到dom树上
e1=document.createElement("p"); t1=document.createTextNode("jdjs"); e1.appendChild(t1); document.body.appendChild(e1);
肯定没反应啊,你没有把e1加入到dom树中
e1还没被append到页面上呢
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
1,create单词拼错
2,需要将e1加入到dom树上
肯定没反应啊,你没有把e1加入到dom树中
e1还没被append到页面上呢