import timeimport randomimport threadingimport inspectdef get_current_function_name(): return inspect.stack()[1][3] class Inclass: def __init...
分类:
编程语言 时间:
2015-06-24 20:32:29
阅读次数:
155
先上代码
//登录按钮
loginBtn=[UIButton buttonWithType:UIButtonTypeRoundedRect];
loginBtn.frame=CGRectMake(1, 199, 200, 36);
[self.view addSubview:loginBtn];
[loginBtn addTarget:self...
分类:
其他好文 时间:
2015-06-24 19:12:30
阅读次数:
124
无限滚动组件封装特点 1.一句话就可以生成1个无限滚动视图,传入数据源和内容视图生成方法即可 2.使用AutoLayout构建,全自适应,内容页自动跟随滚动视图变化,无需任何frame调整HXInfiniteScrollView *infiniteScrollView=[[HXInfiniteScr...
分类:
移动开发 时间:
2015-06-24 16:08:54
阅读次数:
155
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //设置viewController的背景色,准确的说,我们是设置viewController的View的背景色...
分类:
其他好文 时间:
2015-06-24 14:14:31
阅读次数:
97
Web前端,高性能优化高性能HTML一、避免使用iframe iframe也叫内联frame,可将一个HTML文档嵌入另一个HTML文档中。 iframe的好处是,嵌入的文档独立于父文档,通常也借此使浏览器模拟多线程。缺点是: ①虽然iframe能模拟多线程,但主流浏览器的同域名并行下载数是不...
分类:
Web程序 时间:
2015-06-24 12:49:53
阅读次数:
126
UIButton *selectMore = [UIButton buttonWithType:UIButtonTypeCustom]; selectMore.frame = CGRectMake(0, __kScreenHeight - 42, __kScreenWidth / 2, 42); /...
分类:
其他好文 时间:
2015-06-24 12:33:18
阅读次数:
102
selenium webdriver学习(五)------------iframe的处理博客分类:Selenium-webdriver如何定位frame中元素有时候我们在定位一个页面元素的时候发现一直定位不了,反复检查自己写的定位器没有任何问题,代码也没有任何问题。这时你就要看一下这个页面元素是否在...
分类:
Web程序 时间:
2015-06-24 10:45:25
阅读次数:
142
1、用链表实现栈
package stack;
/**
*
* @author denghb
*
*/
class Link {
public long dData;
public Link next;
public Link(long dd) {
dData = dd;
}
public void displayLink() {
System.out.print(d...
分类:
编程语言 时间:
2015-06-24 09:23:01
阅读次数:
138
Volley中网络加载有两种方式,分别是HurlStack与HttpClientStack,我们来看Volley.java中的一段代码
if (stack == null) {//如果没有限定stack
if (Build.VERSION.SDK_INT >= 9) {//adk版本在9或者以上
stack = new HurlStack(...
分类:
Web程序 时间:
2015-06-23 23:15:34
阅读次数:
167