<script type="text/javascript"> var mychar= document.getElementById('con'); document.write("原标题:"+mychar.innerHTML+"<br>"); //输出原h2标签内容 mychar.innerHTML = "hello world!"; document.write("修改后的标题:"+mychar.innerHTML); //输出修改后h2标签内容 </script>
0 回答
举报
0/150
提交
取消