现在的位置: 首页 > 综合 > 正文

HTML5新API介绍(小结)

2013年10月03日 ⁄ 综合 ⁄ 共 1078字 ⁄ 字号 评论关闭

HTML5新API介绍
1:canvas,不用多说,可以画出很多绚丽的图形,甚至可以直接做出伪3D游戏。
2:媒体控制,也很好理解(直译就是回放功能,假如只用html5.0以下的标签写,以前的音乐播放是不可能实现滚动条的。)
3:离线网页程序,可以把资源文件完全缓存在客户端,并且通过js的一些方法清空缓存
4:文档编辑,应该是更好的支持对文档的编辑。
5:拖动,可以将文件拖动到某些区域上传
6:跨文档请求,websocket,一种更加高效的通讯方式
7:历史管理,可以通过js管理和插入历史记录
8:MIME头自定义
9:客户端数据存储,localstoage sessionstoage
10:地理位置共享
11:本地数据库
12:索引数据库

以上并非以HTML5最终实现的功能,而且难免会导致又一场浏览器的混战。
下是wikipedia上对html5 api的介绍
In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs).[13] Existing document object model (DOM) interfaces are extended and de facto features documented. There are also new APIs, such as:
The canvas element for immediate mode 2D drawing. See Canvas 2D API Specification 1.0 specification [14]
Timed media playback
Offline storage database (offline web applications). See Web Storage [15]
Document editing
Drag-and-drop
Cross-document messaging[16]
Browser history management
MIME type and protocol handler registration.
Microdata
Geolocation
Local SQL Database[17]. Web SQL Database
Indexed hierarchical key-value store (formerly WebSimpleDB)[18]. Indexed Database API
Some of the new features are part of HTML5 and some are maintained in separate specifications.[19]

抱歉!评论已关闭.