2017年3月21日

摘要: 有这么一个webkit的私有属性: -webkit-appearance:none; /*去除input默认样式*/ 添加该样式,并且值为'none'时即可取消浏览器对于控件的默认样式。 另外这个属性也有个神奇的地方~ 他可以用来调用显示浏览器对各种控件的默认样式,比如: <span style=" 阅读全文

posted @ 2017-03-21 15:37 金-Fish 阅读(2252) 评论(0) 推荐(0) 编辑

2017年3月14日

摘要: 以下获取与修改的 URL 以 ( http://172.16.0.88:8100/#/homePage?id=10&a=100 ) 为例 【一】获取 (不修改URL) //1.获取当前完整的url路径 var absurl = $location.absUrl(); //http://172.16. 阅读全文

posted @ 2017-03-14 11:42 金-Fish 阅读(5326) 评论(0) 推荐(0) 编辑

2017年3月6日

摘要: https://docs.angularjs.org/api/ngCookies 阅读全文

posted @ 2017-03-06 17:39 金-Fish 阅读(790) 评论(0) 推荐(0) 编辑

2017年2月21日

摘要: 1、对象的继承,一般的做法是复制:Object.extend prototype.js的实现方式是: Object.extend = function(destination, source) { for (property in source) { destination[property] = 阅读全文

posted @ 2017-02-21 16:13 金-Fish 阅读(5793) 评论(0) 推荐(0) 编辑

2017年1月13日

摘要: 今天提交代码git commit -a的时候出现了这个错误 上网查了一下,说是Vim的返回值出错了,出错的原因还在翻译英文, 先贴出解决方案吧 git config --global core.editor /usr/bin/vim 执行这个倒是可以实现了,但是再提交的时候又出现了这个问题 请教大神 阅读全文

posted @ 2017-01-13 09:52 金-Fish 阅读(4441) 评论(0) 推荐(1) 编辑

2017年1月5日

摘要: 转载自:https://segmentfault.com/a/1190000002773689 下面我们就来详细分析一下指令的作用域。 在这之前希望你对AngularJS的Directive有一定的了解,不然你对下面部分的理解可能会有一点难度。 步入正题: 每当一个指令被创建的时候,都会有这样一个选 阅读全文

posted @ 2017-01-05 16:29 金-Fish 阅读(458) 评论(0) 推荐(0) 编辑

2016年12月30日

摘要: $routeChangeStart属于$route模块,使用将要改变的路由和当前路由对比,在没有跳转之前 参数包括 function(event, next, current) next $locationChangeStart属于$location模块,使用在路由已经改变之后 参数包括 funct 阅读全文

posted @ 2016-12-30 14:55 金-Fish 阅读(3170) 评论(0) 推荐(0) 编辑

摘要: angularjs的$on、$emit、$broadcast 阅读全文

posted @ 2016-12-30 14:28 金-Fish 阅读(213) 评论(0) 推荐(0) 编辑

2016年12月6日

摘要: git 提交 有新文件执行 git stash -u 如果已经执行git stash,会发现有UNtracked这个单词 说明新文件没有添加进去,此时 执行 git stash pop git stash -u 这时候再执行,git status会发现没有上面图片中的现象 阅读全文

posted @ 2016-12-06 10:59 金-Fish 阅读(7524) 评论(0) 推荐(1) 编辑

摘要: AngularJs $anchorScroll、$controller、$document $anchorScroll 根据HTML5的规则,当调用这个函数时,它检查当前的url的hash值并且滚动到相应的元素。 监听$location.hash()并且滚动到url指定的锚点的地方。可以通过$anc 阅读全文

posted @ 2016-12-06 10:12 金-Fish 阅读(897) 评论(0) 推荐(0) 编辑