摘要: 预定义特殊字符-- 转义符 (7个) 字符 (3个) . 除换行符" \n "外的字符 等同于 [^\n] [] 字符集 \ 转义字符 预定义字符集 (6个) \d 数字 等同于 [0-9] \D 非数字 等同于 [^0-9] \s 空白字符 space 等同于 [ \t\n\x0B\f\r] \S 阅读全文
posted @ 2017-06-19 19:58 Tachi 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Native Error Types Used in This Standard *6: 1,EvalError // es5 已废除,为保证兼容性保留. 2, RangeError // new Array(-1) Uncaught RangeError 3, ReferenceError // 阅读全文
posted @ 2017-06-13 09:40 Tachi 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 属性 (6个): fillStyle : color|gradient|pattern - 填充颜色 strokeStyle : color|gradient|pattern - 边框颜色 shadowColor : color - 阴影颜色 shadowBlur - 设置或者返回阴影的模糊级别 s 阅读全文
posted @ 2017-06-04 18:03 Tachi 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 变换方法 *5 translate(x,y) 重新映射画布上的(0,0) rotate(deg) deg - degree * Math.PI / 180 scale(scaleWidth,scaleHeight) transform(a,b,c,d,e,f) // 水平缩放绘图 水平倾斜绘图 垂直 阅读全文
posted @ 2017-06-04 13:15 Tachi 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ie 8 不支持 canvas 路径方法 * 12 1、fill 2、stroke 3、beginPath 4、moveTo 5、closePath 6、lineTo 7、clip //相当于选区,可以在此之前,先save 然后之后再restore 8、quadraticCurveTo 9、bezi 阅读全文
posted @ 2017-06-03 17:51 Tachi 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 矩形 (方法 *4) rect(x,y,x1,y1) //创建矩形路径 fillRect(x,y,x1,y1) //填充矩形 strokeRect(x,y,x1,y1) //创建边框 clearRect(x,y,x1,y1) //清除边框内容 阅读全文
posted @ 2017-06-02 22:04 Tachi 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 线(4个属性): lineWidth:<integer> // 宽度 lineCap: butt | round | square // 顶端样式 默认| 圆角 | 方角 lineJoin: miter | round | bevel // 相交样式 直切 | 圆角 | 倒角 miterLimit 阅读全文
posted @ 2017-06-02 21:29 Tachi 阅读(198) 评论(0) 推荐(0) 编辑
摘要: // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill b... 阅读全文
posted @ 2017-06-01 18:49 Tachi 阅读(406) 评论(0) 推荐(0) 编辑
摘要: // display-flex: container: flex-flow:flex-direction || flex-wrap' justify-content // main axis place method - 5 values : flex-start|flex-end|center|space-between|space-around align-items // cross a... 阅读全文
posted @ 2017-05-22 10:33 Tachi 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Tab key Currently, Emmet expands abbreviations by Tab key only for HTML, CSS, Sass/SCSS and LESS syntaxes. Tab handler scope is limited because it ove 阅读全文
posted @ 2017-03-09 21:27 Tachi 阅读(1650) 评论(0) 推荐(0) 编辑