这段代码为什么先显示的是New text!?
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>innerHTML</title> </head> <body> <p id="con">Hello World!</p> <script type="text/javascript"> var mycon=document.getElementById("con"); document.write("p标签的原始内容:"+mycon.innerHTML+"<br>"); mycon.innerHTML="New Text!"; document.write("p标签修改过的内容:"+mycon.innerHTML); </script> </body> </html>