<!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">
<head>
<title>如何引入js</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<script>
var str="heloworld";
document.write(str.indexOf("he"));
</script>
<script src="./hello.js"></script>
</head>
<body>
<p>引入js的两种方式 </p>
1. <script> </script>
2.外部js文件src="./helo.js"
<p>引入js的两种方式 </p>
1. <script> </script>
2.外部js文件src="./helo.js"
select#select 快捷键#表示为id
p>qq >表示子类的标签
table#t1>th+tr +号表示并列
table{1} {}表示内容
table.q .表示calss名
table*2 *表示重复次数
input:button 改变属性
通常script写到代码的最后
</body>
</html>