ext4.2需求:清空store1的数据,并把store2的数据加载到store1中。速度太慢,需要优化。原始代码:varstart1=newDate().getTime();
anlyGridStore.removeAll();
varstart2=newDate().getTime();
console.log(start2-start1);//614
analyses.each(function(record){
data.push..
分类:
其他好文 时间:
2014-05-13 03:54:42
阅读次数:
255
ext版本:4.2需求:在数据record绑定到form的时候,Ext会触发field的change事件和validate事件。以至于,新建的空表单界面,会出现验证不通过的样式,如下图:解决思路:在formloadRecord之前,禁止field的change()事件,loadRecord之后,开启field的change()事件。loadRecord..
分类:
其他好文 时间:
2014-05-13 03:33:03
阅读次数:
340
不求全面,先留个爪: TNotifyEvent = procedure(Sender:
TObject) of object; TMethod = record Code, Data: Pointer;
end;判断两个按钮的事件是否相等:procedure TForm1.Button5...
分类:
其他好文 时间:
2014-05-12 20:58:45
阅读次数:
432
print"ID of last record is ",
int(cursor.lastrowid) #最后插入行的主键IDprint"ID of inserted record is ",
int(conn.insert_id()) #最新插入行的主键ID,conn.insert_id()一定要...
分类:
数据库 时间:
2014-05-12 13:02:44
阅读次数:
394
criteria查询 的方法详解1.获取 criteria对象Criteria criteria =
this.getSession().createCriteria(Record.class);红色部分为实体类,此处的Record代表信息记录类2.追加条件criteria
= criteria.a...
分类:
系统相关 时间:
2014-05-09 19:54:56
阅读次数:
353
CONTAINING_RECORD 这样的一个宏,我看了它的定义,如下:#define
CONTAINING_RECORD(address, type, field) ((type *)( (PCHAR)(address) -
(ULONG_PTR)(&((type*)0)->field)))cla...
分类:
其他好文 时间:
2014-05-09 04:21:01
阅读次数:
330
Steps to Writing Well-—Reading NotesSteps to
Writing Well-—Reading NotesTable of Contents1. Chapter 1 PrewritingThis post is
used to record the learni...
分类:
其他好文 时间:
2014-05-09 03:22:50
阅读次数:
363
ODPS中的TaskContext类有几个write函数write(Record
record)用来输出到默认输出表write(Record record, String label)用来输出的label的输出表write(Record
key, Record value) 用来Map后输出到中间表
分类:
其他好文 时间:
2014-05-09 00:14:26
阅读次数:
335
详情请参考官网:http://www.erlang.org/doc/reference_manual/records.htmlhttp://www.erlang.org/doc/programming_examples/records.html1.
record本质上是tuple.2.获取recor...
分类:
其他好文 时间:
2014-05-07 21:17:40
阅读次数:
362
6.7备注
有时有个像Pasca中“记录”和C中“数据体”的数据类型非常有用。集合一些数据项。一个空类定义可以清楚地显示:
class Employee:
pass
john = Employee() # Create an empty employee record
# Fill the fields of the record
john.name = ’John Doe’
joh...
分类:
编程语言 时间:
2014-05-07 11:25:11
阅读次数:
311