public class ViewPagerCompat extends ViewPager { //mViewTouchMode表示ViewPager是否全权控制滑动事件,默认为false,即不控制 private boolean mViewTouchMode = false; pub...
分类:
其他好文 时间:
2014-08-16 23:47:11
阅读次数:
316
强制赋值避免 rule 规则过滤字段。用 setAttributes 可以强制取消 Yii 的安全过滤,只要第二个参数赋值为 false 就好。但是这也只能对这个 Model 生成时就拥有的字段生效,如果要对包括自己定义的所有字段不过滤,还是要定义场景然后在 rule 里指定安全字段比较好。...
分类:
其他好文 时间:
2014-08-16 22:33:31
阅读次数:
316
定义和用法contenteditable 属性规定是否可编辑元素的内容。语法属性值值描述true规定可以编辑元素内容。false规定无法编辑元素内容。classname继承父元素的 contenteditable 属性。支持IE系列和最新浏览器实例:/**宽度固定,自动换行,内容超出滚动条显示***...
分类:
其他好文 时间:
2014-08-16 16:17:40
阅读次数:
381
数学渣掩面走过=-=还好 这题 是高中知识吧... 数列求和的..一开始 我想到了2层for最胸大无脑的方法.. 看到这数据就算了 2 using namespace std; 3 4 int main() 5 { 6 cin.sync_with_stdio(false); 7 ...
分类:
其他好文 时间:
2014-08-16 15:00:20
阅读次数:
145
概述: 第3个参数叫做useCapture,是一個boolean值,就是true or false 。如果送出true的話就是瀏覽器會使用Capture方式,false的話是Bubbling,只有在特定狀況下才會有影響,通常建議是false,而會有影響的情形是目標元素(target element....
分类:
Web程序 时间:
2014-08-16 14:56:50
阅读次数:
134
1、基本配置# is this config file disabled
# false for enabled
# true for disabled
disabled=false# the name of the group this storage server belongs to
group_name=group1# bind an address of this host
#...
分类:
其他好文 时间:
2014-08-16 13:50:50
阅读次数:
292
1、基本配置# is this config file disabled
# false for enabled
# true for disabled
disabled=false# bind an address of this host
# empty for bind all addresses of this host
bind_addr=10.16.139.202# the track...
分类:
其他好文 时间:
2014-08-16 13:50:40
阅读次数:
299
在android开发过程中关于EditText在setFocusable(false);后,当需要再次获得焦点输入时设置setFocusable(true);后还是无法获得焦点的问题:...
分类:
移动开发 时间:
2014-08-16 12:35:10
阅读次数:
234
CLUSTER_DATABASE Property Description Parameter type Boolean Default value false Modifiable No Range of values true | false Basic Yes Real Application...
分类:
其他好文 时间:
2014-08-16 09:38:40
阅读次数:
217
Valid NumberValidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the ...
分类:
其他好文 时间:
2014-08-16 01:01:49
阅读次数:
195