高仿微信主UI之前在Android组件:Fragment切换后保存状态 一文中讲到了Fragment切换后,是如何保存原来的状态的,最重要的就是用add方法取代现在各种教程常见的replace方法。然而我发现有不少App都貌似采用ViewPager + Fragment来做主UI的。于是在Android组件:Fragment切换后保存状态 的基础上加入了ViewPager,看了下微信界面,要高仿就尽...
分类:
微信 时间:
2015-04-03 09:33:44
阅读次数:
378
var str = ' hello ';alert( '('+trim(str)+')' );function trim(str){ var re = /^\s+|\s+$/g; return str.replace(re,''); }
分类:
其他好文 时间:
2015-04-03 00:02:26
阅读次数:
145
直接上源码一,oracle储存过程。create or replace procedure proc_get_th(i_hth in varchar2,o_ret out sys_refcursor)isbegin for v_rec in (select ggd_id,th from gms_g....
分类:
数据库 时间:
2015-04-02 18:51:14
阅读次数:
162
你可能在批量处理一个事务的时候,想要批量插入一系列的数据,但是这些数据当添加完一次之后,重新添加的时候,你不想要重新添加,只是想将原有的数据进行更新,例如:我想要通过Excel将一系列的图书导入到数据库中,而这些图书在你下一次编辑之后,重新导入,只是对原有的数据进行修改。以上是一个业务的场景。在M....
分类:
数据库 时间:
2015-04-02 18:43:48
阅读次数:
219
1. sed可以替换给定的文本中的字符串,可以利用正则表达式进行匹配$ sed 's/pattern/replace_string/' file或者$ cat file | sed 's/pattern/replace_string/' file使用-i选项,可以将替换的结果应用于原文件,也可以借助...
分类:
其他好文 时间:
2015-04-02 18:31:56
阅读次数:
128
【Replace Inheritance with Delegation】
分类:
其他好文 时间:
2015-04-02 14:58:50
阅读次数:
111
【Replace Parameter with Methods】
分类:
其他好文 时间:
2015-04-02 14:57:46
阅读次数:
102
【Replace Delegation with Inheritance】
分类:
其他好文 时间:
2015-04-02 14:50:24
阅读次数:
79
【Replace Parameter with Explicit Methods】
分类:
其他好文 时间:
2015-04-02 14:37:53
阅读次数:
91
【Replace Nested Conditional with Guard Clauses】
分类:
其他好文 时间:
2015-04-02 13:15:07
阅读次数:
99