用于创建自定义动画的函数。 返回值:jQuery animate(params, [duration], [easing], [callback]) 如果使用的是“hide”、“show”或“toggle”这样的字符串值,则会为该属性调用默认的动画形式。paramsOptions一组包含作为动画属性...
分类:
Web程序 时间:
2014-07-12 08:02:05
阅读次数:
303
用于创建自定义动画的函数。 返回值:jQuery animate(params, [duration], [easing], [callback]) 如果使用的是“hide”、“show”或“toggle”这样的字符串值,则会为该属性调用默认的动画形式。paramsOptions一组包含作为动画属性...
分类:
Web程序 时间:
2014-07-12 08:00:51
阅读次数:
226
1、CSS的“float”属性
获取给定对象的特定 CSS 属性的基本语法是 object.style.property,有连字符的属性要用骆驼命名法来代替,例如,获取一个 ID 为 “header” 的 div 的 background-color 属性,语法如下:
document.getElementById("header").style.backgroundColor= "#ccc";
但是自从JavaScript将float作为保留字,...
分类:
编程语言 时间:
2014-07-10 23:37:23
阅读次数:
335
给按钮做抖动效果,可以这样做,建立anim文件夹在res下面,创建一个button_shake.xml
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="120"
android:fromDegrees="-3"
android:pivotX="100...
分类:
移动开发 时间:
2014-07-10 22:47:01
阅读次数:
319
事务的特征:ACID
Atomicity:原子性
Consistency:一致性
Isolation:隔离性
Duration:持久性
在SQL标准中定义了事务的四种隔离级别:
1,read uncommitted 未提交读
事务中的修改,即使没有提交,对其他事务也都是可见的。即事务可以读取未提交的数据,即会产生脏读。
2,read committed 提交读 ...
分类:
数据库 时间:
2014-07-10 22:29:41
阅读次数:
319
解决方案:
1.定义一个textview,在storyboard中设定constraints。
2.将高度的constraint定义到头文件中:(直接拖拽)
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textviewHeightConstraint;
3.待在实现文件中为textview加载了内容之后,获取文本高度,为...
分类:
移动开发 时间:
2014-07-10 20:56:49
阅读次数:
237
本人自己录制的swift菜鸟入门,欢迎大家拍砖,有什么问题可以在这里留言。 主要内容: 存储属性(Stored Properties) 计算属性(Computed Properties) 属性观察器(Property Observers) 全局变量和局部变量(Global and Local Variables) 类型属性(Type Properties) 视频地址: 百度网盘:http://p...
分类:
其他好文 时间:
2014-07-10 20:45:28
阅读次数:
293
在项目中定义了以new开头的textField,结果报错:
先看我的源码:#import
@interface ResetPasswordViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITextField *phoneTextField;
@property (weak, nonatomic) ...
分类:
其他好文 时间:
2014-07-09 12:09:41
阅读次数:
208
出现这种情况,主要是属性名中包含 关键字.
You can solve this by:
Renaming that property:
@property (strong, nonatomic) NSString *theNewTitle;
Keeping the property name and specifying a getter name th...
分类:
其他好文 时间:
2014-07-09 10:30:12
阅读次数:
218
一、属性简介//属性是OC2.0之后新出的一种语法,能让我们快速的生成setter以及getter方法,大大简化代码二、如何定义一个属性//@property属性关键字,用来定义属性//NSString*属性的类型//name属性的名字。//@property只是生成的setter以及getter方法的声明。@propertyNSString..
分类:
移动开发 时间:
2014-07-09 08:26:56
阅读次数:
241