发哥要做活神仙

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年4月24日

摘要: 一些知名的批评和缺陷。他们都涉及到$digest loop(更新周期)中一个很常见的问题:如何在Angular之外更新$scope? 在哪调用 $apply? 更佳的做法是确保你是在$digest loop之外时调用$apply,比如在"link"指令(directive)响应函数内部使用。 也就是 阅读全文
posted @ 2016-04-24 12:23 发哥要做活神仙(笔记) 阅读(275) 评论(0) 推荐(0)

2016年4月23日

摘要: JS: 阅读全文
posted @ 2016-04-23 16:04 发哥要做活神仙(笔记) 阅读(228) 评论(0) 推荐(0)

2016年4月21日

摘要: controller是相对独立的,也就是说,两个controller之间,内存是不共享的,这个controller是无法访问其他其他controller的属性或者方法的; 以前,我都是通过localStorage来进行储存,后来发来localStorage应该是用来存储持久化数据,用来存储临时数据, 阅读全文
posted @ 2016-04-21 19:04 发哥要做活神仙(笔记) 阅读(379) 评论(0) 推荐(0)

2016年4月20日

摘要: function god(){} god.protopyte.zaoren_yanjing = function(first_argument){ console.log("眼睛"); } god.protopyte.zaoren_bizi = function(first_argument){ c 阅读全文
posted @ 2016-04-20 19:18 发哥要做活神仙(笔记) 阅读(170) 评论(0) 推荐(0)

摘要: Document 阅读全文
posted @ 2016-04-20 14:35 发哥要做活神仙(笔记) 阅读(180) 评论(0) 推荐(0)

2016年4月13日

摘要: 背景图片不够大,然后就想到用background-size:100%; 测试浏览器的时候发现ie8以下不兼容,图片会自动填充平铺过去,然后出现背景不好看的现象。解决方法: 阅读全文
posted @ 2016-04-13 15:19 发哥要做活神仙(笔记) 阅读(320) 评论(0) 推荐(0)

2016年3月29日

摘要: 后台模式改为客户端编译,修改less后要删除静态文件,然后清除缓存,清除浏览器缓存。刷新多次后生效。 阅读全文
posted @ 2016-03-29 13:02 发哥要做活神仙(笔记) 阅读(418) 评论(0) 推荐(0)

2016年3月9日

摘要: 1、本地创建ssh key: $ ssh-keygen -t rsa -C "your_email@youremail.com" 2、回到github,进入Account Settings,左边选择SSH Keys,Add SSH Key,title随便填,粘贴key。为了验证是否成功,在git b 阅读全文
posted @ 2016-03-09 23:55 发哥要做活神仙(笔记) 阅读(266) 评论(0) 推荐(0)

2016年3月8日

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>demo1</title> </head> <body> <div id="exemple"></div> <script src="bower_compone 阅读全文
posted @ 2016-03-08 00:34 发哥要做活神仙(笔记) 阅读(240) 评论(0) 推荐(0)

2016年3月4日

摘要: Go to \dev\tools\grunt\configs, open your themes.js file, and change it according to the following example: luma: { area: 'frontend', name: 'Magento/l 阅读全文
posted @ 2016-03-04 16:54 发哥要做活神仙(笔记) 阅读(403) 评论(0) 推荐(0)