随笔分类 - HTML5
摘要:前言: 环境 :手机ios ip5s 、fiddler 、360wifi,台式电脑 保证手机和电脑是局域网(同一网络,不一定要使用360wifi笔记本自带的开启wifi也可以,不是本文的重点) 1:下载安装fiddler 准备环境(地址:http://rj.baidu.com/soft/detail
阅读全文
摘要:HTML: HTML5 线程交互例子 mainthread.JSfunction html5Worker() { //判断浏览器是否支持 if (typeof (Worker) == "undefined") { console.l...
阅读全文
摘要:解释:跨文档消息传输Cross Document Messaging。编写代码前注意判断浏览器是否支持Html5实例: b页面向a页面发送消息。 我是b页面 运行结果:其中hello world是b页面发送过来的。注意事项 :SyntaxotherWindow.postMessage(message, targetOrigin, [transfer]);otherWindow reference to another window; such a reference may be obtained, for example, using thec...
阅读全文
摘要:先死后活法。静态的:代码:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>动态一点</title></head><body> <canvas id="tsp" height="400px" width="500px" style="background-color: black"> </canvas> <
阅读全文
摘要:首先判断浏览器是否支持html5,根据以往的经验判断浏览器类型以及版本 这里提供另外一张思路和方法。创建个html5的特性 看浏览器是否存在 参考w3c<script type="text/javascript"> function checkVideo(){if(!!document.createElement('video').canPlayType) { var vidTest=document.createElement("video"); oggTest=vidTest.canPlayType('video/
阅读全文