HTML5新API介绍(小结)

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]

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值