一个 SFX
(SelF-eXtracting)自解压文件是压缩文件的一种,它结合了可执行文件模块,一种用以运行从压缩文件解压文件的模块。这样的压缩文件不需要外部程序来解压自解压文件的内容,它自己便可以运行该项操作。然而
WinRAR 仍然可将自解压文件当成是任何其它的压缩文件处理。所以如果你不愿意...
向上遍历DOM树:.parent().parents().parentsUntil()向下遍历DOM树:.children().find()DOM树水平遍历:.siblings().next().nextAll().nextUntil().prev().prevAll().preUntil()三个最...
分类:
Web程序 时间:
2014-05-23 07:05:00
阅读次数:
286
在最新的xcode中,已经不需要我们自己去写 set,get
方法,在我们使用@property声明属性时,系统已经自动帮我们生成set,get方法。同时我们发现在我们访问我们声明的变量时,会有self. 和
以"_"开头的访问方式,那么这两种方式到底有什么样的区别呢?我们来一起看一下:...
分类:
其他好文 时间:
2014-05-22 05:56:08
阅读次数:
190
当你调用这个对象的方法MyObject.method(arg1,
arg2)的时候,这会由Python自动转为MyClass.method(MyObject, arg1,
arg2)——这就是self的原理了。2.__init____init__ 方法名别写错了!__init__ 用来定义变量的se...
分类:
编程语言 时间:
2014-05-22 03:12:56
阅读次数:
266
//获取view的controller- (UIViewController
*)viewController { for (UIView* next = [self superview]; next; next =
next.superview) { UIResponder *nextRe...
分类:
移动开发 时间:
2014-05-21 23:38:35
阅读次数:
1000
什么是 self ? 它是类实例自身的引用。其他语言通常使用一个名为 this 的标识符
--《Python核心编程》如何定义类: class ClassName(base_class[es]): (1) "optional
documentation s...
分类:
编程语言 时间:
2014-05-21 18:50:01
阅读次数:
304
一、关键字说明1、@synthesize:自动生成成员变量相应的存取方法,可以使用点语法操作该变量的存取。2、@implementation: 表明类的实现
,以@end 结束。3、self :类似java语言当中的this ,是隐藏指针 指向接受消息的对象的指针 。消息所调用的方法使用该指针参数查...
分类:
移动开发 时间:
2014-05-21 18:28:22
阅读次数:
370
今天编写代码如下:发现2个radiobutton居然都可以选中。这我真的晕了。。后来偶然发现原来是没有设置Id的原因。。。
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizont...
分类:
其他好文 时间:
2014-05-21 17:12:25
阅读次数:
246
使用意图调用内置应用程序
1、创建一个新的Android项目并命名为Intents,在main.xml文件中添加两个Button:
<Button
android:id="@+id/btn_webbrowser"
android:layout_width="fill_parent"
android:layout_heigh...
分类:
移动开发 时间:
2014-05-21 16:24:12
阅读次数:
298
<script>parent.location.href=‘../Index.aspx‘</script>
分类:
Web程序 时间:
2014-05-20 19:50:20
阅读次数:
332