restfull路由如下:router.get('/:id', controller.show);mongoes代码如下:exports.show = function(req, res) { Notice.findById(req.params.id, function (err, notice....
分类:
其他好文 时间:
2015-06-17 16:35:08
阅读次数:
204
今天还是来说一下angular中的路由模块。我们实际项目中,各个页面的切换是经常会与Auth相关的。比如我网站的后台,是需要登录过的用户才能进去,那么我们用angularJS做前端路由的时候应该怎么完成这个功能呢--------------------------------------------...
分类:
其他好文 时间:
2015-06-15 11:08:37
阅读次数:
117
$stateservice in module ui.router.state Description$state service is responsible for representing states as well as transitioning between them. It als...
分类:
其他好文 时间:
2015-06-15 10:47:23
阅读次数:
379
router> enable从用户模式进入特权模式router# disable or exit从特权模式退出到用户模式router# show sessions查看本机上的TELNET会话router# disconnect关闭所有的TELNET会话router# show users查看本机上的...
分类:
其他好文 时间:
2015-06-09 23:21:35
阅读次数:
180
【资料整理】cisco[cli,static,rip,eigrp,ospf]3.CLI
{
1)设定密码、接口IP地址
router>
router>enable
router#
router#configureterminal
router(config)#hostnameA
A(config)#enablesecretAPwd
A(config)#interfacefastEthernet0/1
A(config-if)#ipaddress10.1.1.1255..
分类:
系统相关 时间:
2015-06-09 17:50:54
阅读次数:
143
【资料整理】cisco[OSI,IPAddress,NetworkSegment,SubnetMask]###Concept###
----------------------
from20110712to20110716
1.Networksegment
{
router;
switch;
bridge;
}
2.LANblocks
{
broadcastdomain;
broadcaststorm;
multicast;
lowbrandwidth;
}
3.benefitsoft..
分类:
Web程序 时间:
2015-06-09 17:49:15
阅读次数:
141
【资料整理】cisco[shell,command]PromotMode
{
UserMode:
Router>(input:enable)
PrivilegeMode:
Router#(input:conft)
GlobalConfigMode:
Router(config)#
----Ctrl-Z->PM,Exit->GCM
Interface:
Router(config-if)#
Sub-interface:
Router(config-subif)#
..
分类:
系统相关 时间:
2015-06-09 17:49:05
阅读次数:
168
设备配置的准备工作修改会话超时时间,设置为永不超时。Router(config)#lineconsole0
Router(config-line)#exec-timeout00防止控制台自动显示的信息,可以启用显示同步。Router(config)#lineconsole0
Router(config-line)#loggingsynchronous禁用DNS查询Router(config)#noipdom..
分类:
其他好文 时间:
2015-06-07 21:45:24
阅读次数:
142