上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: - Transformations scale(0.5,0.5) 缩放 rotate(0.175) 旋转 translate(100,50) 位移- 代码结构 context.scale(x, y) context.rotate(angle ) context.translate(x, ... 阅读全文
posted @ 2015-01-04 14:13 悠悠清风~ 阅读(400) 评论(0) 推荐(0) 编辑
摘要: - 为何需要微数据 长篇加累版牍,不好理解 微标记来标注其中内容,让其容易识辨- RDFa Resource Description Framework http://www.w3.org/TR/microdata http://www.whatwg.org/specs/web-apps/... 阅读全文
posted @ 2015-01-04 14:06 悠悠清风~ 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 为了进行后台计算提供的完全隔离计算方式 不可访问 DOM APIs 不可访问 window object 不可访问 document object 强隔离保证并行计算结果无误(无锁机制)---- 启动 定义Worker对象 var w = new Worker("calc.js"); Worker会... 阅读全文
posted @ 2015-01-04 14:03 悠悠清风~ 阅读(731) 评论(0) 推荐(0) 编辑
摘要: - 服务器端广播文本- 所有客户端都可以收到--- 客户端- 定义文本框- 定义发送事件 textarea accesskey =t oninput="sendmsg();"- 发送协议 ws:// 普通web-socket wss:// 加密web-socket客户端-创立连接var ws,... 阅读全文
posted @ 2015-01-04 13:59 悠悠清风~ 阅读(5100) 评论(12) 推荐(2) 编辑
摘要: ------- 新的网络连接技术- Web-Sockets 持续连接数据流 全双工工作方式 http补充品而非替代品- 应用场景 聊天室 股票显示 在线游戏(尤为突出)- 2byte的通信 1byte定义开始1byte定义字长- 服务器端 所有服务器端语言均可 Node.j... 阅读全文
posted @ 2015-01-04 13:57 悠悠清风~ 阅读(353) 评论(0) 推荐(0) 编辑
摘要: ----- 缓存文件- 使用UTF-8编码- 以Cache Manifest 开头- 三个基本部分CACHE MANIFESTmenu.htmlmenu.js# login requires network connectionNETWORK:login.phpFALLBACK:/ /menu... 阅读全文
posted @ 2015-01-04 13:56 悠悠清风~ 阅读(314) 评论(0) 推荐(0) 编辑
摘要: --- Storage接口 无论是sessionStorage还是localStorage 属性/方法 返回值 描述 ------------------------------------------------------- length integer 包含对象数目,只读 k... 阅读全文
posted @ 2015-01-04 13:54 悠悠清风~ 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 上代码:window.onload = function() {if (navigator.geolocation) { navigator.geolocation.getCurrentPosition( function(pos) { $(“lat”).innerHTM... 阅读全文
posted @ 2015-01-04 13:52 悠悠清风~ 阅读(173) 评论(0) 推荐(0) 编辑
摘要: --- 内嵌图像- drawImage可以绘制图像context.drawImage(image,dx,dy)context.drawImage(image,dx,dy,dw,dh)context.drawImage(image,sx,sy,sw,sh,dx,dy,dw,dh)- 基本绘制 图片根据... 阅读全文
posted @ 2015-01-04 13:51 悠悠清风~ 阅读(2370) 评论(0) 推荐(0) 编辑
摘要: - 使用CSS样式来定义context.font = [CSS font property]context.font = [font-style font-variant font-weight font-size font-family ]属性名:font-style/font-variant/f... 阅读全文
posted @ 2015-01-04 13:50 悠悠清风~ 阅读(801) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页