码迷,mamicode.com
首页 >  
搜索关键字:replace    ( 7027个结果)
Android控件:高仿微信主UI
高仿微信主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
ibatis3.0调用Oracle的存储过程
直接上源码一,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
在Sqlite中通过Replace来实现插入和更新
你可能在批量处理一个事务的时候,想要批量插入一系列的数据,但是这些数据当添加完一次之后,重新添加的时候,你不想要重新添加,只是想将原有的数据进行更新,例如:我想要通过Excel将一系列的图书导入到数据库中,而这些图书在你下一次编辑之后,重新导入,只是对原有的数据进行修改。以上是一个业务的场景。在M....
分类:数据库   时间:2015-04-02 18:43:48    阅读次数:219
sed替换
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
【Replace Inheritance with Delegation】
分类:其他好文   时间:2015-04-02 14:58:50    阅读次数:111
Replace Parameter with Methods
【Replace Parameter with Methods】
分类:其他好文   时间:2015-04-02 14:57:46    阅读次数:102
Replace Delegation with Inheritance
【Replace Delegation with Inheritance】
分类:其他好文   时间:2015-04-02 14:50:24    阅读次数:79
Replace Parameter with Explicit Methods
【Replace Parameter with Explicit Methods】
分类:其他好文   时间:2015-04-02 14:37:53    阅读次数:91
Replace Nested Conditional with Guard Clauses
【Replace Nested Conditional with Guard Clauses】
分类:其他好文   时间:2015-04-02 13:15:07    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!