11 2014 档案

摘要:Promise API 刚刚接触promise这个东西,网上看了很多博客,大部分是讲怎么用Promise,丝毫没提怎么实现Promise。 我不甘心,可是真去看JQuery或者AngularJs中Promise的源码又觉得云里雾里。于是就想自己先试试能不能实习Promise的API,然后再看源码深入... 阅读全文
posted @ 2014-11-17 17:37 502280728 阅读(298) 评论(0) 推荐(0)
摘要:Angular does an excellent job of managing object dependencies. it can even take care of module dependencies.So we can easily group releated services ... 阅读全文
posted @ 2014-11-16 17:54 502280728 阅读(181) 评论(0) 推荐(0)
摘要:有以下5中方法注册一个AngularJS可以识别的Servicevalue和constant是两个极其简单的方法,只有少数情况下会使用。 service已经开始复杂了起来。而factory是我认为既简单又有足够灵活的度的方法。最后的provide是最复杂的方法,其他方法都是provide的特殊情况下... 阅读全文
posted @ 2014-11-16 17:53 502280728 阅读(412) 评论(0) 推荐(0)
摘要:I am still tired to translate these into Chinese.but who cares? i write these posts just for myselfViewafter a browser is done transforming the arkup'... 阅读全文
posted @ 2014-11-16 17:51 502280728 阅读(180) 评论(0) 推荐(0)
摘要:I am tired to translate these into Chinese.but who cares? i write these posts just for myselfScopea new scope is created by the ng-controller directiv... 阅读全文
posted @ 2014-11-16 17:49 502280728 阅读(140) 评论(0) 推荐(0)
摘要:REST and RESTful最近入手了REST,谈谈自己的体会。所谓REST, 我觉得是一种网址的设计风格。过去我们用Struts 或Spring MVC 时从来没有考虑过URL的设计风格。所有的URL大体都是 XXX/?name=Mike&age=12 这种样式的,并且时间长了都觉得这是理所当... 阅读全文
posted @ 2014-11-14 09:14 502280728 阅读(129) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示