1.window对象不要去掉
window.parent.location2.firefox和ie内置的对象确实不一样,你用jquery吧这个是跨浏览器的,只需要$("#yourID").parent()就直接可以得到了
很方便,而且jquery也比较小,只有几十k,现在浏览器这么多 不可能不用跨浏...
分类:
其他好文 时间:
2014-06-11 23:01:55
阅读次数:
311
@property (nonatomic) dispatch_semaphore_t
semaphore;self.semaphore = dispatch_semaphore_create([self.progressViews
count]);dispatch_semaphore_wait(se...
分类:
其他好文 时间:
2014-06-11 12:51:06
阅读次数:
264
往往是,一个对象释放了多次,即多次释放。多为粗心所致。还有一种过渡释放,很隐蔽。查了很久才知道!NSUserDefaults*userDefault
= [NSUserDefaultsstandardUserDefaults];self.arrCollectionData=[userDefaulto...
分类:
其他好文 时间:
2014-06-11 12:10:31
阅读次数:
193
修改环境变量:process.env.NODE_TLS_REJECT_UNAUTHORIZED =
"0"
分类:
Web程序 时间:
2014-06-11 09:48:30
阅读次数:
1000
- (UIViewController*)viewController { for (UIView*
next = [self superview]; next; next =next.superview) { UIResponder*nextResponder
= [next nextRe...
分类:
其他好文 时间:
2014-06-11 09:34:16
阅读次数:
227
ASP.NET MVC 6.0,又称ASP.NET
vNext,比之从前的版本有了大规模的更新,几乎所有类库全部重写,本文基于Visual Studo 2014 CTP1创建ASP.NET
vNext,记录基本创建、self-host、IIS运行时遇到的问题。
分类:
Web程序 时间:
2014-06-11 08:44:50
阅读次数:
309
@interface Person : NSObject@property
(noatonmic,copy) NSString *
name;@end一个person类,name是person得成员变量如果在一个类中写入person为成员变量self.person.name =
@"zhangsan...
分类:
移动开发 时间:
2014-06-11 07:28:01
阅读次数:
294
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >
android:layout_width="wrap...
分类:
其他好文 时间:
2014-06-08 17:58:54
阅读次数:
633
@前面的文章讲到,在Block中用到self(self特指UIViewController),需要用__block或者__weak修饰(MRC与ARC的区别),因为Block调用会对其里面的对象引用计数加1,如果你不确定你调用的Block是否会产生循环引用的话,最好用__block或__weak修饰.当然,如果你确定并不会产生循环引用的情况,那你可以放心的self. self. (~O(∩_∩)...
分类:
其他好文 时间:
2014-06-08 16:34:27
阅读次数:
215
About fork() in linux:parent/child processes
created by fork() share the same file table (linux file descriptor or called
`open file descriptor`)Which...
分类:
系统相关 时间:
2014-06-07 21:47:58
阅读次数:
443