与HTTP相关的基础知识
http1.1和http1.0的区别
常用的状态码
200 ok
304 Not Modified
404 not found
http的响应头
看浏览器,大部分分成三个部分
general
Remote Address
Request URL
Request Method:GET
Status Code
Response Header
Age
Cache-Control
Connection:keep-alive
RESTful接口
http://www.ruanyifeng.com/blog/2011/09/restful
learn.shayhowe.com/advanced-html-css/
htm5 http://www.w3school.com.cn/html5/index.asp
zencode
http://docs.emmet.io/abbreviations/syntax/
html5
基本结构
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<header></header>
<article></article>
<aside></aside>
<footer></footer>
</body>
</html>
用于绘画的 canvas 元素
用于媒介回放的 video 和 audio 元素
地理位置 navigator.geolocation.getCurrentPosition(showPosition);
<script>
var x=document.getElementById("demo");
function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition);
}
else{x.innerHTML="Geolocation is not supported by this browser.";}
}
function showPosition(position)
{
x.innerHTML="Latitude: " + position.coords.latitude +
"<br />Longitude: " + position.coords.longitude;
}
</script>
对本地离线存储的更好的支持
localStorage 方法
sessionStorage 方法
sessionStorage 方法针对一个 session 进行数据存储。当用户关闭浏览器窗口后,数据会被删除。
Cache Manifest 基础
如需启用应用程序缓存,请在文档的 < html> 标签中包含 manifest 属性:
<!DOCTYPE HTML>
<html manifest="demo.appcache">
</html>
关于 cache manifest http://www.w3school.com.cn/html5/html_5_app_cache.asp
web worker 是运行在后台的 JavaScript,不会影响页面的性能。
新的特殊内容元素,比如 article、footer、header、nav、section
新的表单控件,比如 calendar、date、time、email、url、search
< article> 定义文章。
< aside> 定义页面内容之外的内容。
< audio> 定义声音内容。
< bdi> 定义文本的文本方向,使其脱离其周围文本的方向设置。
< command> 定义命令按钮。
< datalist> 定义下拉列表。
< details> 定义元素的细节。
< dialog> 定义对话框或窗口。