摘要: 发现可以提速的内容 发现可以提速的内容 发现可以提速的内容 发现可以提速的内容 你必须首先发现你的什么图片和HTML加载缓慢了你的脚本速度,下面提供了方法: 1. Firefox web-developer toolbar 2. Firebug Plugin 3. OctaGate SiteTime 阅读全文
posted @ 2016-05-02 12:27 RachelChen 阅读(605) 评论(0) 推荐(0) 编辑
摘要: ArrayBuffers are fixed length buffer of bytes. The bytes in an ArrayBuffer are only accessible through a DataView (for heterogenous data异构数据) or one o 阅读全文
posted @ 2016-04-28 10:12 RachelChen 阅读(782) 评论(0) 推荐(0) 编辑
摘要: File Interface A File object in JavaScript references an actual file in the local filesystem. This File object inherits all properties and methods fro 阅读全文
posted @ 2016-04-27 21:21 RachelChen 阅读(718) 评论(0) 推荐(0) 编辑
摘要: What is a Blob? A blob object represents a chuck of bytes that holds data of a file. But a blob is not a reference to a actual file, it may seem like 阅读全文
posted @ 2016-04-27 18:51 RachelChen 阅读(6053) 评论(0) 推荐(1) 编辑
摘要: webworker标准包含两部分:worker对象和WorkerGlobalScope(用来表示新创建的Worker的全局对象,也是worker线程内部使用的对象) worker对象 创建一个新的worker,只需要使用Worker()构造函数,并将指定在Worker中运行的JavaScript脚本 阅读全文
posted @ 2016-04-27 17:33 RachelChen 阅读(731) 评论(0) 推荐(0) 编辑
摘要: widnow.postMessage()方法允许安全的跨域传输。 Syntax The dispatched event 其他的窗口可以通过以下代码来监听被发送的信息: 被发送的信息的属性如下: Security concerns 如果你不想接受到其他网站的信息,不要在message对象上增加任何监 阅读全文
posted @ 2016-04-27 16:40 RachelChen 阅读(2628) 评论(0) 推荐(0) 编辑
摘要: The geolocation object geolocation API建立在navigator.geolocation 上。 如果对象存在,才可以使用定位服务。 Note: 在Firefox24以及更加老的版本中,"geolocation" in navigator 总是返回true不管是否可 阅读全文
posted @ 2016-04-27 13:40 RachelChen 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 不支持的时候记得: 中间的内容是不支持canvas显示的内容。 下面检查是否可以使用canvas HTML Canvas Coordinates Canvas Coordinates The HTML canvas 是一个二维空间的栅格 左上角的坐标是0,0 fillRect(0,0,150,75) 阅读全文
posted @ 2016-04-26 21:57 RachelChen 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 没有做秒针,只做了分针和时针,5分钟以后来看应该可以看到效果╮(╯-╰)╭ 效果图如下: 阅读全文
posted @ 2016-04-26 19:15 RachelChen 阅读(842) 评论(0) 推荐(0) 编辑
摘要: Style 样式分离啊,注意上面有个hover,感觉像在使用css一样~ 下面是内嵌的,缺点就是木有样式和行为分离: 最后从外面导入样式 在style.css文件里面写上 Gradients 一个gradient就是从一个颜色到另一个颜色的平滑转变。类型: Linear Radial Linear 阅读全文
posted @ 2016-04-26 19:09 RachelChen 阅读(274) 评论(0) 推荐(0) 编辑