
HTML5
文章平均质量分 69
个人知识管理布道师
这个作者很懒,什么都没留下…
展开
-
Multiple Events in Server-Sent Events
multipleEvents.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>Insert title here up_vote: down_vote: start原创 2016-06-24 12:26:04 · 297 阅读 · 0 评论 -
HTML5 Web Workers 使用案例
1 什么是Web Workers? 当在 HTML 页面中执行脚本时,页面的状态是不可响应的,直到脚本已完成。web worker 是运行在后台的 JavaScript,独立于其他脚本,不会影响页面的性能。您可以继续做任何愿意做的事情:点击、选取内容等等,而此时 web worker 在后台运行。2 使用案例 webworkers.html文件 Inser原创 2016-06-22 10:57:23 · 2406 阅读 · 2 评论 -
HTML5 Server-Sent Events with JSP example
Server-Sent 事件 - 单向消息传递Server-Sent 事件指的是网页自动获取来自服务器的更新。以前也可能做到这一点,前提是网页不得不询问是否有可用的更新。通过服务器发送事件,更新能够自动到达。例子:Facebook/Twitter 更新、估价更新、新的博文、赛事结果等。接收 Server-Sent 事件通知EventSource 对象用于接收原创 2016-06-23 10:19:50 · 619 阅读 · 0 评论 -
HTML5 Server-Sent Events with Java Servlets example
server_sent_event.htmlInsert title here 获得服务器更新 if(typeof(EventSource)!=="undefined"){//判断浏览器是否支持EventSource var source = new EventSource("ServerServlet");//创建一个新的原创 2016-06-23 16:23:59 · 1229 阅读 · 0 评论 -
HTML5(1):画布(canvas)
html5_canvas.html //我们要在画布画出矩形 //1 得到画布 var canvas = document.getElementById("can1"); //2 得到上下文环境,我们可以通过cx原创 2016-08-04 22:34:10 · 297 阅读 · 0 评论 -
HTML5(2):音频(audio)与视频(video)
html5_video.html <audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" autoplay> 参考链接https://developer.mozilla.org/en/docs/W原创 2016-08-04 22:58:08 · 313 阅读 · 0 评论