码迷,mamicode.com
首页 >  
搜索关键字:@age    ( 7165个结果
创建JavaScript标准对象--面试经常遇到的问题
//用构造函数创建对象,利用原型为函数添加方法function Person(name,age,sex){this.Name=name;this.Age=age;this.Sex=sex;}Person.prototype.play=function(){return "我是:"+this.Name...
分类:编程语言   时间:2014-12-12 22:06:16    阅读次数:129
JS OOP编程
1 var com = {citi: {sao: {}}}; 2 3 com.citi.sao.SAOBase = new function() { 4 this.name = null; 5 this.age = null; 6 this.location = null; 7...
分类:Web程序   时间:2014-12-11 23:52:07    阅读次数:194
【笔记】数据库基础03
SQL数据库的基本语法 一些基本的语句用法,数据库的基础。 Unoin的用法 每个结果集的列数必须有相同的结果,类型必须相同。 eg: select Name from Student union select Age from Student ...
分类:数据库   时间:2014-12-11 22:13:20    阅读次数:375
JS实现继承
com.common.kpc = new function() {};com.common.kpc = (function(module) {module.callname = function() {};module.age = function() {};return module;})(com...
分类:Web程序   时间:2014-12-11 20:42:32    阅读次数:160
perl学习笔记(2)
1)记得刚开始写perl的时候,对于一个功能,总是拿目前能用的数据类型来解决问题,不想想有没有更好的,能用能解决问题就好,这就导致了后期,要在函数里面添加功能的时候,函数要添加很多参数,一个函数有7、8个参数,并且这些参数都是有关系的, sub is_healthy{ my ($name, $sex, $age, $height, $weight) = @_; }像上面这个判断...
分类:其他好文   时间:2014-12-11 00:21:24    阅读次数:167
getattr,setattr
#!/usr/bin/env python# !-*-coding:utf-8-*-class Setting(): name = "asdfa" age = "18" def __init__(self): passclass MyClass(): def _...
分类:其他好文   时间:2014-12-10 21:06:21    阅读次数:197
Java基础知识陷阱(五)
本文发表于本人博客。今天我来说说关于静态变量初始化、数组、==与equals的问题,看下面代码:public class Test{ private final int age; private String name; public Test(){ ...
分类:编程语言   时间:2014-12-10 17:42:54    阅读次数:251
OC语言学习 (四) SEL对象,用于日志输出的宏
SEL 对象即一个selector对象,保存一个方法的地址。 Person.h #ifndef oc_Person_h #define oc_Person_h @interface Person : NSObject { int age; @protected float height; } @property int age; //编译器自动解释成 int age的get...
分类:编程语言   时间:2014-12-10 14:14:03    阅读次数:143
OC语言学习 (三) 成员变量get/set方法和“.”语法,@proterty和@synthesize关键字
Person.h #ifndef oc_Person_h #define oc_Person_h @interface Person : NSObject { int age; @protected float height; } - (int) age; //get方法 - (void) setAge:(int)pAge; //set方法 @end #endif...
分类:编程语言   时间:2014-12-10 12:40:26    阅读次数:211
【笔记】 数据库基础02
SQL一些基础的命令 插入数据Insert into Persion1(Name,Age) Values(‘zhanghui’,21);用newid自动生成序号。Insert into Persion2(Id,Name,Age) Values(newid(),’hui’,22); 更新数据1: UP...
分类:数据库   时间:2014-12-09 19:16:47    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!