随笔分类 -  HTML5

摘要:前言: 环境 :手机ios ip5s 、fiddler 、360wifi,台式电脑 保证手机和电脑是局域网(同一网络,不一定要使用360wifi笔记本自带的开启wifi也可以,不是本文的重点) 1:下载安装fiddler 准备环境(地址:http://rj.baidu.com/soft/detail 阅读全文
posted @ 2015-12-24 17:21 s_p 阅读(8504) 评论(3) 推荐(0) 编辑
摘要:HTML: HTML5 线程交互例子 mainthread.JSfunction html5Worker() { //判断浏览器是否支持 if (typeof (Worker) == "undefined") { console.l... 阅读全文
posted @ 2014-06-05 14:57 s_p 阅读(782) 评论(0) 推荐(0) 编辑
摘要:解释:跨文档消息传输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... 阅读全文
posted @ 2013-10-21 17:31 s_p 阅读(544) 评论(0) 推荐(0) 编辑
摘要:先死后活法。静态的:代码:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>动态一点</title></head><body> <canvas id="tsp" height="400px" width="500px" style="background-color: black"> </canvas> < 阅读全文
posted @ 2013-05-18 02:43 s_p 阅读(429) 评论(1) 推荐(0) 编辑
摘要:前端html: script: 图片: 阅读全文
posted @ 2013-05-18 02:28 s_p 阅读(250) 评论(2) 推荐(0) 编辑
摘要:首先判断浏览器是否支持html5,根据以往的经验判断浏览器类型以及版本 这里提供另外一张思路和方法。创建个html5的特性 看浏览器是否存在 参考w3c<script type="text/javascript"> function checkVideo(){if(!!document.createElement('video').canPlayType) { var vidTest=document.createElement("video"); oggTest=vidTest.canPlayType('video/ 阅读全文
posted @ 2013-04-12 17:49 s_p 阅读(444) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示