最新回答 / 我为莎莎上王者
顺序是标题显示hello world 然后执行<script></script>里的内容,执行到第12行document.write("原标题:"+mychar.innerHTML+"<br>");h2的内容并没有变,然后执行mychar.innerHTML="Hello world!";再执行document.write("修改后的标题:"+mychar.innerHTML);,这个时候内容才修改的,最后显示的内容,就是更改后的h2,hello world并没有显示出...
2016-11-23
最新回答 / 老友丶
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <h2 id="con">JavaScript课程</h2> <div id="...
2016-11-21
最新回答 / Southernleaf
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>函数调用</title> <script type="text/javascript"> function contxt() //定义函数 { alert("哈哈,调用函数了!"); } alert(contx...
2016-11-21