By:Kirito
摘要: 阅读全文
posted @ 2016-01-11 12:22 丶Kirito 阅读(4684) 评论(0) 推荐(0) 编辑
摘要: NG重复指令,带过滤器,像这样:orderBy为key值,当然也可以为变量,在controller中可定义该变量值,如:controller中:$scope.order = 'order_prop'; 阅读全文
posted @ 2016-01-07 18:00 丶Kirito 阅读(3462) 评论(0) 推荐(0) 编辑
摘要: 在开发中我们通常会遇到一种需求:一个元素在不同的状态需要展现不同的样子。而在这所谓的样子当然就是改变其css的属性,而实现能动态的改变其属性值,必然只能是更换其class属性这里有三种方法:第一种:通过数据的双向绑定(不推荐)第二种:通过对象数组第三种:通过key/value下面简单说下这三种:第一... 阅读全文
posted @ 2016-01-06 18:59 丶Kirito 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 今天在使用trigger事件碰到问题:例如我有两个按钮,button1和button2,在button2绑定了ng-click事件,现在想点击button1从而触发button2的ng-click事件。代码中我直接用angular.element(button2).triggerHandler('c... 阅读全文
posted @ 2015-12-31 11:21 丶Kirito 阅读(1837) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 {{ page }}在Control中,angular.element()返回一个jquery对象,如angular.element(document).ready(function(){});返回指定元素的scope 阅读全文
posted @ 2015-12-30 09:53 丶Kirito 阅读(6098) 评论(0) 推荐(0) 编辑
摘要: 转自stackoverflow:http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repositoryAnother way to make a directory stay empt... 阅读全文
posted @ 2015-12-11 16:36 丶Kirito 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: 大纲:1.前言2.创建分支3.切换分支4.合并分支(快速合并)5.删除分支6.分支合并冲突7.合并分支(普通合并)8.分支管理策略9.团队多人开发协作10.总结注,测试机 CentOS 5.5 x86_64,Git 服务器版本:git version 1.8.2.1,客户端版本:git versio... 阅读全文
posted @ 2015-12-11 16:16 丶Kirito 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 我每天使用 Git ,但是很多命令记不住。一般来说,日常使用只要记住下图 6 个命令,就可以了。但是熟练使用,恐怕要记住 60~100 个命令。下面是我整理的常用 Git 命令清单。几个专用名词的译名如下。Workspace:工作区Index / Stage:暂存区Repository:仓库区(或本... 阅读全文
posted @ 2015-12-10 17:40 丶Kirito 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 一、service引导刚开始学习Angular的时候,经常被误解和被初学者问到的组件是 service(), factory(), 和 provide()这几个方法之间的差别。This is where we'll start the twenty-five days of Angular cale... 阅读全文
posted @ 2015-11-17 09:51 丶Kirito 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 解决 Javascript 异步事件的传统方式是回调函数;调用一个方法,然后给它一个函数引用,当这个方法完结的时候执行这个函数引用。$.get('api/gizmo/42', function(gizmo) { console.log(gizmo); // or whatever});看起来很不错... 阅读全文
posted @ 2015-11-16 16:24 丶Kirito 阅读(281) 评论(0) 推荐(0) 编辑