形象例子: 想知道咱们公司最新MM情报吗?加入公司的MM情报邮件组就行了,tom负责搜集情报,他发现的新情报不用一个一个通知我们,直接发布给邮件组,我们作为订阅者(观察者)就可以及时收到情报啦。观察者模式: 观察者模式定义了一种一队多的依赖关系,让多个观察者对象同时监听某一个主题对象。这个主题对.....
分类:
其他好文 时间:
2014-09-01 21:06:13
阅读次数:
300
一、Propagation (事务的传播属性) Propagation : key属性确定代理应该给哪个方法增加事务行为。这样的属性最重要的部份是传播行为。有以下选项可供使用:PROPAGATION_REQUIRED--支持当前事务,如果当前没有...
分类:
编程语言 时间:
2014-09-01 02:57:12
阅读次数:
233
1. 前言这两天看了一下TOM大叔的《深入理解js系列》中的基础部分,根据自己的实际情况,做了读书笔记,记录了部分容易绊脚的问题。写篇文章,供大家分享。2. 关于HTMLCollection的“实时查询”var divs = document.getElementsByTagName("div"),...
分类:
Web程序 时间:
2014-08-31 21:22:01
阅读次数:
348
SymptomThe full error message is as follows:Error logging in. Unable to process the database transaction. Error:DBMS API library 'oci.dll' loading fai...
分类:
数据库 时间:
2014-08-31 15:47:11
阅读次数:
585
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-08-29 10:45:37
阅读次数:
199
提示:Uncaught Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: AM.controller.Users提示该错误的原因是因为Ext默认是不开启...
分类:
其他好文 时间:
2014-08-28 18:05:05
阅读次数:
175
SQL 跳出游标 breakif xx<=30 begin break end else FETCH NEXT FROM 游标 INTO 参数转载自http://tom-cat.blog.163.com/blog/static/393230201281631964/,感谢Tom 的博客 171106...
分类:
数据库 时间:
2014-08-28 17:59:05
阅读次数:
339
function?Bird(name,?age)?{
????this.name?=?name;
????this.age?=?age;
????this.sons?=?["Tom",?"John"];
????//在sayName()方法不存在的情况下,添加到原型中
????if?(typeof...
分类:
其他好文 时间:
2014-08-28 13:28:29
阅读次数:
166
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-28 13:04:59
阅读次数:
162
序列化数据的要求 效率 时间空间 多语言相互操作 使用方便ProtoBuffer 使用:Designing objectsPerson:IdNameAgeEmailPhone(s) Describing objectsPerson:required int32 idrequired s...
分类:
其他好文 时间:
2014-08-27 17:54:18
阅读次数:
162