10 2015 档案

摘要:Emmet 语法探析 Emmet(Zen Coding)是一个能大幅度提高前端开发效率的一个工具。 大多数编辑器都支持Snippet,即存储和重用一些代码块。但是前提是:你必须先定义 这些代码块。 Emmet的特点在于你可以设置CSS形式的能够动态解析的表达式,然后根据所输入 的表达式来... 阅读全文
posted @ 2015-10-19 22:56 chaha 阅读(188) 评论(0) 推荐(0)
摘要:http://code.kpman.cc/2014/10/14/sublime text 3 mac %E6%8C%87%E5%8D%97/ gif 屏幕录制:http://recordit.co/ 或者 http://www.cockos.com/licecap/ http://blog.wp... 阅读全文
posted @ 2015-10-18 16:37 chaha 阅读(261) 评论(0) 推荐(0)
摘要:在做项目的过程中通常会有一些可复用的通用性功能,之前的做法是把这个功能抽取出来独立为一个函数统一放到 commonFunctions.js 里面(捂脸),实现类似于 snippets 的代码片段收集。 在理想情况下,开发者只需要实现核心的业务逻辑,其他通用功能可以加载已经实现的模块。 ... 阅读全文
posted @ 2015-10-17 14:01 chaha 阅读(212) 评论(0) 推荐(0)
摘要:You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you c... 阅读全文
posted @ 2015-10-02 23:00 chaha 阅读(117) 评论(0) 推荐(0)
摘要:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c... 阅读全文
posted @ 2015-10-02 18:01 chaha 阅读(150) 评论(0) 推荐(0)
摘要:JS中substr和substring的用法和区别 substr和substring都是JS截取字符串函数,两者用法很相近, substr方法 返回一个从指定位置开始的指定长度的子字符串。 string.substr(start[,length]) 注意: length可选项。如length... 阅读全文
posted @ 2015-10-01 13:22 chaha 阅读(175) 评论(0) 推荐(0)