<html>

<head>

<style type="text/css">

.class{color:red;} 类选择器

#id {color:red;} id选择器

#id p{} id元素下面的所有p标签

#id >p{} 直属下层的p

#test +p{} 同级下一个p

<style>

<link rel="stylesheet" type="text/css" href=""/> 外部样式

<script type="text/javascript">

</script>

<script type="text/javascript" src=""></script> 外部js

</head>

<body>

</body>

</html>


(function(){})() 自执行函数,页面加载自动会先执行函数

字符处理:obj.trim 去掉空格

obj.charAt()找到字符串的第几个字符

obj.lenth()长度

切割字符串 obj.substring()