摘要: URI 统一资源标识符 Uniform Resource IdentifierURL 统一资源定位符 Uniform Resource LocatorURN 统一资源名称 Uniform Resource NameWikipedia:URL: URL是URI的一种,不仅标识了互联网资... 阅读全文
posted @ 2015-12-28 21:11 提佰萬 阅读(310) 评论(0) 推荐(0) 编辑
摘要: URI: Uniform Resource IdentifierencodeURI() And decodeURI()The encodeURI() function is used to encode a URI.The encodeURI()function encodes special ch... 阅读全文
posted @ 2015-12-28 14:14 提佰萬 阅读(332) 评论(0) 推荐(0) 编辑
摘要: CSS Tablesborderborder: border-width border-style border-color|initial|inherit;border-widthborder-width: medium|thin|thick|length|initial|inherit;bord... 阅读全文
posted @ 2015-12-28 00:29 提佰萬 阅读(351) 评论(0) 推荐(0) 编辑
摘要: CSS Text1> Text Colorused to set the color of the text2> Text Alignmentused to set the horizontal alignment of a texttext-align: left|right|center|jus... 阅读全文
posted @ 2015-12-25 17:04 提佰萬 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Selectors/ Backgrounds/ Borders/ Margins/ Padding/ Height and WidthCSS Introduction:CSS stands for Cascading Style SheetsCSS describes how HTML elemen... 阅读全文
posted @ 2015-12-25 15:10 提佰萬 阅读(193) 评论(0) 推荐(0) 编辑
摘要: JavaScript trim()Syntaxstring.trim()The trim() method removes whitespace from both sides of a string.The trim() method does not change the original st... 阅读全文
posted @ 2015-12-25 10:00 提佰萬 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 前端知识体系图 阅读全文
posted @ 2015-12-24 20:22 提佰萬 阅读(237) 评论(0) 推荐(0) 编辑
摘要: .get(index) and .eq(index) both return a single "element" from a jQuery object array, but they return the single element in different forms..eq(index)... 阅读全文
posted @ 2015-12-24 18:22 提佰萬 阅读(544) 评论(0) 推荐(0) 编辑
摘要: pointer-eventsSyntax 1 /* Keyword values */ 2 pointer-events: auto; 3 pointer-events: none; 4 pointer-events: visiblePainted; 5 pointer-events: visibl... 阅读全文
posted @ 2015-12-24 16:57 提佰萬 阅读(393) 评论(0) 推荐(0) 编辑
摘要: event.pageX getmouse position Description: The mouse position relative to the left edge of the document.Example1 .offset() getoffset positionof an ... 阅读全文
posted @ 2015-12-23 23:01 提佰萬 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: 组合 CompositingglobalCompositeOperationsyntax:globalCompositeOperation = type注意:下面所有例子中,蓝色方块是先绘制的,即“已有的 canvas 内容”,红色圆形是后面绘制,即“新图形”。source-over 这是默认设置... 阅读全文
posted @ 2015-12-22 23:05 提佰萬 阅读(2523) 评论(0) 推荐(0) 编辑
摘要: Viewport-Percentage (or Viewport-Relative) Lengths Viewport-Percentage Lengths:The viewport-percentage lengths are relative to the size of the initial... 阅读全文
posted @ 2015-12-22 21:01 提佰萬 阅读(244) 评论(0) 推荐(0) 编辑
摘要: MySQLTutorial官网IF functionsyntax:IF(expr,if_true_expr,if_false_expr)CASE expressionsyntax:1 CASE value2 WHEN compare_value_1 THEN result_13 WHEN compa... 阅读全文
posted @ 2015-12-22 11:08 提佰萬 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Setting Up1 2 The jQuery Plugin Structure1 (function($) {2 3 $.fn.helloWorld = function() {4 5 // Future home of "Hello, World!"6 7 }8... 阅读全文
posted @ 2015-12-21 23:52 提佰萬 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Web Storage包括了两种存储方式:sessionStorage和localStoragesessionStorage 是会话级别的存储,这些数据只有在同一个会话中的页面才能访问并且当会话结束后数据也随之销毁。localStorage 是持久化的本地存储,除非主动删除数据,否则数据是永远不会过... 阅读全文
posted @ 2015-12-20 21:54 提佰萬 阅读(183) 评论(0) 推荐(0) 编辑
摘要: window.setInterval() 周期性地调用一个函数(function)或者执行一段代码。1 var intervalID = window.setInterval(func, delay[, param1, param2, ...]);2 var intervalID = window.... 阅读全文
posted @ 2015-12-20 17:49 提佰萬 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 绘制复杂图形必不可少的方法save() 保存 canvas 状态restore() 恢复 canvas 状态Canvas 的状态就是当前画面应用的所有样式和变形的一个快照。Canvas 的状态是以堆(stack)的方式保存的,每一次调用 save 方法,当前的状态就会被推入堆中保存起来。实例: ... 阅读全文
posted @ 2015-12-20 00:05 提佰萬 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 绘制文本fillText(text, x, y [, maxWidth]) 在指定的(x,y)位置填充指定的文本,绘制的最大宽度是可选的.strokeText(text, x, y [, maxWidth]) 在指定的(x,y)位置绘制文本边框,绘制的最大宽度是可选的.实例:1 function d... 阅读全文
posted @ 2015-12-19 20:19 提佰萬 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 色彩 ColorsfillStyle = color 设置图形的填充颜色。strokeStyle = color 设置图形轮廓的颜色。透明度 TransparencyglobalAlpha = transparency value1 // globalAlpha 示例2 ctx.fillS... 阅读全文
posted @ 2015-12-19 19:34 提佰萬 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: 元素1. 标签只有两个属性—— width和height,默认宽度为300像素和高度为150像素.2. 标签不可省.渲染上下文(The rendering context)1 var canvas = document.getElementById('tutorial');2 var ctx =... 阅读全文
posted @ 2015-12-19 14:26 提佰萬 阅读(372) 评论(0) 推荐(0) 编辑