一属性的内存管理 1属性的语义特征 ①assign 基本数据类型(char,short,int,float,double) <1>最开始使用的set get方法的实现 @property (nonatomic, assign) NSIntger age; set - (void)setName:(N
分类:
其他好文 时间:
2016-03-01 20:49:00
阅读次数:
229
多线程开发1、threading.Thread模块·start·getName():获取名称·setName():设置名称·isDaemon()·setDaemon()·join(timeout):进程等线程的时候,比如timeout等于5就是执行到线程的时候进程等线程5秒钟,如果线程执行超过5秒就不等待,继续执行进程·run()2、多线程开发创建..
分类:
编程语言 时间:
2016-02-29 00:49:24
阅读次数:
262
public class Test { public static void main(String[] args) { Person person1 = new Person(); person1.setId("1"); person1.setName("qiumc"); Person perso
分类:
其他好文 时间:
2016-02-24 21:08:09
阅读次数:
190
Map<String,Object>context=newHashMap<String,Object>();
Personperson1=newPerson();
person1.setName("zhangsan");
Departmentdep=newDepartment();
dep.setName("xx");
person1.setDep(dep);
Personperson2=newPerson();
person2.setName("lisi");
Personp..
分类:
其他好文 时间:
2016-02-22 16:08:28
阅读次数:
164
一封装 var person = function(){ //变量作用域为函数内部,外部无法访问 var name = "default"; return { getName : function(){ return name; }, setName : function(newName){ nam
分类:
编程语言 时间:
2016-02-18 21:20:47
阅读次数:
212
function createRobot(name, id)local obj = { name = name, id = id }function obj:SetName(name)self.name = nameendfunction obj:GetName()return self.namee
分类:
其他好文 时间:
2016-01-29 21:16:56
阅读次数:
132
没有存储任何内存地址的指针就称为空指针(NULL指针)野指针是指向"垃圾"内存(不可用内存)的指针。野指针是非常危险的比如说 定义了一个Person 的类,Person类有一个 - (void)setName方法Person * per = [[Person alloc]init];[per set...
分类:
移动开发 时间:
2016-01-25 11:15:28
阅读次数:
160
#includeusingnamespacebge;Window*createButton(conststd::string&name,constString&text){Button*button=newButton(0,text);button->setName(name);button->se...
分类:
其他好文 时间:
2016-01-20 10:01:00
阅读次数:
209
原文链接:http://blog.sina.com.cn/s/blog_5f1fe33f0100jibg.html示例代码:JsonBean bean = new JsonBean();bean.setName("NewBaby");bean.setAge(1);bean.setBorn(new D...
分类:
Web程序 时间:
2016-01-14 20:54:25
阅读次数:
170
私有变量:1、在一个实例上调用setName()会影响所有的实例BOM:1、全局变量不能通过delete操作符删除,而直接在window对象上定义的属性可以2、尝试访问为声明的变量会抛出错误,但通过查询window对象,可以知道某个可能未声明的变量是否存在var newValue=oldValue;...
分类:
Web程序 时间:
2016-01-14 09:46:30
阅读次数:
517