<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Document</title> <script src="common.js"> </script> <style> div{ width: 100px; height: 100px; border:1px solid red; } </style></head><body> <!--1.js代码嵌入在标签体里面--> <div onclick="alert('aa')"></div></body><script> alert("bb"); //alert(k);//如果这个代码有错误,那么当前script标签中后面的代码就不会执行了 mytest();</script><script> alert("pp");</script></html>
