摘要: 可见,绑定的是for后边的对象。 阅读全文
posted @ 2017-10-23 15:05 董永辉Bruno 阅读(635) 评论(0) 推荐(0) 编辑
摘要: Javascript也是面向对象的语言,但它是一种基于原型Prototype的语言,而不是基于类的语言。在Javascript中,类和对象看起来没有太多的区别。 1.什么是prototype: function定义的对象有一个prototype属性,prototype属性又指向了一个prototyp 阅读全文
posted @ 2017-10-22 20:08 董永辉Bruno 阅读(7593) 评论(0) 推荐(1) 编辑
摘要: 把lg配置成了:git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Cres 阅读全文
posted @ 2017-10-22 14:30 董永辉Bruno 阅读(974) 评论(0) 推荐(0) 编辑
摘要: 1.怎么回退到之前的commit? 2.git checkout 的用法有哪些? (1)命令git checkout -- readme.txt意思就是,把readme.txt文件在工作区的修改全部撤销,这里有两种情况: 一种是readme.txt自修改后还没有被放到暂存区,现在,撤销修改就回到和版 阅读全文
posted @ 2017-10-22 14:03 董永辉Bruno 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: var getOrders = function(){ var deferred = $q.defer(); $http({ method:'get', url:'/getOrders', headers: {'Cache-Control':'no-cache;max-age=0', 'Pragma 阅读全文
posted @ 2017-10-17 13:10 董永辉Bruno 阅读(695) 评论(0) 推荐(0) 编辑
摘要: sublime中自建的有格式化按钮: Edit -> Line -> Reindent 只是sublime并没有给他赋予快捷键,所以只需加上快捷键即可 Preference -> Key Bindings -user 打开用户快捷键绑定设置添加(比如添加:ctrl + alt +a) { "keys 阅读全文
posted @ 2017-10-16 21:23 董永辉Bruno 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: HTTP权威指南 2012年 8 月第 1 版 1. 阅读全文
posted @ 2017-10-15 15:59 董永辉Bruno 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 编写高质量代码:Web 前端开发修炼之道/曹刘阳著. —北京:机械工业出版社,2010.5 第一版 涉及到的知识点: 1. CSS Sprites 在国内很多人叫css精灵,是一种网页图片应用处理方式。它允许你将一个页面涉及到的所有零星图片都包含到一张大图中去,这样一来,当访问该页面时,载入的图片就 阅读全文
posted @ 2017-10-15 12:41 董永辉Bruno 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1. 如果分支只是本地分支,则可以使用 -d (如果分支已合并),例如 git branch -d <branch name>如果分支包含不计划合并的代码,请改用 -D (即使有没有merge的代码,也会删除分支). 2. 如果分支在上游仓库(在Bitbucket上), 可以通过删除远程引用 git 阅读全文
posted @ 2017-10-12 23:07 董永辉Bruno 阅读(1579) 评论(0) 推荐(0) 编辑
摘要: function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var seperator2 = ":"; var month = date.getMonth() + 1; var strDate = date.g 阅读全文
posted @ 2017-04-12 09:50 董永辉Bruno 阅读(2438) 评论(0) 推荐(0) 编辑