js中apply方法的使用1、对象的继承,一般的做法是复制:Object.extendprototype.js的实现方式是:Object.extend = function(destination, source) { for (property in source) { destination[p...
分类:
移动开发 时间:
2014-08-26 00:14:05
阅读次数:
267
一、系统过滤器使用说明 1、OutputCache过滤器OutputCache过滤器用于缓存你查询结果,这样可以提高用户体验,也可以减少查询次数。它有以下属性: Duration:缓存的时间,以秒为单位,理论上缓存时间可以很长,但实际上当系统资源紧张时,缓存空间还是会被系统收回。 VaryBy...
分类:
Web程序 时间:
2014-08-25 18:50:34
阅读次数:
221
JS函数调用的四种方法:方法调用模式,函数调用模式,构造器调用模式,apply,call调用模式1.方法调用模式:先定义一个对象,然后在对象的属性中定义方法,通过myobject.property来执行方法,this即指当前的myobject对象。var blogInfo={ blogId:123....
分类:
Web程序 时间:
2014-08-25 14:49:24
阅读次数:
179
在.h中声明属性如下
@property (retain, nonatomic) UIWindow *window;
@property (nonatomic, retain) UIView *aView;
@property (nonatomic, retain) UIButton *button;
在.m中实现如下
@implementation MAYAppDelegate...
分类:
移动开发 时间:
2014-08-24 14:15:12
阅读次数:
273
类似Page Header, Breadcrumbs, Dropdowns等,都是Bootstrap的组件,是静态的。如果涉及到交互,Bootstrap提供了插件。这些插件包括: ○ 过渡效果: bootstrap-transition.js○ 模态对话框:bootstrap-modal.js○ 下...
分类:
其他好文 时间:
2014-08-24 14:03:52
阅读次数:
207
1. Spring data jpa怎么去判断一个对象的是否为新对象呢?spring data 提供了三种策略:able2.2.Options for detection whether an entity is new in Spring Data JPAId-Property inspectio...
分类:
编程语言 时间:
2014-08-24 09:09:02
阅读次数:
248
这里的协议是独立的,不再类里面,所以每个类的头文件都要引入#import"MarryProtoco.h"头文件。。首先新建一个协议Protocol:MarryProtoco里面写代理人要执行的方法,或者可选方法#import<Foundation/Foundation.h>
@protocolMarryProtoco<NSObject>
//代理人中必..
分类:
其他好文 时间:
2014-08-24 04:10:22
阅读次数:
154
.h文件。。。。。。。@interfacebook:NSObject
/*{
NSString*_bookName;//书名
CGFloat_bookThickness;//厚度
NSString*_bookType;//书类型
NSInteger_bookPrice;//书价格
NSString*_publishingHouse;//出版社
NSString*_publishintTime;//出版时间
}*///在@property里面,其..
分类:
其他好文 时间:
2014-08-23 19:11:51
阅读次数:
150
在IOS编程中,很多人没有理解实例变量与属性的区别,我根据自己的经验,这这里与大家分享下这里面的区别,下面我写一个简单的例子:.h@interface MyController :UIViewController{ UILabel *_myLabel;//这里是实例变量声明}@property (....
分类:
移动开发 时间:
2014-08-23 16:32:11
阅读次数:
210
// MHTAppDelegate.h
// HomeworkNeonLamp
// Copyright (c) 2014年 Summer. All rights reserved.
#import
@interface MHTAppDelegate :
UIResponder UIApplicationDelegate>
@property (retain,
no...
分类:
其他好文 时间:
2014-08-23 14:02:02
阅读次数:
242