摘要: 如 例 var a = function() { var i = 1; var b = function() { i = i+1; }; }; 闭包的使用场景例如递归 应该return b出去把 闭包的使用场景例如递归 应该return b出去把 re 不re, 看业务需求 或者需要保存内部变量的就 阅读全文
posted @ 2017-03-16 22:10 永醉雨辰 阅读(177) 评论(0) 推荐(0) 编辑
摘要: $("li").each(index){ $(this).mouseover(fucntion(){ $("div.contentin").removeClass("contentin") $("li.tabin").removeClass("tabin") $("div").eq(index).a 阅读全文
posted @ 2017-03-16 22:06 永醉雨辰 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 打开Git Bash 命令:先写 git status, 它会告诉你怎么做 1. git pull (把git库中代码拉下来) 2. $ git status (查看状态) 3. $ git add * (git add /templates/*){git checkout 恢复没提交的修改} 4. 阅读全文
posted @ 2017-03-16 22:02 永醉雨辰 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 英文版:http://handlebarsjs.com./ 原文链接:http://www.cnblogs.com/diligenceday/p/4105229.html, http://segmentfault.com/a/1190000000342636?from=androidqq html标 阅读全文
posted @ 2017-03-16 21:54 永醉雨辰 阅读(2026) 评论(0) 推荐(0) 编辑
摘要: demoline01、02选一个用足够了 <style> .demo_line_01 { width: 200px;/*这指的是文字的宽度*/ padding: 0 20px 0; margin: 20px auto; line-height: 1px; border-left: 200px sol 阅读全文
posted @ 2017-03-16 21:50 永醉雨辰 阅读(4560) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/lhb25/p/css-and-css3-triangle.html Triangle Up Triangle Up 1 2 3 4 5 6 7 #triangle-up { width: 0; height: 0; border-left: 50 阅读全文
posted @ 2017-03-16 21:48 永醉雨辰 阅读(159) 评论(0) 推荐(0) 编辑
摘要: $.ajax()函数依赖服务器提供的信息来处理返回的数据。如果服务器报告说返回的数据是XML,那么返回的结果就可以用普通的XML方法或者jQuery的选择器来遍历。如果见得到其他类型,比如HTML,则数据就以文本形式来对待。 通过dataType选项还可以指定其他不同数据处理方式。除了单纯的XML, 阅读全文
posted @ 2017-03-16 21:46 永醉雨辰 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.extact 抽取函数:选中代码,右键,refactor-extact webstorm批量查找,批量替换快捷键 ctrl+shift+f:批量查找 ctrl+shift+r:批量替换 ctrl+/ 单行注释ctrl+shift+/ 块注释ctrl+shift+ +/- 展开/折叠ctrl+al 阅读全文
posted @ 2017-03-16 21:38 永醉雨辰 阅读(202) 评论(0) 推荐(0) 编辑
摘要: copy+refine ctrl+p 打开搜索框 搜索方法: @名称(或关键字) 搜索变量: #名称(或关键字) 在文件夹中查找:[find]-[find in files] 其实sublime自身就有格式化命令,就不再安装插件,位置在[Edit]->[Line]->[Reindent] 但这个默认 阅读全文
posted @ 2017-03-16 21:36 永醉雨辰 阅读(398) 评论(0) 推荐(0) 编辑