上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 60 下一页
摘要: 先看两篇博客:http://camnpr.com/javascript/1652.html 这一篇博客是重点中的重点: http://www.tuicool.com/articles/zeiy6ff 我们使用ui.router 这个的话:分为以下几个步骤: 1.包含模块: 2.方便获得当前状态的方法 阅读全文
posted @ 2016-06-14 11:16 飘然离去 阅读(571) 评论(0) 推荐(0) 编辑
摘要: ng-disabled 指令绑定应用程序数据 "mySwitch" 到 HTML 的 disabled 属性。 ng-model 指令绑定 "mySwitch" 到 HTML input checkbox 元素的内容(value)。 如果 mySwitch 为true, 按钮将不可用: 阅读全文
posted @ 2016-06-14 07:11 飘然离去 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 在 AngularJS 中,服务是一个函数或对象,可在你的 AngularJS 应用中使用。 AngularJS 内建了30 多个服务。 $window$routeProvider 1. $http服务 $http 是 AngularJS 应用中最常用的服务。服务向服务器发送请求,应用响应服务器传送 阅读全文
posted @ 2016-06-14 06:57 飘然离去 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 这两者的区别:请看博客:http://stackoverflow.com/questions/32680292/angularjs-state-and-rootscope-onstatechangestart-issue 使用方法: 阅读全文
posted @ 2016-06-13 23:38 飘然离去 阅读(3880) 评论(0) 推荐(0) 编辑
摘要: $on、$emit和$broadcast使得event、data在controller之间的传递变的简单。 $emit只能向parent controller传递event与data $broadcast只能向child controller传递event与data $on用于接收event与dat 阅读全文
posted @ 2016-06-13 23:32 飘然离去 阅读(3943) 评论(1) 推荐(0) 编辑
摘要: 请看这个博客: http://spartan1.iteye.com/blog/1729148 我自己的理解 session俗称会话。 第一次访问服务器的时候由服务器创建,相当于一个cookie(就是),key为sessionid之类的名字。 每次http请求的时候,会取出来与数据库中保存的sessi 阅读全文
posted @ 2016-06-13 17:08 飘然离去 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: 路由必看的博客博客,也是学习node必看的博客:http://www.open-open.com/lib/view/open1409929982338.html 下面是一些路由例子,以及与之相匹配的关联路径: 下面这端看一定看懂: 阅读全文
posted @ 2016-06-13 14:22 飘然离去 阅读(3707) 评论(0) 推荐(0) 编辑
摘要: 请看博客: http://cnodejs.org/topic/516b64596d38277306407936 阅读全文
posted @ 2016-06-13 11:53 飘然离去 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 查看这个链接:http://stackoverflow.com/questions/23494956/how-to-use-morgan-logger 阅读全文
posted @ 2016-06-13 11:48 飘然离去 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1.我看到的最简单的一种:evn 默认的值是 development 2.我们问这个env怎么设置啊? app.set('env', 'production'); 3.这个博客看一眼然后我们分析:https://segmentfault.com/q/1010000002940044 4.问为什么一个 阅读全文
posted @ 2016-06-13 10:19 飘然离去 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 60 下一页