一、大访问量,并发高1.负载均衡lvs+dr(directive-route)直接路由2.高可用 keepalived二、大数据存储1.分布式存储(MFS,FDFS,NFS)2.mysql(主从,分区)3.内存缓存(redis,memecache)三、网站加速1.CDN,智能DNS,反向代理(squ...
分类:
Web程序 时间:
2015-06-17 11:07:21
阅读次数:
183
angular.module('myApp', []) .directive('myDirective', function() { return { restrict: 'A', replace: true, scope: { ...
分类:
Web程序 时间:
2015-06-15 18:36:54
阅读次数:
129
angular.js之爱恨情仇:MV*、数据绑定、指令化......
分类:
Web程序 时间:
2015-06-14 22:53:40
阅读次数:
193
原文:http://seanhess.github.io/2013/10/14/angularjs-directive-design.htmlAngularJS directives很酷AngularJS一个非常好的特色就是可以创建directives, 或者说是可重复利用的web componen...
分类:
Web程序 时间:
2015-06-05 12:16:58
阅读次数:
174
# The ServerName
directive sets the request scheme, hostname and port that
# the server
uses to identify itself. This is used when creating
# redirection
URLs. In the context o...
分类:
Web程序 时间:
2015-06-01 09:42:25
阅读次数:
147
declare 结构用来设定一段代码的执行指令。declare 的语法和其它流程控制结构相似(该代码为语法格式,不是代码案例,无需敲打该代码):declare (directive) statementdirective 部分允许设定 declare 代码段的行为。目前只认识两个指令:tick...
分类:
Web程序 时间:
2015-05-29 00:40:25
阅读次数:
255
之前写过一篇了http://www.cnblogs.com/keatkeat/p/3903673.html但某些部分写的不太清楚,甚至有点错误,所以今天特地在这里再来谈谈。这篇主要是说指令的隔离还有和controller的沟通.指令的运行过程基本上我们可以简单的理解为 : template -> c...
分类:
Web程序 时间:
2015-05-22 20:59:48
阅读次数:
171
开门见山地说,scope:{}使指令与外界隔离开来,使其模板(template)处于non-inheriting(无继承)的状态,当然除非你在其中使用了transclude嵌入,这点之后的笔记会再详细记录的。但是这显然不符合实际开发中的需求,因为实际上,我们经常想要我们的指令能够在特定的情况下与外界...
分类:
其他好文 时间:
2015-05-22 16:34:09
阅读次数:
142
1、expander.html: 单击展开demo {{text}} 2、expander.js:var myModule = angular.module("app",[]);myModule.directive('expander',function(){ return { re...
分类:
Web程序 时间:
2015-05-21 19:27:05
阅读次数:
218
即之前写的回车换行《关于angularjs框架中input按回车事件光标跳转到另一个input上》,接着又有输入框值,被选中。
个人觉得angularjs 中指令很好,在html中很多验证都会用到,但是,得多写。如下代码实现:/** --------------指令 按下回车事件,单击事件 ”选中“输入框的值-----------*/
module.directive('selectlin...
分类:
Web程序 时间:
2015-05-21 15:38:42
阅读次数:
180