HTML格式基础
<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()
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。