<?php
classmy{
static$shengao="188";//my::$shengao="190";
static$age="18";
staticfunctionshengao(){
echo"我的身高:".self::$shengao."</br>";
}
staticfunctionage(){
echo"我的年龄:".self::$age."</br>";
}
staticfunctionzonghe()..
分类:
Web程序 时间:
2014-10-30 10:28:43
阅读次数:
264
AppDelegate.m
#import "FirstViewController.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.win...
分类:
其他好文 时间:
2014-10-30 10:26:17
阅读次数:
229
在php类中如果$this->wowo;其中wowo是变量,但是在类中没有定义,则系统会自动调用__get魔术函数,self::可以应用在类中,用于取得静态变量或函数;$this->用于取出类中的私有、公有变量函数,也可以去静态变量;查看代码时可以应用debug查看具体的参数内容;今天语录:..
分类:
Web程序 时间:
2014-10-30 02:09:25
阅读次数:
213
自动尺寸调整属性autoresizesSubviews//高度自动伸缩,右边间距自动伸缩self.autoresizesSubviews=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleRightMargin;UIViewAutoresizingNone这个常量如果被设置,视图将不进行自动尺寸调整。UIViewAutoresizingFlexible..
分类:
其他好文 时间:
2014-10-30 02:06:31
阅读次数:
130
#!/usr/bin/pythonimportQueue,threading,sysfromthreadingimportThreadimporttime,urllibclassWorker(Thread):worker_count=0def__init__(self,workQueue,resultQueue,timeout=0,**kwds):Thread.__init__(self,**kwds)self.id=Worker.worker_countWorker.worker_count+=1self...
分类:
编程语言 时间:
2014-10-29 19:43:19
阅读次数:
208
- (void)savePhotoToAlbum{ ZoomScrollView *zoomScrollView = (ZoomScrollView*)[self.scrollViewviewWithTag:BEGIN_TAG_FOR_IMAGE+self.currentImagePage]; .....
分类:
移动开发 时间:
2014-10-29 16:22:42
阅读次数:
223
RootViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor greenColor];
//创建显示文字的label
UILabel *label = [[UILabel alloc] initWithFr...
分类:
其他好文 时间:
2014-10-29 14:57:16
阅读次数:
162
RootViewController.m
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
...
分类:
其他好文 时间:
2014-10-29 14:57:16
阅读次数:
123
- (void)viewDidLoad {
[super viewDidLoad];
//创建表
[self creatTable];
//插入数据
[self insertTable];
}
// -----------------------创建一个表--------------------
- (void)creatTable
{
// 1.创建一个...
分类:
数据库 时间:
2014-10-29 13:00:03
阅读次数:
336
I have a UIView and I'm trying to set its layer properties.self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];self.color...
分类:
其他好文 时间:
2014-10-29 12:39:13
阅读次数:
143