工具 sublime text 安装package control 打开控制台: ctrl+` 或者菜单 View > Show Console sublime text2 import urllib2,os,hashli... 09月10日 工具 发表评论 阅读全文
CSS 定高矩形垂直居中的五种方法 在线演示 样式表 html,body{ width: 100%; height: 100%; } body,div{ padding: 0; margin: 0 } .wrap{ width: 100... 06月28日 CSS 发表评论 阅读全文
算法 算法之找到字符串最大不重复子串的长度 LeetCode Link 算法描述: 给你一个随机字符串,返回该字符串最大不重复子串的长度 例子: “abcabcbb” 结果是“abc” 长度为3 “bbbbb” 结果是“b” 长度为1 “pww... 06月26日 算法 发表评论 阅读全文
HTML5 canvas 文字瀑布动画 在线测试 //created by PDSLLY Date: 2017.06.25 function draw(cof, x, y, ctx, set){ let t = null; let l = ... 06月25日 HTML5 发表评论 阅读全文
javascript flow.js 简单的流控制 在线演示 (function(win){ "use strict" function assert(condition, msg){ if(!condition) throw new Error('f... 06月16日 javascript 发表评论 阅读全文
CSS 淘宝css reset body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend... 06月14日 CSS 发表评论 阅读全文
算法 深度优先遍历和广度优先遍历算法 在线测试 function BFS( target, draw ){ let stack = ; while( stack.length > 0 ){ let node = stack.shif... 06月04日 算法 发表评论 阅读全文
Vue插件开发 在线演示 CSS body,div,button{padding:0;margin:0;box-sizing:border-box;} html{ font-size: 125%; } html,bo... 05月31日 vue 发表评论 阅读全文
ES6 ES6 for…of..迭代 for...of语句在可迭代对象(包括 Array, Map, Set, String, TypedArray,arguments 对象等等)上创建一个迭代循环,对每个不同属性的属性值,调用一个自定义... 05月25日 ES6 发表评论 阅读全文
javascript FISHER-YATES洗牌算法 function shuffle( arr ){ if( !Array.isArray( arr ) ) throw new Error( 'paramter must be an array!' )... 05月23日 javascript 发表评论 阅读全文